:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#172033;background:#f4f6f8;--ink:#172033;--muted:#64748b;--line:#dbe2ea;--blue:#2563eb;--blue-soft:#eff6ff;--panel:#fff;--danger:#b91c1c;--danger-soft:#fff1f2}*{box-sizing:border-box;min-width:0}html{scroll-behavior:smooth}body{margin:0;overflow-x:hidden}button,input,textarea{font:inherit}button{margin:0;padding:9px 14px;border:0;border-radius:8px;background:var(--blue);color:#fff;cursor:pointer}button:hover:not(:disabled){background:#1d4ed8}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}button:disabled{background:#94a3b8;cursor:not-allowed}a{color:#1d4ed8}h1,h2{margin:0 0 6px}h1{font-size:20px}h2{font-size:18px}.muted{color:var(--muted);font-size:13px}.status{font-weight:700}.eyebrow{margin:0 0 4px;color:#64748b;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.app-shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}.sidebar{display:flex;position:sticky;top:0;height:100vh;flex-direction:column;background:var(--ink);color:#e2e8f0;padding:20px 14px}.brand{display:flex;gap:10px;align-items:center;padding:2px 8px 24px}.brand-mark{display:grid;width:32px;height:32px;place-items:center;border-radius:8px;background:#3b82f6;color:#fff;font-size:11px;font-weight:800}.brand strong,.brand span{display:block}.brand strong{font-size:13px}.brand div span{margin-top:3px;color:#94a3b8;font-size:11px}.sidebar-nav{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:8px;color:#cbd5e1;text-decoration:none;font-size:13px}.nav-item:hover,.nav-item.active{background:#263553;color:#fff}.nav-index{width:22px;color:#93c5fd;font-size:10px;font-weight:800}.workflow-steps{display:grid;gap:4px;margin:16px 8px 0;padding-top:14px;border-top:1px solid #334155;color:#94a3b8;font-size:11px}.workflow-steps span{padding:3px 0}.workflow-steps span.current{color:#bfdbfe;font-weight:700}.workflow-steps span.done{color:#86efac}.sidebar-footer{margin-top:auto}.sidebar-settings{border-top:1px solid #334155;padding-top:12px}.sidebar-settings summary{cursor:pointer;color:#cbd5e1;font-size:12px}.settings-content{padding:8px 0}.settings-content .progress-grid{display:grid;gap:6px}.settings-content .progress-grid p{margin:0;padding:7px;border-radius:6px;background:#263553;color:#cbd5e1;font-size:11px}.settings-content details{margin-top:8px}.settings-content details summary{font-size:11px}.settings-content .output{max-height:180px}.app-main{min-width:0}.topbar{display:flex;min-height:56px;align-items:center;justify-content:space-between;gap:20px;padding:10px 28px;background:#fff;border-bottom:1px solid var(--line)}.topbar-title{display:flex;align-items:baseline;gap:10px}.topbar-title .eyebrow{margin:0}.topbar-title h1{white-space:nowrap}.topbar-title .muted{margin:0}.topbar-next{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px}.topbar-next .status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#94a3b8}.sidebar-toggle{display:none;background:#475569;padding:7px 10px}.workspace{width:100%;max-width:1440px;margin:0 auto;padding:20px 28px 40px}.card{margin:0 0 16px;padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 8px #0f172a0d}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.section-heading p{margin:0}.section-heading h2{margin-bottom:4px}.section-badge{padding:5px 8px;border:1px solid #bfdbfe;border-radius:999px;background:var(--blue-soft);color:#1d4ed8;font-size:11px;font-weight:700;white-space:nowrap}.batch-entry{border-color:#bfdbfe}.batch-entry form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.batch-entry label{margin:0}label{display:grid;gap:6px;margin:8px 0;font-weight:600;font-size:13px}input,textarea{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:var(--ink)}textarea{resize:vertical}.batch-status{margin:12px 0 0}.batch-list{display:grid;gap:10px;max-height:250px;overflow:auto}.batch-item{border:1px solid var(--line);border-radius:8px;padding:10px;background:#fcfdff;overflow-wrap:anywhere}.batch-item strong{display:block;margin-bottom:6px}.batch-item p{margin:5px 0;font-size:13px}.compat-entry,.secondary-section{padding:0;overflow:hidden}.compat-entry>summary,.secondary-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;cursor:pointer;list-style:none}.compat-entry>summary::-webkit-details-marker,.secondary-section>summary::-webkit-details-marker{display:none}.compat-entry>summary>span:first-child,.secondary-section>summary>span:first-child{display:grid;gap:3px}.compat-entry summary small,.secondary-section summary small{color:var(--muted);font-size:12px;font-weight:400}.summary-action{color:#1d4ed8;font-size:12px;font-weight:700}.compat-content,.secondary-content{padding:0 18px 18px}.compat-content form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.notice,.output{min-height:22px;white-space:pre-wrap;overflow:auto;background:#f8fafc;padding:10px;border-radius:8px}.processing-counts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 12px}.processing-counts p{margin:0;padding:8px;border:1px solid #dbeafe;border-radius:8px;background:var(--blue-soft);font-size:13px}.processing-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.budget-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;align-items:end;margin-bottom:12px;padding:12px;border-radius:8px;background:#f8fafc}.budget-grid label{margin:0}.processing-table-wrap{width:100%;overflow-x:auto}.processing-table{width:100%}.processing-header,.processing-row{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(90px,1fr) minmax(150px,1.5fr) minmax(100px,.9fr) minmax(125px,1.2fr);gap:10px;align-items:start;padding:10px;border-bottom:1px solid #e2e8f0}.processing-header{background:#f8fafc;color:#475569;font-size:12px}.processing-row{background:#fff}.processing-row.attention{background:var(--danger-soft);border-left:4px solid #dc2626}.processing-product p{margin:4px 0}.processing-product a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.processing-reference img{width:90px;height:90px;object-fit:contain;background:#f1f5f9}.processing-reference p{margin:4px 0;font-size:12px;overflow-wrap:anywhere}.processing-result{overflow-wrap:anywhere}.processing-actions{display:flex;flex-wrap:wrap;gap:6px}.processing-actions button{padding:6px 8px;font-size:12px}.processing-row:not(.attention) .processing-actions button{background:#e0e7ff;color:#3730a3}.processing-row:not(.attention) .processing-actions button:hover{background:#c7d2fe}.processing-row.attention .processing-actions button{background:#dc2626}.history-list{display:grid;gap:10px;max-height:440px;overflow:auto}.history-table{width:100%;table-layout:fixed;border-collapse:collapse}.history-table th,.history-table td{overflow:hidden;text-align:left;text-overflow:ellipsis;vertical-align:top;border-bottom:1px solid #e2e8f0;padding:8px;font-size:13px}.history-table th:nth-child(1),.history-table td:nth-child(1){width:24%}.history-table th:nth-child(2),.history-table td:nth-child(2){width:16%}.history-table th:nth-child(3),.history-table td:nth-child(3){width:28%}.history-table th:nth-child(4),.history-table td:nth-child(4){width:20%}.history-table th:nth-child(5),.history-table td:nth-child(5){width:12%}.history-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.history-table a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.item{border:1px solid var(--line);border-radius:8px;padding:10px;background:#fcfdff}.item img{display:block;width:100%;max-width:100%;height:180px;object-fit:contain;background:#f1f5f9;margin-bottom:8px}.ok{color:#15803d}.warn{color:#b45309}.bad{color:var(--danger)}.legacy-tools{display:none}.wb-preview-card{margin-bottom:0}.wb-preview-card button{background:#64748b}.dialog-card{width:min(560px,100%);height:100%;margin:0 0 0 auto;padding:18px;overflow:auto;background:#fff}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.dialog-heading button{margin:0;background:#475569}.dialog-heading h2{margin:0}.dialog-tools{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:12px 0}.dialog-tools input{flex:1}.dialog-processing-actions{display:grid;gap:8px;margin-top:12px}.dialog-processing-actions button{width:100%;text-align:left}.mother-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;max-height:52vh;overflow:auto}.mother-item{border:2px solid var(--line);border-radius:8px;padding:8px;cursor:pointer}.mother-item.selected{border-color:var(--blue);background:var(--blue-soft)}.mother-item img{width:100%;height:150px;object-fit:contain;background:#f1f5f9}.mother-item p{margin:6px 0;font-size:13px;overflow-wrap:anywhere}.dialog-actions{text-align:right;border-top:1px solid #e2e8f0;margin-top:14px;padding-top:10px}.dialog-actions button{margin-left:8px}dialog{width:min(560px,calc(100% - 24px));height:min(100vh,100%);max-width:none;max-height:none;margin:0 0 0 auto;border:0;padding:0;border-radius:0;box-shadow:-10px 0 40px #0f172a33}dialog::backdrop{background:#0f172a88}
@media(max-width:1100px){.app-shell{grid-template-columns:64px minmax(0,1fr)}.sidebar{padding:16px 8px}.brand{justify-content:center;padding:2px 0 20px}.brand div,.nav-item span:not(.nav-index),.sidebar-settings{display:none}.nav-item{justify-content:center;padding:10px 4px}.workflow-steps{margin:12px 0 0;padding-top:10px}.workflow-steps span{font-size:0;text-align:center}.workflow-steps span::before{content:"•";font-size:14px}.sidebar-footer{display:none}.workspace{padding:16px 20px}.topbar{padding:10px 20px}.processing-counts{grid-template-columns:repeat(3,minmax(0,1fr))}.budget-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}}
@media(max-width:800px){.app-shell{display:block}.sidebar{position:fixed;z-index:30;top:0;left:0;width:216px;transform:translateX(-100%);transition:transform .2s ease}.sidebar.open{transform:translateX(0)}.sidebar-toggle{display:block}.topbar{justify-content:flex-start}.topbar-next{margin-left:auto}.topbar-title{display:block}.topbar-title .muted{display:none}.workspace{padding:12px}.batch-entry form,.capture-mode-panel form,.compat-content form{grid-template-columns:1fr}.processing-header{display:none}.processing-row{grid-template-columns:1fr 1fr;gap:8px;margin:10px 0;border:1px solid var(--line);border-radius:10px;padding:12px}.processing-row.attention{border-left:4px solid #dc2626}.processing-product{grid-column:1;grid-row:1}.processing-reference{grid-column:2;grid-row:1 / span 2}.processing-result{grid-column:1;grid-row:2}.processing-row>.status{grid-column:1;grid-row:3}.processing-actions{grid-column:1 / -1;grid-row:4}.processing-actions button{flex:1}.mother-grid{max-height:48vh}}
.capture-entry{border-color:#bfdbfe}.capture-mode-switch{display:inline-flex;gap:0;margin:0 0 14px;padding:3px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff}.capture-mode{border-radius:6px;background:transparent;color:#1d4ed8;font-size:13px;font-weight:700}.capture-mode:hover:not(:disabled){background:#dbeafe}.capture-mode.active{background:#2563eb;color:#fff}.capture-mode-panel[hidden]{display:none}.capture-mode-panel form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.recent-batches{margin:12px 0 0;border-top:1px solid var(--line);padding-top:10px}.recent-batches summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;cursor:pointer;list-style:none}.recent-batches summary::-webkit-details-marker{display:none}.recent-batches summary strong,.recent-batches summary small{display:block}.recent-batches summary small{color:var(--muted);font-size:12px;font-weight:400}.recent-batches-list{display:grid;gap:6px;margin-top:8px}.recent-batches-list button{width:100%;overflow:hidden;background:#f1f5f9;color:#334155;text-align:left;text-overflow:ellipsis;white-space:nowrap}.recent-batches-list button:hover{background:#dbeafe;color:#1e3a8a}
@media(max-width:600px){.topbar{gap:8px;padding:9px 12px}.topbar-title h1{font-size:17px}.topbar-next{display:none}.workspace{padding:10px}.card{padding:14px;margin-bottom:10px}.section-heading{display:block}.section-badge{display:inline-block;margin-top:8px}.processing-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-grid{grid-template-columns:1fr}.processing-row{grid-template-columns:1fr}.processing-product,.processing-reference,.processing-result,.processing-row>.status,.processing-actions{grid-column:1;grid-row:auto}.processing-reference{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;align-items:center}.processing-reference img{grid-row:span 2}.processing-actions button{flex-basis:100%}.history-list{overflow-x:auto}.history-table{min-width:640px}.dialog-card{width:100%;height:100vh}.dialog-actions{display:grid;gap:8px}.dialog-actions button{margin:0}.dialog-tools{display:grid;grid-template-columns:1fr}.dialog-tools button{width:100%}}
 .generated-results-panel{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.generated-results-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.generated-results-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.generated-result-tile{display:block;min-width:0;padding:6px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);text-align:left}.generated-result-tile.interactive{cursor:zoom-in}.generated-result-tile.interactive:hover{border-color:var(--blue)}.image-tile-stage{display:grid;position:relative;place-items:center;aspect-ratio:2/3;overflow:hidden;background:#eef2f7}.image-tile-stage>*{grid-area:1/1}.image-tile-stage img{display:block;width:100%;height:100%;object-fit:contain;opacity:0}.image-tile-stage.loaded img{opacity:1}.image-tile-status{position:relative;z-index:1;padding:6px;text-align:center;font-size:11px}.image-tile-meta{display:block;margin-top:5px;overflow:hidden;font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.processing-image-thumbnails{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;max-width:260px;margin-top:7px}.processing-image-tile{display:block;min-width:0;padding:3px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);text-align:left}.processing-image-tile .image-tile-meta{margin-top:2px;font-size:9px}.processing-image-tile .image-tile-status{padding:3px;font-size:10px}.processing-images-empty,.generated-results-empty{margin:4px 0}.image-viewer-card{width:100%;height:100%;padding:18px;overflow:auto;background:#fff}.image-viewer-stage{display:grid;min-height:0;place-items:center;gap:8px;padding:12px;background:#f8fafc}.image-viewer-stage img{display:block;max-width:100%;max-height:calc(100vh - 180px);object-fit:contain}.image-viewer-stage .image-viewer-status{margin:0;text-align:center}
#image-viewer-dialog{width:min(1280px,calc(100vw - 24px));height:min(900px,calc(100vh - 24px));margin:auto;padding:0}
.live-loop-card{border-color:#bfdbfe}.live-loop-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.live-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.live-image-card{display:grid;gap:7px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fcfdff}.live-image-card .generated-result-tile{padding:0;border:0}.live-image-card button{padding:6px 8px;font-size:12px}.live-wb-panel{margin-top:16px;padding:14px;border:1px solid #bfdbfe;border-radius:8px;background:var(--blue-soft)}.live-wb-panel h3{margin:0 0 8px}.live-wb-panel form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.live-wb-panel form button{grid-column:1/-1}.live-wb-panel form label{margin:0}.live-wb-panel textarea{font-family:ui-monospace,monospace}@media(max-width:800px){.generated-results-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.processing-image-thumbnails{max-width:220px}.live-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}} 
@media(max-width:800px){.generated-results-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.processing-image-thumbnails{max-width:220px}}
.history-table th:nth-child(1),.history-table td:nth-child(1){width:18%}.history-table th:nth-child(2),.history-table td:nth-child(2){width:12%}.history-table th:nth-child(3),.history-table td:nth-child(3){width:20%}.history-table th:nth-child(4),.history-table td:nth-child(4){width:14%}.history-table th:nth-child(5),.history-table td:nth-child(5){width:10%}.history-table th:nth-child(6),.history-table td:nth-child(6){width:14%}.history-table th:nth-child(7),.history-table td:nth-child(7){width:12%}
@media(max-width:600px){.generated-results-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.generated-results-heading{align-items:flex-start;flex-direction:column;gap:3px}.processing-image-thumbnails{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}.image-viewer-card{padding:14px}.image-viewer-stage img{max-height:calc(100vh - 190px)}}
.wb-page-content{display:grid;gap:14px}.wb-product-selector{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.wb-product-selector button{background:#e0e7ff;color:#3730a3}.wb-product-selector button.selected{background:#2563eb;color:#fff}.wb-confirm-form{display:grid;gap:10px}.wb-field{margin:0}.wb-field-wide{grid-column:1/-1}.field-source{display:inline-block;margin-left:5px;padding:2px 6px;border-radius:999px;background:#e0f2fe;color:#0369a1;font-size:11px;font-weight:600}.wb-image-groups{display:grid;gap:12px}.wb-image-group{padding:12px;border:1px solid #bfdbfe;border-radius:8px;background:#f8fbff}.wb-image-group h4{margin:0 0 8px}.wb-confirm-form .generated-result-tile{cursor:zoom-in}.wb-confirm-form button[disabled]{cursor:not-allowed}
.review-item{grid-column:1/-1}.review-item>.review-image-group{margin-top:12px}.review-image-group h4{margin:0 0 8px}.review-image-card{min-width:0}.review-image-card .review-image-actions{display:flex;gap:6px;flex-wrap:wrap}.review-image-card .review-image-actions button{padding:6px 8px;font-size:11px}.wb-product-list{display:grid;gap:10px}.wb-stage-timeline{display:grid;gap:0;margin:12px 0;padding:0;list-style:none}.wb-stage-timeline li{display:grid;position:relative;grid-template-columns:64px minmax(0,1fr) auto;gap:10px;padding:8px 8px 8px 28px;border-left:2px solid #cbd5e1}.wb-stage-timeline li::before{content:"";position:absolute;left:-6px;top:13px;width:10px;height:10px;border-radius:50%;background:#94a3b8}.wb-stage-timeline li.done{border-left-color:#22c55e}.wb-stage-timeline li.done::before{background:#16a34a}.wb-stage-timeline time{white-space:nowrap}@media(max-width:600px){.wb-stage-timeline li{grid-template-columns:58px minmax(0,1fr)}.wb-stage-timeline time{grid-column:2;white-space:normal}}
.product-page{padding:16px}.product-header{display:grid;grid-template-columns:72px minmax(180px,1fr) auto auto;gap:14px;align-items:center;margin-bottom:14px}.product-thumbnail{display:grid;width:72px;height:72px;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.product-thumbnail img{width:100%;height:100%;object-fit:contain}.product-thumbnail-empty{padding:6px;text-align:center;font-size:11px}.product-identity h2{margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-identity p{margin:0}.product-color-switcher{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.product-color-switcher button{padding:7px 10px;background:#e0e7ff;color:#3730a3}.product-color-switcher button.selected{background:var(--blue);color:#fff}.product-beijing-time{margin:0;color:#475569;font-size:12px;white-space:nowrap}.product-progress{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:12px 0;padding:10px;border:1px solid #bfdbfe;border-radius:9px;background:var(--blue-soft)}.product-progress-step{padding:5px 7px;border-radius:999px;background:#e2e8f0;color:#64748b;font-size:11px;white-space:nowrap}.product-progress-step.done{background:#dcfce7;color:#166534}.product-progress-step.current{background:#2563eb;color:#fff;font-weight:700}.product-progress-arrow{color:#94a3b8;font-size:12px}.product-blocker{margin:8px 0;padding:9px;border-left:4px solid #dc2626;border-radius:6px;background:var(--danger-soft)}.product-columns{display:grid;grid-template-columns:minmax(220px,.82fr) minmax(390px,1.42fr) minmax(290px,1fr);gap:14px;align-items:start}.product-column{min-width:0;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff}.product-column>h3{margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line)}.product-subtitle{margin:12px 0 7px;font-size:14px}.product-facts{display:grid;gap:6px;margin:0}.product-fact-row{display:grid;grid-template-columns:minmax(88px,.7fr) minmax(0,1.3fr);gap:8px;margin:0;padding:6px 0;border-bottom:1px solid #eef2f7;font-size:12px}.product-fact-row dt{color:#64748b}.product-fact-row dd{margin:0;overflow-wrap:anywhere}.product-fact-row dd.missing,.missing{color:#b45309}.product-fact-block{margin-top:12px;padding-top:10px;border-top:1px solid #eef2f7}.product-fact-block h4{margin:0 0 7px;font-size:13px}.product-sku-line{margin:5px 0;font-size:12px;overflow-wrap:anywhere}.product-source-image{display:block;width:100%;padding:5px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:var(--ink);cursor:zoom-in}.product-source-image img{display:block;width:100%;height:150px;object-fit:contain}.product-source-column button{margin-top:8px}.product-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}.product-panel-heading h3{margin:0 0 4px}.product-panel-heading p{margin:0}.product-image-panel{min-width:0}.product-main-image-wrap{margin-bottom:10px}.product-main-image .image-tile-stage{min-height:260px}.product-detail-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-image-card{min-width:0;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fcfdff}.product-main-image{border-color:#93c5fd;background:#f8fbff}.product-image-heading{display:flex;align-items:baseline;justify-content:space-between;gap:5px;margin-bottom:6px}.product-image-heading strong{font-size:13px}.product-image-heading span{font-size:10px}.product-image-card .generated-result-tile{padding:0;border:0}.product-image-card .image-tile-stage{aspect-ratio:3/4}.product-image-placeholder{display:grid;min-height:150px;place-items:center;padding:12px;border-radius:7px;background:#f1f5f9;color:#64748b;font-size:12px;text-align:center}.product-image-card>p{margin:6px 0;font-size:11px;overflow-wrap:anywhere}.product-image-actions{display:flex;gap:6px;flex-wrap:wrap}.product-image-actions button{padding:6px 8px;font-size:11px}.product-text-block{display:grid;gap:8px}.product-text-block .product-fact-row{grid-template-columns:70px minmax(0,1fr)}.product-bullet{margin:0;padding-left:15px;font-size:12px}.product-bullet::before{content:"•";margin-left:-12px;margin-right:5px;color:#2563eb}.product-technical{margin-top:10px;padding:8px;border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc}.product-technical summary{cursor:pointer;color:#334155;font-size:12px;font-weight:700}.product-plan{margin-top:8px;padding-top:7px;border-top:1px solid #e2e8f0}.product-plan p{margin:4px 0 0;font-size:11px;overflow-wrap:anywhere}.product-mapping{margin:12px 0;padding:10px;border:1px solid #bfdbfe;border-radius:8px;background:#f8fbff}.product-mapping h4{margin:0 0 8px;font-size:13px}.product-mapping-rows{display:grid;gap:5px}.product-mapping-row{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:5px;align-items:center;padding:6px;border-radius:5px;background:#fff;font-size:11px;overflow-wrap:anywhere}.mapping-arrow{color:#2563eb;text-align:center}.product-wb-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-field{display:grid;gap:4px;margin:0;font-size:12px}.product-field-wide{grid-column:1/-1}.product-field input{min-width:0;padding:8px}.product-checkbox{display:flex;align-items:center;gap:6px;grid-column:1/-1;margin:2px 0;font-size:12px}.product-checkbox input{width:auto}.product-wb-state{grid-column:1/-1;padding:8px;border-radius:7px;background:#f8fafc;font-size:12px}.product-wb-state p{margin:3px 0}.product-wb-actions{display:flex;grid-column:1/-1;gap:8px;flex-wrap:wrap}.product-disabled-reason{grid-column:1/-1;margin:0;font-size:12px}.product-wb-form .notice{max-height:180px;font-size:11px}.product-action-status{min-height:18px;margin:4px 0 8px}.product-page button[disabled]{cursor:not-allowed}.product-page button[disabled]+.product-disabled-reason{color:#b45309}
@media(max-width:1200px){.product-header{grid-template-columns:64px minmax(0,1fr);align-items:start}.product-color-switcher{grid-column:2;justify-content:flex-start}.product-beijing-time{grid-column:2}.product-columns{grid-template-columns:1fr}.product-source-column,.product-images-column,.product-wb-column{width:100%}}
@media(max-width:600px){.product-page{padding:10px}.product-header{grid-template-columns:56px minmax(0,1fr);gap:9px}.product-thumbnail{width:56px;height:56px}.product-identity h2{font-size:16px}.product-detail-image-grid{grid-template-columns:1fr}.product-wb-form{grid-template-columns:1fr}.product-field-wide,.product-checkbox,.product-wb-state,.product-wb-actions,.product-disabled-reason{grid-column:1}.product-progress{align-items:flex-start}.product-progress-arrow{display:none}.product-progress-step{font-size:10px}.product-panel-heading{display:block}.product-panel-heading button{margin-top:8px}}
.product-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0 12px;padding:4px;border-bottom:1px solid var(--line);background:#f8fafc}.product-tab{border-radius:7px 7px 0 0;background:transparent;color:#475569;font-size:13px;font-weight:700}.product-tab:hover:not(:disabled){background:#e2e8f0;color:var(--ink)}.product-tab.active{background:var(--blue);color:#fff}.product-tab-panel{min-width:0}.product-tab-panel>h3{margin:0 0 12px;font-size:16px}.product-sku-matrix{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.product-sku-matrix th,.product-sku-matrix td{padding:7px 8px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top;overflow-wrap:anywhere}.product-sku-matrix th{background:#f8fafc;color:#475569;font-size:11px}.product-sku-matrix th:nth-child(1),.product-sku-matrix td:nth-child(1){width:20%}.product-sku-matrix th:nth-child(2),.product-sku-matrix td:nth-child(2){width:20%}.product-sku-matrix th:nth-child(3),.product-sku-matrix td:nth-child(3){width:26%}.product-sku-matrix th:nth-child(4),.product-sku-matrix td:nth-child(4){width:12%;text-align:center}.product-sku-matrix th:nth-child(5),.product-sku-matrix td:nth-child(5){width:22%}.product-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-gallery-grid .product-main-image{grid-column:1/-1}.product-main-image .generated-result-tile{max-width:320px}.product-main-image .image-tile-stage{aspect-ratio:3/4}.product-image-card .image-tile-status.bad{min-height:34px;display:grid;place-items:center;padding:8px;border-radius:7px;background:var(--danger-soft)}.product-wb-form select{width:100%;min-height:38px;padding:8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:var(--ink)}.product-attribute-editor{display:grid;grid-column:1/-1;gap:8px;padding:10px;border:1px solid #bfdbfe;border-radius:8px;background:#f8fbff}.product-attribute-editor h4{margin:0;font-size:13px}.product-attribute-editor .product-field{margin:0}.product-wb-form .product-package-warning{grid-column:1/-1;margin:0;padding:8px;border-radius:7px}.product-wb-form .product-technical{grid-column:1/-1}.product-wb-state{border:1px solid #dbeafe}.product-wb-actions button:first-child{background:#64748b}.product-wb-actions button:first-child:hover:not(:disabled){background:#475569}@media(max-width:800px){.product-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-main-image .generated-result-tile{max-width:none}.product-sku-matrix{min-width:560px}.product-tab-panel{overflow-x:auto}}@media(max-width:600px){.product-gallery-grid{grid-template-columns:1fr}.product-gallery-grid .product-main-image{grid-column:auto}.product-tabs{margin-left:-4px;margin-right:-4px}.product-tab{flex:1;padding:8px 6px;font-size:12px}.product-sku-matrix{min-width:520px}}
.product-color-selection{margin:16px 0;padding:14px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff}
.product-attribute-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-attribute-grid .product-field{min-width:0;padding:8px;border:1px solid #dbeafe;border-radius:7px;background:#fff}.product-attribute-grid small{overflow-wrap:anywhere}.product-optional-attributes{display:grid;gap:8px}.product-optional-attributes summary{cursor:pointer;font-size:12px;font-weight:700}.pricing-auto-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;margin:8px 0}.pricing-auto-values p{margin:0;overflow-wrap:anywhere;font-size:12px}.product-mapping-row{grid-template-columns:minmax(0,1fr);gap:3px}.product-mapping-row strong,.product-mapping-row span{overflow-wrap:anywhere}@media(max-width:600px){.product-attribute-grid,.pricing-auto-values{grid-template-columns:1fr}}
.product-collapsible-attributes{grid-column:1/-1;border:1px solid #dbeafe;border-radius:8px;background:#fff}.product-collapsible-attributes>summary{padding:9px 10px;cursor:pointer;color:#1e3a8a;font-size:12px;font-weight:700;list-style-position:inside}.product-collapsible-attributes[open]>summary{border-bottom:1px solid #dbeafe}.product-collapsible-attributes>.product-attribute-grid{padding:8px}.product-attribute-grid .product-field>span:first-child{font-weight:700}.product-attribute-grid .product-field>small.ok{width:max-content;padding:2px 6px;border-radius:999px;background:#dcfce7}.product-attribute-grid .product-field>small.missing{width:max-content;padding:2px 6px;border-radius:999px;background:#fff7ed}
.product-warehouse-readiness{display:flex;grid-column:1/-1;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #bfdbfe;border-radius:9px;background:#f8fbff;font-size:12px}.product-warehouse-readiness>div{display:grid;min-width:0;gap:3px}.product-warehouse-readiness small{overflow-wrap:anywhere}.product-warehouse-readiness.warn{border-color:#fde68a;background:#fffbeb}.product-warehouse-readiness.bad{border-color:#fecaca;background:#fff7f7}.product-warehouse-readiness button{flex:0 0 auto;padding:7px 10px}@media(max-width:600px){.product-warehouse-readiness{align-items:stretch;flex-direction:column}.product-warehouse-readiness button{width:100%}}
.product-color-selection-tools{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}
.product-color-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,360px));gap:10px;justify-content:start}
.product-color-card{display:grid;min-width:0;grid-template-columns:96px minmax(0,1fr);gap:8px 12px;align-items:start;padding:10px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgb(15 23 42 / 6%)}.product-color-card.current{border-color:#2563eb;box-shadow:0 0 0 2px #bfdbfe}.current-label{padding:2px 6px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:700;white-space:nowrap}
.product-color-card-heading{display:flex;grid-column:1/-1;align-items:center;justify-content:space-between;gap:8px}
.product-color-checkbox{display:flex;min-width:0;align-items:center;gap:8px;font-weight:650;cursor:pointer}
.product-color-checkbox span{min-width:0;overflow-wrap:anywhere;white-space:normal}
.product-color-card>img{display:block;width:96px;height:96px;max-width:96px;max-height:96px;object-fit:cover;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}
.product-color-card-empty{display:grid;width:96px;height:96px;min-height:0;place-items:center;padding:6px;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;color:#64748b;font-size:11px;text-align:center}
.product-color-card-meta{display:grid;gap:4px;color:#475569;font-size:13px}
.product-color-card-meta p{margin:0}
.product-color-card-actions{display:flex;grid-column:1/-1;flex-wrap:wrap;gap:8px;margin-top:auto}
.product-color-card{cursor:pointer}.product-color-card:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.product-color-name{font-weight:600;flex:1;min-width:0;overflow-wrap:anywhere}
.product-color-preview{padding:0;width:96px;height:96px;max-width:100%;overflow:hidden;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.product-color-preview img{display:block;width:100%;height:100%;object-fit:contain}
.product-color-specs summary,.product-sku-foldout>summary{cursor:pointer;font-weight:600;color:#334155}.product-color-specs p{max-height:220px;overflow:auto;overflow-wrap:anywhere;margin-top:6px}.product-sku-foldout{overflow-x:auto}.product-color-cards{align-items:start}
@media(max-width:600px){.product-color-cards{grid-template-columns:1fr}.product-color-selection{padding:10px}.product-color-card>img{width:88px;height:88px;max-width:88px;max-height:88px}.product-color-card{grid-template-columns:88px minmax(0,1fr)}}
.product-color-switcher{align-items:flex-start}.product-color-switcher-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.product-color-switcher-label{color:#166534;font-size:11px;font-weight:700;white-space:nowrap}.product-color-switcher-other summary{padding:7px 9px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#475569;cursor:pointer;font-size:12px;white-space:nowrap}.product-color-switcher-other[open]{width:100%}.product-color-switcher-other[open] .product-color-switcher-group{margin-top:6px}.product-color-group{margin-top:12px}.product-color-group>h4{margin:0 0 8px;color:#166534;font-size:13px}.product-color-others>summary{padding:9px 0;cursor:pointer;color:#475569;font-size:13px;font-weight:700}.product-color-others[open]>.product-color-cards{margin-top:8px}.product-color-work-status{margin:0;font-size:12px;font-weight:700}.product-wb-batch{border-color:#86efac;background:#f0fdf4}.product-wb-batch-colors{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.product-wb-batch-colors button{padding:7px 9px;font-size:11px}.product-wb-batch-colors button.selected{background:#166534;color:#fff}@media(max-width:1200px){.product-color-switcher-group{justify-content:flex-start}}@media(max-width:600px){.product-color-switcher,.product-color-switcher-group{justify-content:flex-start}.product-color-switcher-other{width:100%}}
.overview-action-list{display:grid;gap:8px;margin-top:14px}.overview-action-list>h3{margin:0 0 2px;font-size:15px}.overview-action-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}.overview-action-item.attention{border-left:4px solid #dc2626;background:var(--danger-soft)}.overview-action-item p{margin:4px 0 0;font-size:12px}.overview-action-item button{white-space:nowrap}@media(max-width:600px){.overview-action-item{grid-template-columns:1fr}.overview-action-item button{width:100%}}
.product-category-search-results{display:grid;grid-column:1/-1;gap:6px;max-height:260px;overflow:auto}.product-category-search-result{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center;padding:8px;border:1px solid #dbeafe;border-radius:7px;background:#fff;font-size:12px}.product-category-search-result strong,.product-category-search-result span{min-width:0;overflow-wrap:anywhere}.product-category-search-result span{grid-column:1}.product-category-search-result button{grid-column:2;grid-row:1/3;padding:6px 9px;white-space:nowrap}.product-category-search-close{grid-column:1/-1;justify-self:end;padding:6px 10px}#product-wb-category-search-status{grid-column:1/-1;margin:0;padding:7px 8px;border-radius:7px;background:#eff6ff}#product-wb-category-search-status.bad{background:var(--danger-soft)}@media(max-width:600px){.product-category-search-result{grid-template-columns:1fr}.product-category-search-result span,.product-category-search-result button{grid-column:1;grid-row:auto}.product-category-search-result button{width:100%}.product-category-search-close{justify-self:stretch;width:100%}}
.product-wb-console{display:grid;gap:10px;padding:14px;border:1px solid #93c5fd;border-radius:10px;background:#f8fbff}.product-wb-console>h4,.product-wb-console>p{margin:0}.product-wb-common-summary{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px;border:1px solid #dbeafe;border-radius:8px;background:#fff}.product-wb-common-summary span{padding:3px 7px;border-radius:999px;background:#f1f5f9;font-size:11px;font-weight:700}.product-wb-common-summary span.ok{background:#dcfce7}.product-wb-common-summary span.bad{background:#fee2e2}.product-wb-common-summary button{margin-left:auto;padding:6px 9px;font-size:11px}.product-wb-console-scroll{width:100%;overflow:auto;border:1px solid #dbeafe;border-radius:8px;background:#fff}.product-wb-console-table{width:100%;min-width:1240px;border-collapse:collapse;table-layout:fixed;font-size:11px}.product-wb-console-table th,.product-wb-console-table td{padding:7px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top;overflow-wrap:anywhere}.product-wb-console-table th{position:sticky;top:0;z-index:1;background:#eff6ff;color:#334155}.product-wb-console-table tr[data-readiness="GREEN"]{background:#f0fdf4}.product-wb-console-table tr[data-readiness="YELLOW"]{background:#fffbeb}.product-wb-console-table tr[data-readiness="RED"]{background:#fff7f7}.product-wb-console-table th:nth-child(1){width:48px}.product-wb-console-table th:nth-child(2){width:130px}.product-wb-console-table th:nth-child(3){width:150px}.product-wb-console-table th:nth-child(4){width:140px}.product-wb-console-table th:nth-child(5),.product-wb-console-table th:nth-child(6){width:92px}.product-wb-console-table th:nth-child(7){width:76px}.product-wb-console-table th:nth-child(8){width:250px}.product-wb-console-table th:nth-child(9){width:210px}.product-wb-console-table th:nth-child(10){width:118px}.product-wb-console-table input[type="checkbox"]{width:auto}.product-wb-console-table input[type="number"],.product-wb-console-table select{width:100%;min-height:34px;padding:6px;border:1px solid #cbd5e1;border-radius:7px;background:#fff}.product-wb-console-table td>strong,.product-wb-console-table td>small{display:block;margin-bottom:4px}.product-wb-image-strip{display:grid;grid-template-columns:repeat(4,28px);gap:3px;margin-bottom:4px}.product-wb-image-strip img{width:28px;height:38px;border:1px solid #cbd5e1;border-radius:4px;background:#fff;object-fit:cover;cursor:zoom-in}.product-wb-stage-line{line-height:1.55}.product-wb-console-actions{display:flex;gap:8px;flex-wrap:wrap}.product-wb-console-actions button:nth-child(1){background:#475569}.product-wb-console-actions button:nth-child(2){background:#0f766e}.product-wb-advanced{margin-top:12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}.product-wb-advanced>summary{padding:11px 13px;cursor:pointer;color:#334155;font-size:13px;font-weight:800}.product-wb-advanced[open]>summary{border-bottom:1px solid #e2e8f0}.product-wb-advanced>.product-mapping{margin:12px}.product-wb-advanced-layout{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(460px,1.3fr);gap:14px;margin:12px;padding-bottom:12px;align-items:start}.product-wb-advanced-layout>.product-source-attributes{position:sticky;top:12px;max-height:70vh;overflow:auto;margin:0;padding:12px;border:1px solid #bfdbfe;border-radius:8px;background:#f8fbff}.product-source-attributes>summary{cursor:pointer;font-weight:800}.product-source-attributes>h4{margin:0 0 8px}.product-wb-advanced-layout>.product-wb-form{min-width:0}@media(max-width:900px){.product-wb-advanced-layout{grid-template-columns:1fr}.product-wb-advanced-layout>.product-source-attributes{position:static;max-height:320px}}@media(max-width:700px){.product-wb-console{padding:9px}.product-wb-console-actions button{width:100%}.product-wb-common-summary button{width:100%;margin-left:0}.product-wb-advanced>.product-mapping,.product-wb-advanced-layout{margin:8px}}

.source-attribute-heading{display:grid;gap:8px;margin:8px 0 10px}.source-attribute-heading>p{margin:0}.source-attribute-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.source-attribute-actions button{margin:0;padding:7px 10px;font-size:11px}.source-attribute-status{font-size:11px;color:#475569}.source-attribute-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.source-attribute-card{display:grid;grid-template-columns:1fr 1fr;min-width:0;overflow:hidden;border:1px solid #dbe3ee;border-radius:8px;background:#fff}.source-attribute-language{display:grid;grid-template-columns:42px minmax(0,1fr);gap:5px 7px;align-items:center;min-width:0;padding:8px}.source-attribute-russian{border-left:1px solid #bfdbfe;background:#f0f7ff}.source-attribute-language-label{grid-row:1/3;align-self:stretch;display:grid;place-items:center;border-radius:5px;background:#eef2f7;color:#64748b;font-size:10px;font-weight:800}.source-attribute-russian .source-attribute-language-label{background:#dbeafe;color:#1d4ed8}.source-attribute-name,.source-attribute-value{min-width:0;overflow-wrap:anywhere;font-size:11px;line-height:1.35}.source-attribute-value{color:#334155}.source-attribute-russian input{width:100%;min-width:0;padding:5px 7px;border:1px solid #bfdbfe;border-radius:5px;background:#fff;font-size:11px}.source-attribute-russian input:focus{border-color:#2563eb;outline:2px solid #dbeafe}.product-wb-advanced-layout>.product-source-attributes .source-attribute-grid{grid-template-columns:1fr}@media(max-width:800px){.source-attribute-grid{grid-template-columns:1fr}}@media(max-width:520px){.source-attribute-card{grid-template-columns:1fr}.source-attribute-russian{border-top:1px solid #bfdbfe;border-left:0}.source-attribute-actions button{width:100%}}
/* Multi-store central shell */
[hidden]{display:none!important}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#eef2f7,#f8fafc)}
.login-card{width:min(420px,100%);display:grid;gap:16px;padding:32px;border:1px solid #dbe2ea;border-radius:18px;background:#fff;box-shadow:0 20px 55px rgba(15,23,42,.12)}
.login-card h1,.login-card p{margin:0}.login-card .brand-mark{width:48px;height:48px}.login-card button{min-height:44px}
.topbar-context{display:grid;gap:4px;min-width:210px;padding:8px 12px;border-left:1px solid #dbe2ea;border-right:1px solid #dbe2ea}
.topbar-context label{display:flex;align-items:center;gap:8px;font-size:12px;color:#64748b}.topbar-context select{max-width:180px;padding:5px 8px}
.quiet-button{padding:6px 10px;background:#fff;color:#334155;border:1px solid #cbd5e1}.quiet-button:hover{background:#f8fafc}
/* P2：负责人卡片与员工「我的店铺」卡片。沿用现有 store-card 样式，只补两个主体类名。 */
.store-owner-card,.store-owner-store-card{display:grid;gap:10px}
.store-owner-card .store-operation-metrics,.store-owner-store-card .store-operation-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.store-owner-store-card footer .store-badge,.store-owner-card header .store-badge{flex:0 0 auto}
.store-overview{display:grid;gap:12px}.store-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.store-summary>div,.store-card{padding:14px;border:1px solid #dbe2ea;border-radius:12px;background:#fff}.store-summary strong{display:block;font-size:24px}.store-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.store-card{display:grid;gap:10px}.store-card.attention{border-left:4px solid #dc2626}.store-card header,.store-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.store-card p{margin:0}.store-badge{display:inline-flex;padding:3px 8px;border-radius:999px;background:#e2e8f0;font-size:12px}.store-badge.ok{background:#dcfce7;color:#166534}.store-badge.bad{background:#fee2e2;color:#991b1b}
.library-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(4,minmax(120px,1fr));gap:10px;align-items:end}.library-filters label{margin:0}.library-filters select{width:100%;min-height:38px;padding:8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}
@media (max-width:1279px){.topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto}.topbar-next{grid-column:3;grid-row:1}.topbar-context{grid-column:2/4;grid-row:2;border:0;border-top:1px solid #e2e8f0}.store-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:899px){.topbar-context{grid-column:1/-1}.store-list{grid-template-columns:1fr}.store-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.library-filters{grid-template-columns:1fr 1fr}.topbar-next{flex-wrap:wrap}.workspace{padding:14px}}
@media (max-width:800px){.sidebar{left:-216px;transform:none}.sidebar.open{left:0;transform:none}}
@media (max-width:620px){.login-screen{padding:12px}.login-card{padding:22px}.store-summary{grid-template-columns:1fr 1fr}.library-filters{grid-template-columns:1fr}.topbar{grid-template-columns:auto minmax(0,1fr);align-items:center}.topbar-title{display:flex;grid-column:1/-1;grid-row:2;align-items:baseline}.topbar-context{grid-column:1/-1;grid-row:3}.topbar-context select{max-width:145px}.topbar-next{display:flex;grid-column:2;grid-row:1;justify-content:flex-end}.topbar-title .muted,.topbar-next #next-step,.topbar-next #progress-summary,.topbar-next .status-dot{display:none}}
.store-admin-panel{overflow:hidden}.store-editor{margin:12px 0;padding:14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}.store-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:10px;align-items:end}.store-editor-grid label{margin:0}.store-table-wrap{overflow-x:auto}.store-admin-table{width:100%;border-collapse:collapse}.store-admin-table th,.store-admin-table td{padding:11px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;font-size:13px}.store-admin-table th{background:#f8fafc;color:#475569;white-space:nowrap}.store-admin-table td:first-child strong,.store-admin-table td:first-child small{display:block}.store-admin-table td:first-child small{margin-top:4px}.store-row-actions{display:flex;gap:6px;flex-wrap:wrap}.store-row-actions button{padding:6px 9px;font-size:12px}.danger-button{background:#b91c1c}.danger-button:hover:not(:disabled){background:#991b1b}
@media(max-width:900px){.store-editor-grid{grid-template-columns:1fr}.store-admin-table{min-width:760px}}

.commerce-table-wrap,.history-list{width:100%;max-height:68vh;overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff}.commerce-table{width:100%;min-width:1080px;border-collapse:separate;border-spacing:0;table-layout:fixed}.commerce-table th{position:sticky;top:0;z-index:2;padding:12px 10px;background:#f4f7fb;color:#64748b;border-bottom:1px solid var(--line);font-size:12px;font-weight:800;text-align:left;white-space:nowrap}.commerce-table td{padding:12px 10px;border-bottom:1px solid #edf1f5;vertical-align:middle;font-size:13px}.commerce-table tbody tr{background:#fff;transition:background .15s ease}.commerce-table tbody tr:hover{background:#fffaf5}.commerce-table tbody tr:last-child td{border-bottom:0}.commerce-table th:first-child,.commerce-table td:first-child{width:300px}.commerce-product{display:grid;grid-template-columns:66px minmax(0,1fr);gap:12px;align-items:center}.commerce-product>img,.commerce-image-empty{width:66px;height:82px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;object-fit:cover}.commerce-image-empty{display:grid;place-items:center;color:#94a3b8;font-size:12px}.commerce-product strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5}.commerce-product small,.commerce-money small,.commerce-table td small{display:block;margin-top:5px}.commerce-store{font-weight:750;color:#334155}.commerce-category{color:#475569;overflow-wrap:anywhere}.commerce-money{font-variant-numeric:tabular-nums;white-space:nowrap}.commerce-money.profit{color:#15803d;font-weight:800}.commerce-time{color:#64748b;white-space:nowrap}.commerce-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.commerce-actions button{padding:6px 9px;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:12px}.commerce-actions button:hover:not(:disabled){background:#ffedd5}.commerce-actions a{color:#ea580c;font-size:12px;font-weight:750;white-space:nowrap}.listing-badge{display:inline-block;padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:800;white-space:nowrap}.listing-badge.published{background:#dcfce7;color:#15803d}.listing-badge.partial{background:#fef3c7;color:#a16207}.listing-badge.not_published{background:#f1f5f9;color:#64748b}.history-commerce-table{min-width:1380px}.history-commerce-table th:first-child,.history-commerce-table td:first-child{width:280px}.history-commerce-table .commerce-actions{min-width:180px}.history-filters{grid-template-columns:minmax(220px,2fr) repeat(5,minmax(120px,1fr))}.library-detail-dialog{width:min(1120px,calc(100% - 24px))}.library-detail-card{width:100%}.library-detail-content{display:grid;gap:12px}.library-variant-tabs{display:flex;gap:7px;overflow-x:auto;padding:4px 0 10px;border-bottom:1px solid var(--line)}.library-variant-tabs button{flex:0 0 auto;padding:7px 11px;background:#f1f5f9;color:#475569}.library-variant-tabs button.active{background:#f97316;color:#fff}.library-detail-layout{display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(360px,.95fr);gap:22px}.library-gallery{min-width:0}.library-gallery-main,.library-gallery-empty{display:block;width:100%;height:min(64vh,650px);border-radius:12px;background:#f8fafc;object-fit:contain}.library-gallery-empty{display:grid;place-items:center;color:#94a3b8}.library-gallery-thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding-bottom:5px}.library-gallery-thumbs button{flex:0 0 70px;padding:3px;border:2px solid transparent;border-radius:8px;background:#fff}.library-gallery-thumbs button:focus{border-color:#f97316}.library-gallery-thumbs img{width:62px;height:82px;border-radius:5px;object-fit:cover}.library-detail-info{display:grid;align-content:start;gap:14px}.library-detail-info>a{font-weight:800;color:#ea580c}.library-facts{display:grid;grid-template-columns:110px minmax(0,1fr);margin:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}.library-facts dt,.library-facts dd{margin:0;padding:10px;border-bottom:1px solid #edf1f5}.library-facts dt{background:#f8fafc;color:#64748b;font-weight:700}.library-facts dd{overflow-wrap:anywhere}.library-facts .profit{color:#15803d;font-weight:800}.library-copy{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fcfdff}.library-copy h3,.library-copy h4{margin:0 0 10px}.library-copy ul{padding-left:20px}.library-description{white-space:pre-wrap;line-height:1.65}
.library-package-info{display:grid;gap:8px;padding:12px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}.library-package-info h3,.library-package-info p{margin:0}.library-package-info .library-facts{grid-template-columns:repeat(4,minmax(72px,1fr));background:#fff}.library-package-info .library-facts dt,.library-package-info .library-facts dd{text-align:center}.library-package-shared{grid-template-columns:auto 1fr;align-items:center}.library-package-shared>h3,.library-package-shared>.library-facts,.library-package-shared>p:last-child{grid-column:1/-1}@media(max-width:600px){.library-package-info .library-facts{grid-template-columns:90px minmax(0,1fr)}.library-package-info .library-facts dt,.library-package-info .library-facts dd{text-align:left}}
.library-commerce-table{min-width:0}.library-commerce-table .commerce-product{grid-template-columns:82px minmax(0,1fr)}.library-commerce-table .commerce-product-media{display:grid;width:82px;height:92px;place-items:center;overflow:hidden;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}.library-commerce-table .commerce-product-media>img,.library-commerce-table .commerce-product-media>.commerce-image-empty{display:block;width:82px;height:92px;max-width:82px;max-height:92px;margin:0;object-fit:cover}.library-commerce-table .commerce-product-media>.commerce-image-empty{display:grid;place-items:center}.library-commerce-table .commerce-product-copy{min-width:0}.library-commerce-table tbody tr{height:116px}.library-commerce-table td{overflow:hidden;overflow-wrap:anywhere}.library-commerce-table-wrap{overflow-x:hidden}
@media(max-width:899px){.library-commerce-table thead{display:none}.library-commerce-table,.library-commerce-table tbody{display:block;width:100%}.library-commerce-table tbody tr{display:grid;grid-template-columns:minmax(200px,1.4fr) repeat(4,minmax(78px,1fr));height:auto;min-height:112px;border-bottom:1px solid #edf1f5}.library-commerce-table td{display:block;padding:8px;border:0}.library-commerce-table td:first-child{grid-row:span 2;width:auto}.library-commerce-table .commerce-actions{align-content:start}.library-commerce-table .commerce-product{grid-template-columns:76px minmax(0,1fr)}.library-commerce-table .commerce-product-media,.library-commerce-table .commerce-product-media>img,.library-commerce-table .commerce-product-media>.commerce-image-empty{width:76px;height:88px;max-width:76px;max-height:88px}}
@media(max-width:599px){.library-commerce-table tbody tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:8px}.library-commerce-table td:first-child{grid-column:1/-1;grid-row:auto}.library-commerce-table .commerce-product{grid-template-columns:72px minmax(0,1fr)}.library-commerce-table .commerce-product-media,.library-commerce-table .commerce-product-media>img,.library-commerce-table .commerce-product-media>.commerce-image-empty{width:72px;height:84px;max-width:72px;max-height:84px}.library-commerce-table .commerce-actions{grid-column:1/-1}.library-commerce-table td{padding:5px}}
@media(max-width:800px){.library-detail-layout{grid-template-columns:1fr}.library-gallery-main,.library-gallery-empty{height:52vh}.history-filters{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.commerce-table-wrap,.history-list{max-height:72vh}.library-detail-dialog{width:100%}.library-detail-layout{gap:14px}.library-gallery-main,.library-gallery-empty{height:44vh}.library-facts{grid-template-columns:92px minmax(0,1fr)}.history-filters{grid-template-columns:1fr}}
.store-operation-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.store-operation-metrics>div{padding:9px;border-radius:8px;background:#f8fafc}.store-operation-metrics strong,.store-operation-metrics span{display:block}.store-operation-metrics strong{font-size:20px}.store-operation-section{display:grid;gap:7px;padding-top:9px;border-top:1px solid var(--line)}.store-operation-section h4{margin:0;font-size:13px}.store-operation-list{display:grid;gap:5px}.store-operation-list>p{margin:0;padding:8px;background:#f8fafc;border-radius:7px}.store-operation-row{display:flex;justify-content:space-between;gap:12px;width:100%;padding:8px 10px;border:1px solid #e2e8f0;background:#fff;color:var(--ink);text-align:left}.store-operation-row:hover:not(:disabled){background:#eff6ff}.store-operation-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-operation-row small{flex:0 0 auto}
@media(max-width:620px){.store-operation-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sale-unit-contract{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #e5e7eb;border-radius:12px;background:#fafafa}.sale-unit-contract label{display:grid;gap:6px;font-weight:600}.sale-unit-contract .sale-unit-checkbox,.sale-unit-contract p{grid-column:1/-1}.sale-unit-contract .sale-unit-checkbox{display:flex;align-items:center;gap:8px}@media(max-width:600px){.sale-unit-contract{grid-template-columns:1fr}}
.product-wb-parent-workspace-shell{min-width:0;overflow:hidden;background:#f5f7fb;border-color:#d8e0ec}.product-wb-workspace-heading{font-size:16px;font-weight:850;color:#172033}.product-wb-parent-workspace{display:grid;grid-template-columns:minmax(190px,220px) minmax(360px,1fr) minmax(260px,300px);grid-template-areas:"rail detail shared";gap:12px;min-width:0;align-items:start}.product-wb-option-rail{grid-area:rail;display:grid;gap:8px;min-width:0}.product-wb-section-title{padding:2px 2px 5px;color:#334155}.product-wb-option-card{display:grid;grid-template-columns:54px minmax(0,1fr);gap:9px;width:100%;padding:8px;border:1px solid #dbe3ef;background:#fff;color:#172033;text-align:left}.product-wb-option-card:hover:not(:disabled){background:#f8fbff}.product-wb-option-card.active{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px #bfdbfe}.product-wb-option-card>img{width:54px;height:72px;border-radius:7px;background:#f8fafc;object-fit:cover}.product-wb-option-card-text{display:grid;align-content:start;gap:3px;min-width:0}.product-wb-option-card-text strong,.product-wb-option-card-text small{overflow:hidden;text-overflow:ellipsis}.product-wb-option-card-text small{font-size:10px;line-height:1.35}.product-wb-option-detail{grid-area:detail;display:grid;gap:12px;min-width:0;padding:12px;border:1px solid #dbe3ef;border-radius:10px;background:#fff}.product-wb-detail-heading{font-size:15px;font-weight:850}.product-wb-detail-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.product-wb-detail-image{display:grid;gap:4px;min-width:0;padding:4px;border:1px solid #e2e8f0;background:#fff;color:#334155}.product-wb-detail-image img{display:block;width:100%;aspect-ratio:3/4;border-radius:5px;background:#f8fafc;object-fit:cover}.product-wb-detail-image span{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.product-wb-copy-preview,.product-wb-option-editor{display:grid;gap:8px;padding:10px;border:1px solid #e2e8f0;border-radius:9px;background:#fafcff}.product-wb-copy-preview h5,.product-wb-option-editor h5{margin:0;font-size:13px}.product-wb-copy-preview p{max-height:90px;margin:0;overflow:auto;white-space:pre-wrap;font-size:11px;line-height:1.55}.product-wb-option-editor{grid-template-columns:repeat(3,minmax(0,1fr))}.product-wb-option-editor>h5,.product-wb-size-list{grid-column:1/-1}.product-wb-size-list{display:grid;gap:4px}.product-wb-size-list p{margin:0;padding:5px 7px;border-radius:6px;background:#fff;font-size:11px;overflow-wrap:anywhere}.product-wb-option-editor input{width:100%;min-width:0;padding:8px;border:1px solid #cbd5e1;border-radius:8px}.product-wb-color-combobox{position:relative;min-width:0}.product-wb-color-results{position:absolute;z-index:10;top:calc(100% + 3px);left:0;right:0;max-height:230px;overflow:auto;padding:5px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 10px 28px #0f172a2b}.product-wb-color-option{display:block;width:100%;padding:7px 8px;border-radius:5px;background:#fff;color:#334155;text-align:left;font-size:11px}.product-wb-color-option:hover{background:#eff6ff}.product-wb-stage-timeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none}.product-wb-stage-timeline li{display:grid;gap:2px;padding:8px;border-radius:8px;background:#f1f5f9;font-size:10px}.product-wb-stage-timeline li.confirmed{background:#dcfce7;color:#166534}.product-wb-stage-timeline li.waiting{background:#fef3c7;color:#92400e}.product-wb-stage-timeline li.unknown,.product-wb-stage-timeline li.rejected{background:#fee2e2;color:#991b1b}.product-wb-shared-card{grid-area:shared;display:grid;gap:10px;min-width:0;padding:12px;border:1px solid #dbe3ef;border-radius:10px;background:#fff}.product-wb-shared-card h4{margin:0}.product-wb-shared-facts{display:grid;grid-template-columns:82px minmax(0,1fr);margin:0;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.product-wb-shared-facts dt,.product-wb-shared-facts dd{margin:0;padding:7px;border-bottom:1px solid #edf1f5;font-size:11px;overflow-wrap:anywhere}.product-wb-shared-facts dt{background:#f8fafc;color:#64748b;font-weight:750}.product-wb-brand-gate{padding:9px;border-radius:8px;font-size:11px;font-weight:750;line-height:1.5}.product-wb-brand-gate.blocked{border:1px solid #fecaca;background:#fef2f2;color:#b91c1c}.product-wb-brand-gate.ok{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534}.product-wb-parent-workspace-shell>.product-wb-console-actions{position:sticky;z-index:8;bottom:0;margin:0 -14px -14px;padding:10px 14px;border-top:1px solid #dbe3ef;background:#fffffff2;backdrop-filter:blur(8px)}
.product-wb-option-card.pending{border-color:#f59e0b;background:#fffbeb}.product-wb-group-values{display:grid;gap:7px;padding:9px;border:1px solid #dbeafe;border-radius:8px;background:#f8fbff}.product-wb-group-values h5{margin:0}.product-wb-group-values .product-field{margin:0}.product-wb-group-value-help{margin:0;font-size:10px}.product-group-pricing-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:8px;border:1px solid #bfdbfe;border-radius:8px;background:#fff}.product-group-pricing-summary p{margin:0;padding:5px 7px;border-radius:6px;background:#f8fafc;font-size:10px;line-height:1.45}.product-group-pricing-summary p:first-child,.product-group-pricing-summary p:last-child{grid-column:1/-1}.product-single-exceptions{grid-column:1/-1;border:1px solid #dbe3ef;border-radius:8px;background:#fff}.product-single-exceptions>summary{padding:8px 10px;cursor:pointer;color:#475569;font-size:11px;font-weight:800}.product-single-exceptions[open]>summary{border-bottom:1px solid #edf1f5}.product-single-exception-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px}.product-single-exception-help,.product-single-profit{grid-column:1/-1;margin:0;font-size:10px}.product-single-exception-toggle{display:flex;align-items:center;gap:7px;min-height:24px;color:#334155;font-size:11px;font-weight:750}.product-single-exception-toggle input.product-compact-switch{flex:0 0 22px;width:22px!important;height:14px!important;min-width:22px;max-width:22px;margin:0;accent-color:#2563eb}.product-single-exception-toggle input.product-compact-switch:disabled{opacity:.45}.product-image-review-gate,.product-main-action-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 11px;border:1px solid #fecaca;border-radius:9px;background:#fff7f7;font-size:11px}.product-image-review-gate button{margin-left:auto}.product-main-action-status{border-color:#dbeafe;background:#f8fbff}.product-main-action-status>span:nth-child(2){flex:1 1 420px}.product-safe-mode-badge{padding:5px 8px;border-radius:999px;background:#e2e8f0;color:#334155;font-weight:750}.product-auto-save-status{margin:8px 0}.product-wb-parent-workspace-shell{padding-bottom:58px}.product-wb-console-actions{display:grid;grid-template-columns:1fr 1fr}.product-wb-console-actions button{min-height:44px;font-weight:850}
.product-single-exception-toggle input.product-compact-switch{box-sizing:border-box!important;min-height:14px!important;max-height:14px!important;padding:0!important;border:0!important}
@media(max-width:1099px){.product-wb-parent-workspace{grid-template-columns:minmax(190px,220px) minmax(0,1fr);grid-template-areas:"shared shared" "rail detail"}.product-wb-shared-facts{grid-template-columns:repeat(4,82px minmax(0,1fr))}.product-wb-shared-card>button{justify-self:start}.product-wb-detail-gallery{grid-template-columns:repeat(4,minmax(70px,1fr))}}
@media(max-width:899px){.product-tab-panel[data-active-tab="wb"]{overflow-x:clip}.product-wb-parent-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"shared" "rail" "detail"}.product-wb-option-rail{display:flex;overflow-x:auto;padding-bottom:4px;scroll-snap-type:x mandatory}.product-wb-option-rail>.product-wb-section-title{flex:0 0 100%;display:none}.product-wb-option-card{flex:0 0 210px;scroll-snap-align:start}.product-wb-shared-facts{grid-template-columns:82px minmax(0,1fr) 82px minmax(0,1fr)}.product-wb-advanced-layout{grid-template-columns:1fr}.product-wb-parent-workspace-shell>.product-wb-console-actions{margin:0 -9px -9px;padding:9px}.product-wb-console-actions button{flex:1 1 180px}}
@media(max-width:599px){.product-page,.product-tab-panel,.product-wb-parent-workspace-shell{max-width:100%;overflow-x:clip}.product-color-switcher{display:none}.product-wb-parent-workspace-shell{padding:8px 8px 116px}.product-wb-option-card{flex-basis:176px;grid-template-columns:42px minmax(0,1fr)}.product-wb-option-card>img{width:42px;height:56px}.product-wb-shared-facts{grid-template-columns:78px minmax(0,1fr)}.product-wb-detail-gallery{grid-template-columns:repeat(4,minmax(54px,1fr));gap:4px}.product-wb-detail-image{padding:2px}.product-wb-option-editor{grid-template-columns:1fr}.product-wb-option-editor>h5,.product-wb-size-list{grid-column:1}.product-group-pricing-summary,.product-single-exception-body{grid-template-columns:1fr}.product-group-pricing-summary p{grid-column:1}.product-single-exception-toggle,.product-single-price-field,.product-single-stock-field{grid-column:1}.product-wb-stage-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}.product-wb-parent-workspace-shell>.product-wb-console-actions{position:sticky;bottom:0;display:grid;grid-template-columns:1fr}.product-wb-console-actions button{width:100%}.product-wb-copy-preview p{max-height:72px}.product-image-review-gate button{width:100%;margin-left:0}.product-main-action-status{align-items:flex-start}.product-safe-mode-badge{width:100%}}

/* 上架阶段状态属于主操作信息，必须先于设置区出现并保持正常可读字号。 */
.product-wb-option-editor h5{font-size:15px}
.product-wb-size-list{gap:5px}
.product-wb-size-list>strong{font-size:15px}
.product-wb-size-list p{padding:7px 9px;font-size:13px;line-height:1.5}
.product-wb-stage-timeline{gap:8px}
.product-wb-stage-timeline li{align-content:start;gap:5px;min-height:82px;padding:10px;font-size:13px;line-height:1.45}
.product-wb-stage-timeline li>strong{font-size:14px}
.product-wb-stage-timeline li>span{font-weight:750}
.product-wb-stage-timeline li>small{font-size:12px;line-height:1.5}
.product-wb-recovery{display:grid;gap:10px;min-width:0;font-size:14px;line-height:1.55}
.product-wb-recovery .product-attribute-editor{margin:0;min-width:0}
.product-wb-recovery h4{margin:0 0 8px;font-size:15px}
.product-wb-recovery p{margin:6px 0;overflow-wrap:anywhere}
.product-wb-recovery .product-field{font-size:13px;min-width:0}
.product-wb-recovery .product-wb-actions{align-items:end}
.product-wb-recovery button{font-size:14px;white-space:normal}
.product-wb-recovery-progress{padding:10px;border:1px solid #dbe3ef;border-radius:8px}
.product-wb-shared-hs{display:grid;gap:8px;min-width:0;padding:10px;border:1px solid #dbe3ef;border-radius:8px}
.product-wb-shared-hs h5,.product-wb-shared-hs p{margin:0;line-height:1.5}
.product-wb-shared-hs input{min-width:0;width:100%;padding:9px;font-size:14px}
.product-wb-shared-hs button{font-size:13px;white-space:normal}
.product-wb-attributes-unsynced{font-size:14px;line-height:1.55;overflow-wrap:anywhere}

/* Compact characteristic cards: Chinese labels lead; official Russian values stay in the controls. */
.selection-characteristic-table{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 12px 12px;border:0;border-radius:0;overflow:visible}
.selection-characteristic-row{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);min-width:0;border:1px solid #bfdbfe;border-radius:12px;background:#fff;overflow:hidden}
.selection-characteristic-row:first-child{border-top:1px solid #bfdbfe}
.selection-characteristic-row>*{min-width:0;margin:0;padding:10px 12px;border:0;overflow-wrap:anywhere;font-size:12px}
.selection-characteristic-row>:first-child{border:0}
.selection-characteristic-zh{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;align-content:start;background:#f8fbff}
.selection-characteristic-title{display:flex;align-items:center;gap:5px;min-width:0;flex-wrap:wrap}
.selection-characteristic-title>strong{font-size:14px;color:#172033}
.selection-characteristic-badge{display:inline-flex;align-items:center;min-height:19px;padding:1px 6px;border-radius:999px;font-size:10px;font-weight:750;white-space:nowrap}
.selection-characteristic-badge.required{color:#dc2626;background:#fee2e2}
.selection-characteristic-badge.popular{color:#2563eb;background:#dbeafe}
.selection-characteristic-badge.limit{color:#b45309;background:#ffedd5}
.selection-characteristic-zh>small,.selection-characteristic-suggestion{grid-column:1/-1;font-size:11px;line-height:1.4}
.selection-source-row-actions{grid-column:2;grid-row:1;display:flex;gap:5px;justify-content:flex-end;align-items:start;flex-wrap:wrap}
.selection-source-row-actions button{min-height:27px;padding:4px 7px;font-size:10px;white-space:nowrap}
.selection-characteristic-editor{display:grid;align-content:start;gap:7px;padding:10px 12px 12px;background:#fff;border-top:1px solid #dbeafe}
.selection-characteristic-editor input,.selection-characteristic-editor select{min-height:38px;padding:7px 9px;border-color:#cbd5e1;border-radius:8px;font-size:13px}
.selection-characteristic-editor button{justify-self:end;min-height:28px;padding:4px 9px;font-size:10px}
@media(max-width:1180px){.selection-characteristic-table{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.selection-characteristic-table{grid-template-columns:minmax(0,1fr);margin:0 8px 8px}.selection-characteristic-row:not(.selection-characteristic-header){grid-template-columns:minmax(0,1fr)}.selection-characteristic-row:not(.selection-characteristic-header)>:nth-child(2){border-top:1px solid #dbeafe;border-left:0}}

/* Store accounts use action cards; administrators use a dense operations table. */
.history-list{display:grid;gap:12px;width:100%;max-height:68vh;overflow-x:hidden;overflow-y:auto;border:0;border-radius:0;background:transparent}
.history-operation-card{display:grid;grid-template-columns:132px minmax(0,1fr) 190px;gap:16px;align-items:stretch;min-width:0;padding:14px;border:1px solid #dbe3ee;border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.05)}
.history-card-media{display:grid;place-items:center;min-width:0;height:154px;overflow:hidden;border-radius:11px;background:#f4f7fb}
.history-card-media img{display:block;width:100%;height:100%;object-fit:cover}
.history-image-empty{display:grid;width:100%;height:100%;place-items:center;padding:12px;color:#94a3b8;font-size:12px;text-align:center}
.history-card-main{display:grid;align-content:start;gap:9px;min-width:0}.history-card-main h3{display:-webkit-box;margin:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:15px;line-height:1.5}.history-card-main>a{overflow:hidden;color:#ea580c;font-size:12px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.history-card-meta{display:flex;gap:7px;flex-wrap:wrap}.history-card-meta span{max-width:100%;padding:4px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-card-error{display:-webkit-box;margin:0;overflow:hidden;color:#b91c1c;font-size:11px;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.history-card-side{display:grid;align-content:start;gap:8px;min-width:0;padding-left:14px;border-left:1px solid #edf1f5}.history-stage-badge{display:block;padding:7px 9px;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:800;overflow-wrap:anywhere}.history-primary-action{width:100%;background:#2563eb}.history-card-more>summary{cursor:pointer;padding:7px 9px;border:1px solid #cbd5e1;border-radius:8px;color:#475569;font-size:11px;font-weight:750;text-align:center}.history-card-actions{display:grid;gap:6px;margin-top:7px}.history-card-actions button{width:100%;padding:7px 8px;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:11px}
.product-system-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;grid-column:1/-1;padding:9px 11px;border:1px solid #dbeafe;border-radius:8px;background:#f8fbff;font-size:12px}.product-system-brand span{color:#64748b}.product-system-brand strong{font-size:12px}
@media(max-width:1099px){.history-operation-card{grid-template-columns:112px minmax(0,1fr) 160px;gap:12px}.history-card-media{height:132px}.history-card-side{padding-left:10px}}
@media(max-width:699px){.history-list{max-height:none;overflow:visible}.history-operation-card{grid-template-columns:104px minmax(0,1fr);gap:11px;padding:11px}.history-card-media{height:124px}.history-card-side{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;padding:10px 0 0;border-top:1px solid #edf1f5;border-left:0}.history-card-side .history-primary-action{grid-column:1}.history-card-more{grid-column:2}.history-card-main>a{white-space:normal;overflow-wrap:anywhere}.history-card-meta span{white-space:normal}}
@media(max-width:420px){.history-operation-card{grid-template-columns:88px minmax(0,1fr)}.history-card-media{height:108px}.history-card-side{grid-template-columns:1fr}.history-card-more{grid-column:1}}
.history-list.admin-history-table-wrap{display:block;max-height:68vh;overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff}
.admin-history-table{min-width:1180px;table-layout:fixed}.admin-history-table th:first-child,.admin-history-table td:first-child{width:300px}.admin-history-table .commerce-product-media,.admin-history-table .commerce-product-media img,.admin-history-table .commerce-image-empty{width:66px;height:78px}.admin-history-table .commerce-product-copy>a{display:block;margin-top:5px;overflow:hidden;color:#ea580c;font-size:11px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.admin-history-table .history-stage-badge{display:inline-block;max-width:130px}.history-table-error{display:-webkit-box;margin-top:5px;color:#dc2626;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.admin-history-actions{min-width:158px}.admin-history-actions>button{background:#2563eb;color:#fff;border-color:#2563eb}.admin-history-more{position:relative}.admin-history-more>summary{cursor:pointer;padding:6px 9px;border:1px solid #cbd5e1;border-radius:7px;color:#475569;font-size:12px;font-weight:750;list-style:none}.admin-history-more>summary::-webkit-details-marker{display:none}.admin-history-more-menu{display:grid;position:absolute;z-index:5;right:0;top:calc(100% + 5px);width:126px;gap:5px;padding:7px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 10px 24px #0f172a24}.admin-history-more-menu button{width:100%;padding:6px 8px;font-size:11px}.admin-history-table .history-col-store{width:78px}.admin-history-table .history-col-money{width:88px}.admin-history-table .history-col-category{width:105px}.admin-history-table .history-col-profit{width:105px}.admin-history-table .history-col-time{width:130px}.admin-history-table .history-col-state{width:126px}.admin-history-table .history-col-listing{width:96px}.admin-history-table .history-col-actions{width:178px}
@media(max-width:900px){.admin-history-table{min-width:760px}.admin-history-table .history-col-category,.admin-history-table .history-col-profit,.admin-history-table .history-col-time{display:none}.admin-history-table th:first-child,.admin-history-table td:first-child{width:270px}}
@media(max-width:600px){.admin-history-table{min-width:620px}.admin-history-table .history-col-store,.admin-history-table .history-col-money{display:none}.admin-history-table th:first-child,.admin-history-table td:first-child{width:250px}.admin-history-table .history-col-actions{width:160px}}

/* Store workspace design system: shared rhythm, controls and responsive content. */
.workspace{max-width:1440px}.page-view.card,.page-view.secondary-section{border:1px solid #dbe3ee;border-radius:14px;box-shadow:0 4px 16px #0f172a0d}.page-view .section-heading{min-height:48px;margin-bottom:16px}.page-view .section-heading h2{color:#172033;font-size:20px}.page-view .section-heading .muted{line-height:1.5}.page-view .section-badge,.history-stage-badge,.listing-badge{border-radius:999px}.page-view button{min-height:38px;font-weight:750}.page-view button.secondary,.page-view .quiet-button,.processing-tools button+button{border:1px solid #cbd5e1;background:#fff;color:#475569}.page-view input,.page-view select,.page-view textarea{min-height:40px;border-color:#cbd5e1;background:#fff}.library-filters{display:grid;grid-template-columns:minmax(220px,2fr) repeat(4,minmax(120px,1fr));gap:10px;align-items:end;padding:12px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc}.library-filters label{margin:0}.capture-mode-panel,.overview-action-list,.wb-page-content{min-width:0}.grid>.item,.review-product-card,.generation-product-card{overflow:hidden;border:1px solid #dbe3ee;border-radius:12px;background:#fff;box-shadow:0 2px 10px #0f172a0a}.grid>.item img{width:100%;max-width:100%;height:180px;object-fit:contain}.processing-table-wrap{overflow-x:hidden;border:0;background:transparent}.processing-table{display:grid;gap:8px}.processing-header,.processing-row{border:1px solid #e2e8f0;border-radius:10px;background:#fff}.processing-header{border-radius:9px;background:#f8fafc}.processing-reference img{width:88px;height:88px;border-radius:8px;object-fit:cover}.page-view .notice:empty,.page-view .grid:empty{min-height:82px}.nav-item.active{box-shadow:inset 3px 0 #60a5fa}.topbar-context label[hidden],.page-view label[hidden]{display:none!important}
@media(max-width:1099px){.workspace{padding:16px 18px 32px}.library-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:899px){.workspace{max-width:100%;overflow-x:hidden}.page-view.card,.page-view.secondary-section{overflow-x:hidden}.processing-header{display:none}.processing-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:12px}.processing-product,.processing-result,.processing-actions{grid-column:1/-1}.processing-reference,.processing-row>.status{grid-column:auto}.processing-actions button{flex:1 1 140px}.generated-results-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.library-filters,.history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-table-wrap{overflow-x:hidden}}
@media(max-width:599px){.workspace{padding:10px}.page-view.card,.page-view.secondary-section{margin-bottom:10px;border-radius:12px;box-shadow:none}.page-view .section-heading{display:block;min-height:0}.page-view .section-heading h2{font-size:18px}.library-filters,.history-filters{grid-template-columns:1fr;padding:9px}.processing-row{grid-template-columns:1fr}.processing-reference,.processing-row>.status{grid-column:1}.processing-actions{display:grid}.processing-actions button{width:100%}.generated-results-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{grid-template-columns:1fr}.grid>.item img{height:168px}.processing-tools{display:grid}.processing-tools button{width:100%}.capture-mode-panel form,.batch-entry form,.compat-content form{grid-template-columns:1fr}.topbar-context{max-width:42vw;overflow:hidden}.topbar-context strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Keep the sticky WB parent action bar clear of the last status row at every viewport. */
.product-wb-parent-workspace-shell>.product-wb-console-actions{margin-top:8px}

/* AI API池管理：紧凑线路列表，密钥编辑仅在侧栏内出现。 */
.ai-pool-manager{display:grid;gap:14px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.ai-pool-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.ai-pool-heading h3{margin:2px 0 5px}.ai-pool-add{flex:0 0 auto}.ai-pool-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.ai-pool-metric{display:grid;gap:3px;padding:10px 12px;border:1px solid #dbeafe;border-radius:9px;background:#f8fbff}.ai-pool-metric strong{font-size:18px}.ai-pool-store-usage,.ai-pool-tabs,.ai-route-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ai-pool-tabs{padding-bottom:8px;border-bottom:1px solid var(--line)}.ai-pool-tab{padding:7px 13px;background:#e2e8f0;color:#334155}.ai-pool-tab.active{background:#2563eb;color:#fff}.ai-route-list{display:grid;gap:8px}.ai-route-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fcfdff}.ai-route-title{display:flex;align-items:center;gap:8px}.ai-route-main p{margin:4px 0;overflow-wrap:anywhere}.ai-route-actions button{padding:6px 9px;background:#e8eef8;color:#24416d;font-size:12px}.ai-route-actions button:hover:not(:disabled){background:#d7e3f5}.ai-route-actions button:last-child{color:#991b1b}.ai-route-dialog{width:min(520px,100%)}.ai-route-editor{display:grid;gap:9px;padding:18px;background:#fff}.ai-route-editor label{margin:0}.ai-key-replace{display:flex!important;align-items:center;gap:8px;font-weight:600}.ai-key-replace input{width:18px!important;height:18px!important;flex:0 0 18px}.settings-store-admin{margin-top:14px}.settings-store-admin>.card{margin:0;border:0;box-shadow:none}.settings-store-admin>summary{font-weight:700}
@media(max-width:1099px){.ai-pool-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.ai-route-card{grid-template-columns:1fr}.ai-route-actions{justify-content:flex-start}}
@media(max-width:699px){.ai-pool-heading{display:grid}.ai-pool-add{width:100%}.ai-pool-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-route-actions button{flex:1 1 calc(50% - 8px)}.ai-route-dialog{width:100%;max-width:100%}.ai-route-editor{padding:14px}.ai-pool-metric strong{font-size:16px}}
.product-phase-summary{display:flex;flex-wrap:wrap;gap:8px 16px;margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel-soft)}

/* R2 restrained operations design system: neutral surfaces, one orange action color. */
:root{--accent:#ea580c;--accent-hover:#c2410c;--accent-soft:#fff7ed;--accent-line:#fed7aa;--panel-soft:#f8fafc;--success:#15803d;--warning:#b45309;--shadow:0 1px 3px rgba(15,23,42,.06)}
html{scroll-behavior:auto}body{background:#f5f6f8;color:var(--ink)}
button{min-height:38px;border:1px solid var(--accent);border-radius:8px;background:var(--accent);color:#fff;font-weight:700;box-shadow:none}
button:hover:not(:disabled){border-color:var(--accent-hover);background:var(--accent-hover)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #fb923c;outline-offset:2px}
button:disabled{border-color:#cbd5e1;background:#e2e8f0;color:#94a3b8}
.button-secondary,.history-action-secondary,#history-export,#archive-export,.quiet-button{border-color:var(--accent-line)!important;background:#fff!important;color:var(--accent-hover)!important}
.button-secondary:hover:not(:disabled),.history-action-secondary:hover:not(:disabled),#history-export:hover:not(:disabled),#archive-export:hover:not(:disabled){background:var(--accent-soft)!important}
.button-neutral,.dialog-heading button,.quiet-button{border-color:#d5dbe3!important;background:#fff!important;color:#475569!important}
.history-action-danger{min-height:36px!important;border-color:transparent!important;background:transparent!important;color:#b91c1c!important;font-weight:650!important}
.history-action-danger:hover:not(:disabled){border-color:#fecaca!important;background:#fff1f2!important}
a{color:#c2410c}.eyebrow{color:#787f8c}.card,.page-view.card,.page-view.secondary-section{border-color:#e1e5ea;border-radius:10px;background:#fff;box-shadow:var(--shadow)}
.section-badge{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-hover)}
.capture-mode,.product-tab,.ai-pool-tab{border-color:transparent;background:transparent;color:#596273}
.capture-mode.active,.product-tab.active,.ai-pool-tab.active{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-hover)}
.processing-counts p,.ai-pool-metric{border-color:#e5e7eb;background:#fafafa}
.processing-row:not(.attention) .processing-actions button,.ai-route-actions button{border-color:var(--accent-line);background:#fff;color:var(--accent-hover)}
.processing-row:not(.attention) .processing-actions button:hover,.ai-route-actions button:hover:not(:disabled){background:var(--accent-soft)}
.product-wb-console-actions button:nth-child(1),.product-wb-console-actions button:nth-child(2){border-color:var(--accent);background:var(--accent);color:#fff}
.product-wb-option-card.active,.mother-item.selected{border-color:var(--accent);background:var(--accent-soft)}
.product-wb-parent-workspace-shell>.product-wb-console-actions{background:#fff;border-top-color:#e5e7eb;backdrop-filter:none}

/* Navigation */
.app-shell{grid-template-columns:208px minmax(0,1fr)}
.sidebar{padding:16px 12px;background:#18202c}
.brand{padding:2px 6px 22px}.brand-mark{border-radius:7px;background:var(--accent)}.brand strong{font-size:14px}.brand div span{color:#aab3c0}
.sidebar-nav{display:flex;flex:1;flex-direction:column;gap:3px;min-height:0}
.nav-group-label{margin:12px 10px 5px;color:#7f8a99;font-size:10px;font-weight:750;letter-spacing:.08em}
.nav-item{position:relative;gap:10px;padding:9px 10px;border-radius:7px;color:#c8d0dc;font-size:13px}
.nav-icon{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-item:hover{background:#222c3a;color:#fff}.nav-item.active{background:rgba(234,88,12,.12);color:#fb923c;box-shadow:inset 3px 0 var(--accent)}
.nav-system{display:grid;gap:3px;margin-top:auto;padding-top:10px;border-top:1px solid #2b3543}.nav-system .nav-group-label{margin-top:0}
.sidebar-toggle{border-color:#d5dbe3;background:#fff;color:#475569}

/* History toolbar and desktop operations list */
.history-page{padding:18px}.history-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin-bottom:12px}
.history-toolbar .history-filters{grid-template-columns:minmax(190px,1.5fr) repeat(3,minmax(110px,.8fr)) minmax(310px,1.5fr);padding:0;border:0;background:transparent}
.history-toolbar .history-filters:has(#history-store-filter-wrap[hidden]){grid-template-columns:minmax(170px,1fr) minmax(100px,.7fr) minmax(100px,.7fr) minmax(270px,1.3fr)}
.history-toolbar-actions{align-self:end;margin:0}.history-toolbar-actions button{white-space:nowrap}
.history-date-range{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);align-items:center;gap:7px;margin:0;padding:0;border:0}.history-date-range legend{margin-bottom:5px;font-size:13px;font-weight:600}.history-date-range input{width:100%;min-width:0;min-height:40px}.history-date-separator{display:block;min-width:20px;color:var(--muted);font-size:12px;text-align:center;white-space:nowrap}
.history-list{max-height:none;overflow:visible}.history-list.admin-history-table-wrap{max-height:none;overflow:visible;border:1px solid #e5e7eb;border-radius:9px}
.admin-history-table{width:100%;min-width:0;table-layout:fixed}.admin-history-table th,.admin-history-table td{padding:10px 8px}.admin-history-table th{background:#f7f8fa;color:#596273;font-size:11px}
.admin-history-table .history-col-product{width:31%}.admin-history-table .history-col-store{width:9%}.admin-history-table .history-col-purchase{width:9%}.admin-history-table .history-col-pricing{width:12%}.admin-history-table .history-col-time{width:12%}.admin-history-table .history-col-state{width:13%}.admin-history-table .history-col-actions{width:14%}
.admin-history-table.fixed-store .history-col-product{width:35%}.admin-history-table.fixed-store .history-col-purchase{width:10%}.admin-history-table.fixed-store .history-col-pricing{width:13%}.admin-history-table.fixed-store .history-col-time{width:13%}.admin-history-table.fixed-store .history-col-state{width:14%}.admin-history-table.fixed-store .history-col-actions{width:15%}
.admin-history-table .admin-history-product-layout{display:flex;align-items:center;gap:12px}.admin-history-table .commerce-product-media,.admin-history-table .commerce-product-media img,.admin-history-table .commerce-image-empty{width:68px;height:82px;max-width:68px;max-height:82px;flex:0 0 68px;border-radius:7px;object-fit:cover}.admin-history-table .commerce-product-copy{flex:1 1 auto;width:auto;min-width:0;overflow:hidden}.admin-history-table .commerce-product-copy strong,.admin-history-table .admin-history-product-meta,.admin-history-table .history-table-error{display:block;width:100%;max-width:100%;overflow:hidden;overflow-wrap:normal;word-break:normal}.admin-history-table .commerce-product-copy strong{white-space:normal}.admin-history-table .admin-history-product-meta{white-space:normal}
.history-table-error{margin-top:5px;color:#9a3412;font-size:11px}.admin-history-actions,.history-card-actions{display:flex;min-width:0;gap:5px;align-items:center;flex-wrap:wrap}.admin-history-actions button,.history-card-actions button{width:auto;min-height:36px;padding:7px 9px;font-size:11px}
.history-action-primary{border-color:var(--accent)!important;background:var(--accent)!important;color:#fff!important}.history-action-secondary{border-color:var(--accent-line)!important;background:#fff!important;color:var(--accent-hover)!important}
.admin-history-table tr.has-warning{background:#fffaf5;box-shadow:inset 3px 0 #f59e0b}.history-stage-badge{padding:5px 7px;border-radius:999px;background:var(--accent-soft);color:#9a3412}.listing-badge{display:inline-block;margin-top:5px}
.completed-history{margin-top:16px;border:1px solid #e5e7eb;border-radius:9px}.completed-history>summary{padding:12px 14px;color:#475569;font-size:13px;font-weight:700}.completed-history[open]>summary{border-bottom:1px solid #e5e7eb}.completed-history .history-list{padding:12px}

/* Shared product/library detail shell used by library and capture history. */
.library-detail-dialog{width:min(1040px,calc(100% - 32px));height:min(92vh,900px);margin:auto;border-radius:12px;box-shadow:0 12px 40px rgba(15,23,42,.18)}
.library-detail-card{width:100%;height:100%;margin:0;padding:18px}.library-variant-tabs{border-bottom:1px solid #e5e7eb}.library-variant-tabs button{border-color:transparent;background:transparent;color:#596273}.library-variant-tabs button.active{border-color:var(--accent-line);background:var(--accent-soft);color:var(--accent-hover)}
.history-capture-facts,.history-technical{margin-top:12px;padding:12px;border:1px solid #e5e7eb;border-radius:9px;background:#fff}.history-capture-facts h3,.history-technical h3{margin:0 0 10px;font-size:15px}.history-technical{background:#fafafa;color:#596273}.history-detail-actions{display:flex;position:sticky;bottom:-18px;justify-content:flex-end;gap:8px;margin:16px -18px -18px;padding:12px 18px;border-top:1px solid #e5e7eb;background:#fff}

/* Keep product workspace dense and action-led without decorative color blocks. */
.product-header,.product-panel,.product-wb-console,.product-wb-group-values,.product-wb-shared-card,.product-attribute-editor,.product-warehouse-readiness,.library-package-info{border-color:#e5e7eb;background:#fff;box-shadow:none}
.product-progress-step.current,.product-progress-step.active{color:var(--accent-hover)}.product-tabs{background:#fafafa}.product-tab-panel>h3{font-size:16px}
.notice,.output{background:#f7f8fa}.notice.bad,.status.bad{color:#b91c1c}.overview-action-item.attention,.processing-row.attention{border-left-color:#f59e0b;background:#fffaf5}

@media(max-width:1100px){
  .app-shell{grid-template-columns:64px minmax(0,1fr)}.sidebar{padding:14px 8px}.brand{justify-content:center;padding:2px 0 18px}.brand div,.nav-group-label,.nav-label{display:none}.nav-item{justify-content:center;padding:10px}.nav-system{padding-top:8px}.nav-icon{width:20px;height:20px;flex-basis:20px}
  .history-toolbar{grid-template-columns:1fr}.history-toolbar .history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.history-date-range{grid-column:1/-1}.history-toolbar-actions{justify-self:end}
}
@media(max-width:899px){
  .admin-history-table thead{display:none}.admin-history-table,.admin-history-table tbody{display:block;width:100%}.admin-history-table tbody{padding:8px}.admin-history-table tbody tr{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(100px,.7fr) minmax(125px,.8fr);gap:8px;margin-bottom:8px;padding:10px;border:1px solid #e5e7eb;border-radius:9px}.admin-history-table td{display:block;width:auto!important;padding:4px;border:0}.admin-history-table .history-col-product{grid-row:span 2}.admin-history-table .history-col-store,.admin-history-table .history-col-time{display:none}.admin-history-table .history-col-actions{grid-column:2/-1}.admin-history-actions{justify-content:flex-end}
  .library-detail-dialog{width:calc(100% - 20px);height:calc(100vh - 20px)}
}
@media(max-width:800px){.sidebar{transition:none}.sidebar.open{box-shadow:8px 0 24px rgba(15,23,42,.2)}.brand div,.nav-group-label,.nav-label{display:block}.nav-item{justify-content:flex-start}.nav-system{margin-top:auto}}
@media(max-width:600px){
  .history-page{padding:12px}.history-toolbar .history-filters{grid-template-columns:1fr}.history-date-range{grid-template-columns:1fr;gap:6px}.history-date-separator{display:block}.history-toolbar-actions{display:grid;width:100%;grid-template-columns:1fr 1fr}.history-toolbar-actions button{width:100%}
  .history-list.admin-history-table-wrap{border:0}.admin-history-table tbody{padding:0}.admin-history-table tbody tr{grid-template-columns:1fr 1fr;padding:10px}.admin-history-table .history-col-product{grid-column:1/-1;grid-row:auto}.admin-history-table .history-col-purchase,.admin-history-table .history-col-pricing,.admin-history-table .history-col-state{display:block}.admin-history-table .history-col-time{display:none}.admin-history-table .history-col-actions{grid-column:1/-1}.admin-history-actions{justify-content:flex-start}.admin-history-actions button{flex:1 1 calc(50% - 5px)}.admin-history-actions .history-action-danger{flex:0 1 auto}
  .library-detail-dialog{width:100%;height:100vh;border-radius:0}.library-detail-card{padding:12px}.history-detail-actions{bottom:-12px;margin:14px -12px -12px;padding:10px 12px}.history-detail-actions button{flex:1}.library-gallery-main,.library-gallery-empty{height:38vh}
}

/* Compact color selection and the single reference-image editor. */
.product-color-card .product-color-work-status{grid-column:1/-1}.product-source-column .product-source-image{width:min(100%,320px);max-width:320px}.product-source-column .product-source-image img{width:100%;height:180px;max-height:180px;object-fit:contain}

/* Reference-image dialog: fixed chrome, compact contract/result, scrollable candidates. */
#mother-dialog{width:min(920px,calc(100vw - 32px));height:min(85vh,820px);margin:auto;border-radius:12px;overflow:hidden}
.mother-dialog-card{display:grid;width:100%;height:100%;grid-template-rows:auto auto auto minmax(0,1fr) auto;margin:0;padding:0;overflow:hidden}
.mother-dialog-card>.dialog-heading{padding:14px 18px 10px;border-bottom:1px solid #e5e7eb;background:#fff}.mother-dialog-card>#mother-dialog-status{margin:0;padding:7px 18px;background:#fafafa}.mother-dialog-scroll{min-height:0;overflow-y:auto;padding:0 18px 14px}.mother-dialog-card>.dialog-actions{position:static;margin:0;padding:10px 18px;border-top:1px solid #e5e7eb;background:#fff}
.sale-unit-contract{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 18px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:9px;background:#fafafa}.sale-unit-contract label{margin:0;gap:3px;font-size:11px}.sale-unit-contract input,.sale-unit-contract select{min-height:34px;padding:6px 8px}.sale-unit-summary{display:none;grid-column:1/-1;color:#334155;font-size:12px;font-weight:750}.sale-unit-contract.contract-frozen{display:block}.sale-unit-contract.contract-frozen .sale-unit-summary{display:block}.sale-unit-contract.contract-frozen .sale-unit-field{display:none!important}.sale-unit-contract.contract-frozen #mother-sale-unit-help{margin:4px 0 0}.sale-unit-contract .sale-unit-checkbox,.sale-unit-contract p{grid-column:1/-1;margin:0}.sale-unit-contract .sale-unit-checkbox{font-size:11px}
.white-background-result{display:grid;grid-template-columns:190px minmax(0,1fr) auto;grid-template-rows:auto auto 1fr;gap:5px 12px;align-items:center;margin:10px 0;padding:10px;border:1px solid var(--accent-line);border-radius:9px;background:var(--accent-soft)}.white-background-result:empty{display:none}.white-background-result>img{display:block;grid-column:1;grid-row:1/4;width:190px;height:142px;max-width:190px;max-height:142px;object-fit:contain;border:1px solid #e5e7eb;border-radius:7px;background:#fff}.white-background-result>strong,.white-background-result>p{grid-column:2;margin:0}.white-background-result-actions{display:flex;grid-column:3;grid-row:1/4;gap:7px;align-items:center;flex-wrap:wrap}.white-background-result-actions button{white-space:nowrap}
#mother-dialog .mother-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:9px;max-height:none;overflow:visible}#mother-dialog .mother-item{min-width:0;padding:7px;border:1px solid #dbe2ea;border-radius:9px}#mother-dialog .mother-item.selected{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}#mother-dialog .mother-item img{width:100%;height:138px;object-fit:contain;border-radius:6px;background:#f8fafc}#mother-dialog .mother-item p{margin:5px 0;font-size:11px}#mother-dialog .mother-item-controls{display:grid;gap:5px}#mother-dialog .mother-item-controls button,#mother-dialog .mother-item>button{min-height:32px;padding:5px 7px;font-size:10px}#mother-dialog .mother-item-controls input{min-height:32px;padding:5px 7px;font-size:10px}.dialog-processing-actions{margin-top:8px}
.product-unresolved-calls{width:100%;padding:8px 10px;border:1px solid #fed7aa;border-radius:8px;background:#fffaf5}.product-unresolved-calls>h4{margin:0;color:#9a3412;font-size:12px;font-weight:750}.product-unresolved-call{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;padding-top:7px;border-top:1px solid #fed7aa;font-size:11px}.product-unresolved-call button{min-height:32px;padding:5px 8px;font-size:10px;white-space:nowrap}
.product-quick-redo>h4{margin:8px 0;font-size:12px}.product-quick-redo-actions{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:600px){#mother-dialog{width:100%;height:92vh;border-radius:0}.mother-dialog-card>.dialog-heading{padding:10px 12px 8px}.mother-dialog-card>#mother-dialog-status{padding:6px 12px}.mother-dialog-scroll{padding:0 12px 10px}.sale-unit-contract{grid-template-columns:1fr;margin:7px 12px;padding:7px}.white-background-result{grid-template-columns:120px minmax(0,1fr);grid-template-rows:auto auto auto;padding:8px}.white-background-result>img{grid-column:1;grid-row:1/4;width:120px;height:100px;max-width:120px;max-height:100px}.white-background-result>strong,.white-background-result>p{grid-column:2}.white-background-result-actions{grid-column:1/-1;grid-row:auto}.white-background-result-actions button{width:100%}#mother-dialog .mother-grid{grid-template-columns:1fr}#mother-dialog .mother-item{display:grid;grid-template-columns:110px minmax(0,1fr);gap:6px 9px}#mother-dialog .mother-item img{grid-row:1/5;width:110px;height:110px}.product-unresolved-call{align-items:flex-start;flex-direction:column}}
/* P0 compact image review: one consistent 3:4 scan grid, viewer remains click-only. */
.review-image-group-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.review-image-group-heading h4{margin:0}.product-gallery-grid,.review-image-group .generated-results-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.product-gallery-grid .product-main-image{grid-column:auto}.product-main-image .generated-result-tile{max-width:none}.product-image-card .image-tile-stage,.review-image-card .image-tile-stage{aspect-ratio:3/4;max-height:260px}.product-image-card .image-tile-stage img,.review-image-card .image-tile-stage img{object-fit:contain}
.product-early-category{display:grid;gap:7px;margin:12px 0;padding:11px;border:1px solid #fed7aa;border-radius:10px;background:#fff}.product-early-category h4,.product-early-category p{margin:0}.product-early-category button{justify-self:start}
@media(max-width:1099px){.product-gallery-grid,.review-image-group .generated-results-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:599px){.product-gallery-grid,.review-image-group .generated-results-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.review-image-group-heading{align-items:flex-start;flex-direction:column}}
.product-selection-accounting { margin: 16px 0; padding: 16px; border: 1px solid #e5e7eb; border-left: 3px solid #f97316; border-radius: 10px; background: #fff; }
.product-selection-accounting > h4 { margin: 0 0 4px; }
.selection-category-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; margin: 12px 0 8px; }
.selection-category-row select { min-width: 0; width: 100%; }
.selection-accounting-facts { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 6px 14px; margin: 12px 0; }
.selection-accounting-facts dt { color: #6b7280; }
.selection-accounting-facts dd { margin: 0; }
.selection-accounting-result { margin: 8px 0; padding: 10px 12px; background: #f9fafb; border-radius: 8px; }
.selection-autosave { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 34px; margin-top: 8px; }
.selection-autosave span { font-size: 12px; font-weight: 700; }
.selection-autosave button { min-height: 30px; padding: 5px 9px; font-size: 11px; }
.selection-package-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.selection-low-margin { margin: 8px 0; }
.selection-low-margin input { width: 18px !important; height: 18px !important; flex: 0 0 18px !important; }
.selection-category-recommendation { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: center; margin: 12px 0 8px; padding: 10px; border: 1px solid #dbeafe; border-radius: 8px; background: #f8fbff; }
.selection-category-recommendation span { grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
.selection-category-recommendation button { grid-column: 2; grid-row: 1 / 3; white-space: nowrap; }
.selection-characteristics { display: block; margin: 12px 0; padding: 0; overflow: hidden; }
.selection-characteristics > summary { padding: 11px 12px; cursor: pointer; font-weight: 800; }
.selection-characteristics[open] > summary { border-bottom: 1px solid #e5e7eb; }
.selection-characteristics > p { margin: 9px 12px; }
.selection-characteristic-table { display: grid; gap: 0; margin: 0 12px 12px; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.selection-characteristic-row { display: grid; grid-template-columns: minmax(145px,1.05fr) minmax(135px,.9fr) minmax(135px,.9fr) minmax(190px,1.2fr); min-width: 0; border-top: 1px solid #e5e7eb; }
.selection-characteristic-row:first-child { border-top: 0; }
.selection-characteristic-row > * { min-width: 0; margin: 0; padding: 8px; border-left: 1px solid #e5e7eb; overflow-wrap: anywhere; font-size: 12px; }
.selection-characteristic-row > :first-child { border-left: 0; }
.selection-characteristic-header { background: #f7f8fa; color: #596273; }
.selection-characteristic-source { background: #fffdf9; }
.selection-characteristic-source strong,.selection-characteristic-source span { display: block; }
.selection-characteristic-source small { display: block; margin-top: 5px; }
.selection-characteristic-source-name,.selection-characteristic-source-value { background: #fffdf9; }
.selection-characteristic-source-name strong,.selection-characteristic-source-name small,.selection-characteristic-source-value span { display: block; }
.selection-characteristic-source-name small { margin-top: 4px; }
.selection-source-pairing { width: 100%; min-width: 0; min-height: 32px; padding: 5px 7px; border: 1px solid #d6d3d1; border-radius: 6px; background: #fff; font-size: 11px; }
.selection-source-tools { grid-column: 1/-1; border-left: 0 !important; background: #f8fafc; }
.selection-source-tools > summary { cursor: pointer; color: #475569; font-weight: 700; }
.selection-source-tools-body { display: grid; grid-template-columns: minmax(160px,1fr) minmax(130px,.8fr) minmax(180px,1fr); gap: 6px; align-items: center; margin-top: 7px; }
.selection-source-tools-body > input { width: 100%; min-width: 0; min-height: 32px; padding: 5px 7px; border: 1px solid #bfdbfe; border-radius: 6px; background: #fff; }
.selection-source-tools-body .selection-translation-actions { grid-column: 1/-1; }
.selection-source-unpaired > :first-child,.selection-source-unpaired > :nth-child(2) { background: #fafafa; }
.selection-characteristic-editor { display: grid; gap: 5px; background: #fff; }
.selection-characteristic-editor > span { color: #334155; font-weight: 700; }
.selection-characteristic-editor input,.selection-characteristic-editor select { width: 100%; min-width: 0; min-height: 34px; padding: 6px 7px; border: 1px solid #cbd5e1; border-radius: 6px; }
.selection-characteristic-translation { display: grid; gap: 5px; background: #f8fbff; }
.selection-characteristic-translation input { width: 100%; min-width: 0; min-height: 32px; padding: 5px 7px; border: 1px solid #bfdbfe; border-radius: 6px; background: #fff; }
.selection-translation-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.selection-translation-actions button { min-height: 30px; padding: 5px 7px; font-size: 10px; }
.selection-characteristic-empty { min-height: 34px; background: #fafafa; }
.product-wb-advanced-layout { grid-template-columns: 1fr; }
@media (max-width: 900px) { .selection-package-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) { .selection-characteristic-header { display: none; } .selection-characteristic-row:not(.selection-characteristic-header) { grid-template-columns: repeat(2,minmax(0,1fr)); } .selection-characteristic-row:not(.selection-characteristic-header) > * { border-top: 1px solid #e5e7eb; } .selection-characteristic-row:not(.selection-characteristic-header) > :nth-child(odd) { border-left: 0; } .selection-characteristic-row:not(.selection-characteristic-header) > :nth-child(-n+2) { border-top: 0; } .selection-source-tools-body { grid-template-columns: 1fr 1fr; } .selection-source-tools-body > .selection-source-pairing { grid-column: 1/-1; } }
@media (max-width: 600px) { .selection-category-row,.selection-package-grid,.selection-category-recommendation { grid-template-columns: 1fr; } .selection-category-recommendation button,.selection-category-recommendation span { grid-column: 1; grid-row: auto; width: 100%; } .selection-accounting-facts { grid-template-columns: 1fr; gap: 2px; } .selection-accounting-facts dd { margin-bottom: 8px; } .selection-characteristic-table { margin: 0 8px 8px; } .selection-characteristic-row:not(.selection-characteristic-header) { grid-template-columns: 1fr; } .selection-characteristic-row:not(.selection-characteristic-header) > * { border-top: 1px solid #e5e7eb; border-left: 0; } .selection-characteristic-row:not(.selection-characteristic-header) > :first-child { border-top: 0; } .selection-source-tools-body { grid-template-columns: 1fr; } .selection-source-tools-body > .selection-source-pairing,.selection-source-tools-body .selection-translation-actions { grid-column: 1; } }

/* Final selection accounting layout: source facts are one compact list; WB rows stay focused. */
.selection-source-overview{margin:12px 0;border:1px solid #fed7aa;border-radius:8px;background:#fffdf9;overflow:hidden}.selection-source-overview>summary{padding:9px 11px;cursor:pointer;color:#9a3412;font-size:12px;font-weight:800}.selection-source-overview[open]>summary{border-bottom:1px solid #fed7aa}.selection-source-overview-table{display:grid}.selection-source-overview-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.4fr);border-top:1px solid #ffedd5}.selection-source-overview-row:first-child{border-top:0}.selection-source-overview-row>*{min-width:0;padding:6px 9px;overflow-wrap:anywhere;font-size:11px}.selection-source-overview-row>*+*{border-left:1px solid #ffedd5}.selection-source-overview-header{background:#fff7ed;color:#9a3412}
.selection-characteristic-row{grid-template-columns:minmax(180px,.9fr) minmax(230px,1.35fr)}.selection-characteristic-zh{display:grid;gap:5px;align-content:start}.selection-characteristic-zh>small{font-size:10px;line-height:1.35}.selection-source-row-actions{display:flex;gap:5px;flex-wrap:wrap}.selection-source-row-actions button{min-height:28px;padding:4px 8px;font-size:10px}.selection-source-dialog{width:min(720px,calc(100% - 24px));height:min(92vh,820px);margin:auto;border-radius:12px}.selection-source-dialog-card{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;height:100%;padding:16px;background:#fff}.selection-source-dialog-card>.muted{margin:3px 0 10px}.selection-source-dialog-list{display:grid;gap:5px;min-height:0;overflow:auto;padding:2px}.selection-source-dialog-option{display:grid;grid-template-columns:20px minmax(100px,.7fr) minmax(0,1.3fr);gap:6px;align-items:start;margin:0;padding:7px 8px;border:1px solid #e5e7eb;border-radius:7px;background:#fff;font-weight:400;cursor:pointer}.selection-source-dialog-option input{width:16px;height:16px;margin:1px 0}.selection-source-dialog-option span,.selection-source-dialog-option small{overflow-wrap:anywhere;font-size:11px}.selection-source-dialog-option small{grid-column:2/-1}.selection-source-dialog-option:has(input:checked){border-color:#f97316;background:#fff7ed}.selection-source-dialog-option.occupied{background:#f8fafc;color:#94a3b8;cursor:not-allowed}.selection-source-dialog-editor{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid #e5e7eb}.selection-source-dialog-current,.selection-source-dialog-editor>.muted,.selection-source-dialog-editor>.selection-translation-actions{grid-column:1/-1;margin:0}.selection-source-dialog-editor>input{min-height:34px;padding:6px 8px;border:1px solid #bfdbfe;border-radius:6px}.selection-source-dialog-editor .selection-translation-actions{justify-content:flex-end}
@media(max-width:900px){.selection-characteristic-header{display:grid}.selection-characteristic-row:not(.selection-characteristic-header){grid-template-columns:minmax(150px,.8fr) minmax(200px,1.2fr)}.selection-characteristic-row:not(.selection-characteristic-header)>*{border-top:0}.selection-characteristic-row:not(.selection-characteristic-header)>:nth-child(2){border-left:1px solid #e5e7eb}}
@media(max-width:600px){.selection-characteristic-header{display:none}.selection-characteristic-row:not(.selection-characteristic-header){grid-template-columns:1fr}.selection-characteristic-row:not(.selection-characteristic-header)>:nth-child(2){border-top:1px solid #e5e7eb;border-left:0}.selection-source-dialog{width:100%;height:100%;border-radius:0}.selection-source-dialog-card{padding:10px}.selection-source-dialog-option{grid-template-columns:20px minmax(90px,.8fr) minmax(0,1.2fr)}.selection-source-dialog-editor{grid-template-columns:1fr}.selection-source-dialog-editor>*{grid-column:1}.selection-source-dialog-editor .selection-translation-actions button{flex:1}.selection-source-overview-row{grid-template-columns:minmax(95px,.7fr) minmax(0,1.3fr)}}

/* ERP order cost evidence: keep order-level cost primary and catalog price compact. */
.erp-order-table td:nth-child(6),.erp-order-table td:nth-child(9),.erp-order-table td:nth-child(10),.erp-order-table td:nth-child(11),.erp-order-table th:nth-child(6),.erp-order-table th:nth-child(9),.erp-order-table th:nth-child(10),.erp-order-table th:nth-child(11){text-align:right;font-variant-numeric:tabular-nums}
.erp-order-count-coverage{color:var(--erp-blue)!important}.erp-catalog-price{display:grid;gap:2px}.erp-catalog-price strong{font-variant-numeric:tabular-nums}.erp-catalog-price small{color:var(--erp-muted);font-size:10px}.erp-catalog-price details{max-width:360px}.erp-catalog-price summary{cursor:pointer;color:var(--erp-blue);font-size:10px}.erp-catalog-price details small{display:block;overflow-wrap:anywhere}
@media(max-width:600px){.erp-order-table:not(.erp-order-table-legacy) td:nth-child(9),.erp-order-table:not(.erp-order-table-legacy) td:nth-child(10){display:grid!important}.erp-order-table:not(.erp-order-table-legacy) td:nth-child(11){display:none!important}}

/* Shared Russian copy can be regenerated independently without disturbing image plans. */
#product-action-status,#product-color-selection-status,#product-processing-action-status{white-space:pre-line}
.product-current-status{margin:12px 0;padding:12px;border:1px solid #dce4ef;border-radius:8px;background:#f8fafc}.product-current-status>p{margin:6px 0}.product-current-issues{display:grid;gap:10px;padding-left:22px;margin:10px 0}.product-current-issues li>strong,.product-current-issues li>span,.product-current-issues li>small{display:block;line-height:1.6;overflow-wrap:anywhere}.product-current-issues li>small{color:#475569}.product-feedback-history{margin:12px 0;padding:10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.product-feedback-history summary{cursor:pointer}.product-feedback-history p{font-size:12px;overflow-wrap:anywhere}#product-sync-status{grid-column:2/-1;margin:0;font-size:12px}.product-wb-attributes-unsynced>p{margin:6px 0}
.product-text-copy-value{display:grid;gap:8px}.product-text-copy-actions{display:flex;gap:7px;flex-wrap:wrap}.product-text-copy-actions button{padding:6px 10px;font-size:12px}
.product-text-redo-dialog{width:min(460px,calc(100% - 24px));max-height:75vh;margin:auto;border:1px solid #cbd5e1;border-radius:10px;padding:0;overflow:auto}.product-text-redo-dialog::backdrop{background:#0f172a66}.product-text-redo-card{display:grid;gap:9px;padding:14px;background:white}.product-text-redo-card h3,.product-text-redo-card p{margin:0}.product-text-redo-card textarea{width:100%;min-height:80px;resize:vertical}.product-text-redo-card .product-text-copy-actions{justify-content:flex-end}#product-text-redo-status,#product-text-redo-dialog-status{white-space:pre-line;overflow-wrap:anywhere}.product-copy-notes{margin:12px 0;padding:12px;border:1px solid #dce4ef;border-radius:8px;background:#f8fafc}.product-copy-notes h4{margin:0}.product-copy-notes li{margin:8px 0;overflow-wrap:anywhere}
.product-quick-translate-button{position:fixed;z-index:18;left:226px;top:50%;transform:translateY(-50%);min-width:92px;padding:11px 12px;border:1px solid #fb923c;border-radius:999px;background:#f97316;color:#fff;box-shadow:0 8px 20px #0f172a2e;font-weight:800}.product-quick-translate-button:hover:not(:disabled){background:#ea580c}.product-quick-translate-dialog{width:min(380px,calc(100% - 24px));height:auto;max-height:min(640px,calc(100vh - 32px));margin:auto;border:1px solid #fed7aa;border-radius:16px;padding:0;overflow:auto;background:#fff;box-shadow:0 24px 70px #0f172a40}.product-quick-translate-dialog::backdrop{background:#0f172a70;backdrop-filter:blur(2px)}.product-quick-translate-card{display:grid;gap:10px;padding:16px;background:linear-gradient(180deg,#fffaf5 0,#fff 96px)}.product-quick-translate-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #ffedd5}.product-quick-translate-card h3,.product-quick-translate-card p{margin:0}.product-quick-translate-card h3{font-size:17px;line-height:1.35;color:#172033}.product-quick-translate-close{display:grid;place-items:center;flex:0 0 auto;width:32px;height:32px;padding:0;border:1px solid #fed7aa;border-radius:50%;background:#fff7ed;color:#c2410c;box-shadow:none;font-size:22px;line-height:1}.product-quick-translate-close:hover:not(:disabled){border-color:#fb923c;background:#ffedd5;color:#9a3412}.product-quick-translate-card .product-field{gap:5px;margin:0}.product-quick-translate-card .product-field>span{color:#334155;font-size:12px;font-weight:800}.product-quick-translate-card textarea{width:100%;min-height:72px;max-height:160px;padding:9px 10px;border-color:#cbd5e1;background:#fff;resize:vertical;line-height:1.45}.product-quick-translate-card textarea:focus{border-color:#fb923c}.product-quick-translate-card textarea[readonly]{background:#f8fafc;color:#334155}.product-quick-translate-card>p{min-height:18px;font-size:12px;line-height:1.45}.product-quick-translate-actions{justify-content:flex-end;padding-top:2px}.product-quick-translate-actions button{min-height:36px;padding:8px 12px}.product-quick-translate-actions button:first-child{background:#f97316}.product-quick-translate-actions button:first-child:hover:not(:disabled){background:#ea580c}.product-quick-translate-actions button:last-child{border:1px solid #fed7aa;background:#fff7ed;color:#c2410c}.product-quick-translate-actions button:last-child:hover:not(:disabled){background:#ffedd5;color:#9a3412}
@media(max-width:1180px){.product-quick-translate-button{left:14px;top:auto;bottom:18px;transform:none}}
@media(max-width:480px){.product-quick-translate-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px);border-radius:12px}.product-quick-translate-card{padding:14px}.product-quick-translate-actions button{flex:1}}
.product-wb-package-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #dce4ef;border-radius:8px;font-size:14px}.product-wb-package-editor>h5,.product-wb-package-editor>p,.product-wb-package-editor>.product-checkbox,.product-wb-package-editor>button{grid-column:1/-1}.product-wb-package-editor h5{margin:0;font-size:15px}.product-wb-package-editor input{font-size:14px;min-width:0}.product-wb-package-editor button{font-size:14px;white-space:normal}

/* Six-column SKU selector: do not inherit the older five-column matrix widths. */
.product-wb-size-matrix{table-layout:fixed}.product-wb-size-matrix th,.product-wb-size-matrix td{padding:10px 12px;vertical-align:middle}.product-wb-size-matrix th:nth-child(1),.product-wb-size-matrix td:nth-child(1){width:54px;text-align:center}.product-wb-size-matrix th:nth-child(2),.product-wb-size-matrix td:nth-child(2){width:22%}.product-wb-size-matrix th:nth-child(3),.product-wb-size-matrix td:nth-child(3){width:25%}.product-wb-size-matrix th:nth-child(4),.product-wb-size-matrix td:nth-child(4){width:15%}.product-wb-size-matrix th:nth-child(5),.product-wb-size-matrix td:nth-child(5){width:18%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-wb-size-matrix th:nth-child(6),.product-wb-size-matrix td:nth-child(6){width:96px;white-space:nowrap;text-align:center}.product-wb-size-matrix select,.product-wb-size-matrix input[type="text"]{width:100%;min-width:0}.product-wb-size-select .product-checkbox{justify-content:center;grid-column:auto;margin:0}.product-wb-size-select input{width:16px;height:16px;margin:0}.product-wb-size-chrt{color:#475569;font-size:11px}@media(max-width:900px){.product-wb-size-matrix{min-width:760px}}

/* WB summary stays compact: selected colors appear once and polling does not need visual placeholders. */
.wb-product-status-card{padding:16px 18px;border-color:#dbe4f0;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);box-shadow:0 5px 18px rgba(15,23,42,.05)}.wb-product-title{display:block;overflow:hidden;color:#0f172a;font-size:16px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.wb-product-meta{margin:5px 0 8px;font-size:12px;overflow-wrap:anywhere}.wb-color-summary{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;margin:8px 0 4px;padding:6px 9px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1e3a8a;font-size:12px}.wb-color-summary span{color:#64748b}.wb-color-summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wb-color-details{margin:8px 0 4px;padding:7px 10px;border:1px solid #dbeafe;border-radius:8px;background:#f8fbff}.wb-color-details summary{cursor:pointer;color:#1d4ed8;font-size:12px;font-weight:700}.wb-color-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.wb-color-chip{padding:4px 7px;border-radius:999px;background:#e0e7ff;color:#3730a3;font-size:11px}.wb-stage-summary{min-width:0;color:#334155;line-height:1.45}.wb-product-status-card>.status,.wb-product-status-card>.bad{margin:6px 0}@media(max-width:600px){.wb-product-status-card{padding:13px}.wb-product-title{white-space:normal}.wb-color-summary{width:100%;border-radius:8px}.wb-stage-summary{font-size:12px}.wb-stage-timeline li{padding-left:22px}}

.ozon-upload-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:12px}.ozon-upload-form label{margin:0}.ozon-import-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:7px;padding:4px 0 10px}.ozon-import-list button{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;min-width:0;min-height:62px;padding:8px 10px;border:1px solid #dbe2ea;border-radius:8px;background:#fff;color:#172033;text-align:left}.ozon-import-list button:hover:not(:disabled){border-color:#fdba74;background:#fffaf5}.ozon-import-list button.active{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 3px 0 var(--accent)}.ozon-import-card-mark{display:grid;width:34px;height:34px;place-items:center;border-radius:7px;background:#fff7ed;color:#c2410c;font-size:9px;font-weight:850;letter-spacing:.03em}.ozon-import-card-copy{display:grid;min-width:0;gap:3px}.ozon-import-card-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.ozon-import-card-copy span{overflow:hidden;color:#64748b;font-size:10px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.ozon-import-card-badge{padding:3px 6px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:10px;font-weight:750;white-space:nowrap}.ozon-import-card-badge.selected{background:#ffedd5;color:#c2410c}.ozon-import-list-note{margin:0 0 10px;padding:7px 10px;border-left:3px solid #cbd5e1;background:#f8fafc;font-size:11px}.ozon-workspace{display:grid;gap:14px}.ozon-summary,.ozon-mapping-form,.ozon-group-section{padding:14px;border:1px solid #dce4ef;border-radius:10px;background:#fff}.ozon-summary h3,.ozon-group-section h3,.ozon-block-heading h3,.ozon-block-heading p{margin:0}.ozon-summary>p{overflow-wrap:anywhere}.ozon-mapping-form{display:grid;grid-template-columns:1fr 160px;gap:10px}.ozon-block-heading,.ozon-mapping-grid,.ozon-default-grid,.ozon-actions{grid-column:1/-1}.ozon-mapping-grid,.ozon-default-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ozon-default-grid{padding-top:10px;border-top:1px solid #e5e7eb}.ozon-default-grid textarea{min-height:40px}.ozon-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.ozon-group-table{display:grid;margin-top:10px;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.ozon-group-row{display:grid;grid-template-columns:minmax(130px,1.2fr) 70px 60px 100px minmax(180px,2fr);border-top:1px solid #e5e7eb}.ozon-group-row:first-child{border-top:0}.ozon-group-row>*{min-width:0;padding:8px 10px;overflow-wrap:anywhere}.ozon-group-header{background:#f8fafc}.ozon-group-section>.ozon-actions{margin-top:12px}
@media(max-width:850px){.ozon-upload-form,.ozon-mapping-form{grid-template-columns:1fr}.ozon-mapping-grid,.ozon-default-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ozon-group-header{display:none}.ozon-group-row{grid-template-columns:1fr 1fr}.ozon-group-row>*:last-child{grid-column:1/-1}}
@media(max-width:540px){.ozon-mapping-grid,.ozon-default-grid{grid-template-columns:1fr}.ozon-upload-form button,.ozon-actions button{width:100%}.ozon-group-row{grid-template-columns:1fr}.ozon-import-list{grid-template-columns:1fr}.ozon-import-list button{grid-template-columns:34px minmax(0,1fr) auto;min-height:56px;padding:7px 8px}}

#ozon-import-list{display:block;min-width:0;max-width:100%}.ozon-history-section{margin-top:14px;padding-top:14px;border-top:1px solid #dce4ef}.ozon-history-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 8px}.ozon-history-heading h3,.ozon-history-heading p{margin:0}.ozon-history-heading .muted{font-size:11px}
.ozon-task-table{display:grid;margin-top:12px;border:1px solid #dce4ef;border-radius:9px;overflow:hidden;background:#fff}.ozon-task-header,.ozon-task-row{display:grid;grid-template-columns:minmax(180px,1.45fr) minmax(140px,1fr) minmax(120px,.9fr) minmax(100px,.68fr) minmax(150px,1.1fr) 78px minmax(90px,.7fr) 62px;align-items:center;min-width:0}.ozon-task-header{background:#f8fafc;color:#475569;font-size:11px}.ozon-task-row{min-height:52px;border-top:1px solid #e5eaf0}.ozon-task-header>*,.ozon-task-row>*{min-width:0;padding:7px 9px}.ozon-task-row>*{overflow:hidden}.ozon-task-file{display:grid;gap:2px}.ozon-task-file strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.ozon-task-file small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.ozon-task-row select,.ozon-task-row input{width:100%;min-width:0;height:34px;padding:5px 7px;font-size:12px}.ozon-task-row select{background:#fff}.ozon-task-hs{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;align-items:center}.ozon-task-hs small{grid-column:1/-1;overflow:hidden;color:#64748b;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.ozon-task-hs-confirm{min-height:30px;padding:4px 7px;font-size:10px;white-space:nowrap}.ozon-task-status{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.ozon-task-status.ok{color:#047857;font-weight:700}.ozon-task-remove{width:100%;min-height:32px;padding:5px 7px;font-size:11px;white-space:nowrap}.ozon-task-summary{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid #e5eaf0}.ozon-task-summary span{margin-right:auto;color:#475569;font-size:12px}.ozon-task-actions{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px}.ozon-start-all{min-height:38px;padding:8px 14px;background:var(--accent);color:#fff;font-weight:800}.ozon-start-all:hover:not(:disabled){background:#ea580c}.ozon-start-all:disabled{background:#cbd5e1;color:#64748b}
@media(max-width:900px){.ozon-history-heading{align-items:flex-start;flex-direction:column;gap:4px}.ozon-task-header{display:none}.ozon-task-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:0}.ozon-task-row>*{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:6px;overflow:visible}.ozon-task-row>*::before{content:attr(data-label);color:#64748b;font-size:10px;font-weight:700}.ozon-task-file{grid-column:1/-1}.ozon-task-remove{display:flex;justify-content:flex-end;grid-template-columns:1fr}.ozon-task-remove::before{display:none}}
.ozon-task-hs small{display:none}
@media(max-width:540px){.ozon-task-row{grid-template-columns:1fr}.ozon-task-actions{align-items:stretch;flex-direction:column}.ozon-task-summary span{margin-right:0}.ozon-start-all{width:100%}}
.ozon-history-section,.ozon-history-group,.ozon-history-group .ozon-import-list{min-width:0;max-width:100%;overflow:hidden}.ozon-history-group{display:grid;gap:6px;margin:10px 0}.ozon-history-group-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.ozon-history-group-heading h4{margin:0;color:#334155;font-size:13px}.ozon-history-group-heading .muted{font-size:11px}.ozon-history-group.attention .ozon-history-group-heading h4{color:#b45309}.ozon-history-toolbar{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(130px,1fr) minmax(110px,.8fr) 120px 120px auto;gap:7px;align-items:center;margin:10px 0 2px;padding:9px;border:1px solid #dce4ef;border-radius:8px;background:#f8fafc}.ozon-history-toolbar input,.ozon-history-toolbar select{width:100%;min-width:0;min-height:32px;padding:5px 7px;font-size:11px}.ozon-history-toolbar button{min-height:32px;padding:5px 8px;font-size:11px;white-space:nowrap}.ozon-history-pager{display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 0 0}.ozon-history-pager button{min-height:30px;padding:5px 9px;font-size:11px}.ozon-history-pager span{font-size:11px}
@media(max-width:900px){.ozon-history-toolbar{grid-template-columns:minmax(150px,1fr) minmax(120px,1fr) minmax(100px,1fr)}.ozon-history-toolbar input[type=date]:nth-of-type(1){grid-column:1}.ozon-history-toolbar button{width:100%}}
@media(max-width:540px){.ozon-history-toolbar{grid-template-columns:1fr 1fr}.ozon-history-toolbar input[type=search],.ozon-history-toolbar button{grid-column:1/-1}}

.erp-page{display:grid;gap:16px}.erp-tabs{display:flex;flex-wrap:wrap;gap:8px}.erp-tabs button{border:1px solid #d8dee8;background:#fff;color:inherit}.erp-tabs button.active{border-color:transparent;background:var(--accent);color:#fff}.erp-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.erp-toolbar label{display:grid;gap:5px;min-width:130px}.erp-toolbar .erp-check{display:flex;min-width:auto;align-items:center;padding-bottom:9px}.erp-content,.erp-management{display:grid;gap:16px;min-width:0}.erp-table-wrap{max-width:100%;overflow:auto}.erp-table{min-width:900px}.erp-shop-form{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:14px;border:1px solid #d8dee8;border-radius:12px}.erp-shop-form label{display:grid;gap:5px}.erp-bind-controls{display:flex;gap:6px;min-width:260px}.erp-bind-controls select{min-width:150px}@media(max-width:760px){.erp-toolbar>*,.erp-shop-form>*{width:100%}.erp-bind-controls{min-width:220px}}
.erp-bi{display:grid;gap:14px;padding:16px;border:1px solid #cbd8e8;border-radius:14px;background:linear-gradient(145deg,#f8fbff,#fff)}.erp-bi-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.erp-bi-heading h3{margin:1px 0 4px;font-size:18px}.erp-bi-heading p{margin:0}.erp-bi-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.erp-bi-card{display:grid;gap:4px;padding:12px;border:1px solid #dce5f0;border-radius:11px;background:#fff}.erp-bi-card strong{font-size:20px;color:#10233f}.erp-bi-card small,.erp-bi-bar small{color:var(--muted);font-size:11px}.erp-bi-label{color:#526277;font-size:12px;font-weight:700}.erp-bi-bars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.erp-bi-bar{display:grid;gap:6px}.erp-bi-bar-head{display:flex;justify-content:space-between;gap:10px;font-size:12px}.erp-bi-track{height:8px;overflow:hidden;border-radius:999px;background:#e5eaf1}.erp-bi-fill{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#14b8a6)}@media(max-width:1100px){.erp-bi-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.erp-bi-heading{display:grid}.erp-bi-cards,.erp-bi-bars{grid-template-columns:1fr 1fr}}@media(max-width:480px){.erp-bi-cards,.erp-bi-bars{grid-template-columns:1fr}}

/* ERP cockpit: dense daily signals, clear risks, and tables that do not overlap. */
.erp-page{
  --erp-ink:#132238;--erp-blue:#2563eb;--erp-teal:#0f766e;--erp-amber:#d97706;
  --erp-canvas:#f5f7fa;--erp-line:#d9e2ec;--erp-muted:#607089;
  display:grid;gap:0;padding:0!important;overflow:hidden;border:0!important;border-radius:16px!important;
  background:var(--erp-canvas)!important;box-shadow:0 12px 36px rgba(19,34,56,.08)!important;
  font-family:"Segoe UI Variable Text","Microsoft YaHei UI","Segoe UI",sans-serif;
}

/* ERP order ledger: compact evidence-first totals, filters and result semantics. */
.erp-page .erp-ledger-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--erp-line);border-radius:12px;overflow:hidden;background:#fff}
.erp-page .erp-ledger-total{display:grid;gap:4px;min-height:96px;padding:16px;border-right:1px solid var(--erp-line);border-bottom:1px solid var(--erp-line);background:#fff}
.erp-page .erp-ledger-total:nth-child(3n){border-right:0}.erp-page .erp-ledger-total:nth-last-child(-n+3){border-bottom:0}
.erp-page .erp-ledger-total span,.erp-page .erp-ledger-queue span{color:var(--erp-muted);font-size:12px;font-weight:700}.erp-page .erp-ledger-total strong{color:#132238;font-size:22px;line-height:1.15}.erp-page .erp-ledger-total small,.erp-page .erp-ledger-queue small{color:var(--erp-muted);font-size:11px;line-height:1.45}
.erp-page .erp-ledger-total.estimate{background:#fffbeb}.erp-page .erp-ledger-total.loss{background:#fff7f7}.erp-page .erp-ledger-total.loss strong{color:#b42318}
.erp-page .erp-ledger-queues{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.erp-page .erp-ledger-queue{display:grid;grid-template-columns:1fr auto;gap:3px 12px;min-height:94px;padding:14px 16px;border:1px solid var(--erp-line);border-radius:10px;background:#fff;color:#132238;text-align:left;box-shadow:none}
.erp-page .erp-ledger-queue:hover,.erp-page .erp-ledger-queue.active{border-color:#2563eb;background:#eff6ff}.erp-page .erp-ledger-queue.warning strong{color:#b45309}.erp-page .erp-ledger-queue.loss strong{color:#b42318}.erp-page .erp-ledger-queue strong{grid-row:1/3;grid-column:2;font-size:24px}.erp-page .erp-ledger-queue small{grid-column:1/-1}.erp-page .erp-ledger-queue em{grid-column:1/-1;color:#2563eb;font-size:11px;font-style:normal;font-weight:800}
.erp-page .erp-ledger-filters{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) auto;gap:8px;padding:12px;border-top:1px solid var(--erp-line);background:#f8fafc}
.erp-page .erp-ledger-filters label{display:grid;gap:4px;color:var(--erp-muted);font-size:11px;font-weight:700}.erp-page .erp-ledger-filters select{min-width:0;height:36px;border:1px solid var(--erp-line);border-radius:8px;background:#fff;color:#132238}.erp-page .erp-ledger-filters button{align-self:end;height:36px}
.erp-page .erp-ledger-active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:10px 12px;border-top:1px solid var(--erp-line)}.erp-page .erp-ledger-active-filters>span{color:var(--erp-muted);font-size:11px;font-weight:700}.erp-page .erp-filter-chip{min-height:28px;padding:4px 9px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;box-shadow:none}
.erp-page .erp-ledger-search{grid-template-columns:auto minmax(220px,1fr) auto}.erp-page .erp-ledger-search select{min-width:104px}
.erp-page .erp-order-id-cell,.erp-page .erp-order-evidence-cell{display:grid;gap:4px;align-content:start}.erp-page .erp-order-id-cell small,.erp-page .erp-order-evidence-cell small{color:var(--erp-muted);font-size:11px;line-height:1.4}.erp-page .erp-order-evidence-cell strong{font-size:13px}
.erp-profit-by-currency{display:grid;gap:5px;justify-items:start}.erp-profit-by-currency span{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}.erp-profit-by-currency .profit{color:#137347;background:#e6f4ea}.erp-profit-by-currency .loss{color:#b3261e;background:#fce8e6}.erp-profit-by-currency .zero{color:#5f6368;background:#edf0f3}.erp-profit-by-currency .pending{color:#8a5300;background:#fff2cc}.erp-business-profit .erp-profit-by-currency span{padding:0;background:transparent;font:inherit}.erp-finance-reference{font-size:11px;color:var(--erp-muted)}.erp-finance-reference summary{cursor:pointer;color:#285fa7}.erp-finance-reference code{display:block;max-width:310px;margin-top:4px;padding:5px 7px;overflow-wrap:anywhere;border-radius:4px;background:#f4f7fa;color:#33475f;user-select:all}.erp-finance-impact.profit{color:#137347}.erp-finance-impact.loss{color:#b3261e}.erp-finance-impact.zero{color:#5f6368}.erp-finance-impact.pending,.erp-finance-order-pending{color:#8a5300}
.erp-page .erp-order-profit-cell.loss strong{color:#b42318}.erp-page .erp-order-profit-cell.estimate strong{color:#b45309}.erp-page .erp-order-profit-cell.unknown strong{color:var(--erp-muted)}.erp-page .erp-state-chip.loss{border-color:#fecaca;background:#fff1f2;color:#b42318}

@media(max-width:900px){
  .erp-page .erp-ledger-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-page .erp-ledger-total,.erp-page .erp-ledger-total:nth-child(3n){border-right:1px solid var(--erp-line);border-bottom:1px solid var(--erp-line)}.erp-page .erp-ledger-total:nth-child(2n){border-right:0}.erp-page .erp-ledger-total:nth-last-child(-n+2){border-bottom:0}
  .erp-page .erp-ledger-queues{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-page .erp-ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-page .erp-ledger-filters button{grid-column:1/-1}
}
@media(max-width:480px){
  .erp-page .erp-ledger-totals{grid-template-columns:1fr 1fr}.erp-page .erp-ledger-total{min-height:86px;padding:12px}.erp-page .erp-ledger-total strong{font-size:17px}
  .erp-page .erp-ledger-queues{grid-template-columns:1fr 1fr;gap:6px}.erp-page .erp-ledger-queue{min-height:88px;padding:10px}.erp-page .erp-ledger-queue strong{font-size:20px}
  .erp-page .erp-ledger-filters{grid-template-columns:1fr 1fr;padding:10px}.erp-page .erp-ledger-search{grid-template-columns:auto minmax(0,1fr) auto}.erp-page .erp-ledger-search select{min-width:88px}
  .erp-order-table:not(.erp-order-table-legacy) td:nth-child(3),.erp-order-table:not(.erp-order-table-legacy) td:nth-child(4),.erp-order-table:not(.erp-order-table-legacy) td:nth-child(6){display:grid!important}
  .erp-order-table tbody tr{grid-template-columns:1fr}.erp-order-table td:nth-child(1){grid-column:auto}
}
@media(max-width:480px){.erp-page .erp-order-table:not(.erp-order-table-legacy) td:nth-child(9),.erp-page .erp-order-table:not(.erp-order-table-legacy) td:nth-child(10){display:grid!important}.erp-page .erp-order-table:not(.erp-order-table-legacy) td:nth-child(11){display:none!important}}
.erp-page>.section-heading{min-height:0;margin:0;padding:22px 24px;align-items:center;background:var(--erp-ink);color:#fff}
.erp-page>.section-heading h2{margin:3px 0 4px;color:#fff;font-size:24px;letter-spacing:-.02em}
.erp-page>.section-heading .eyebrow{margin:0;color:#9fb3c8;font-size:12px;letter-spacing:0;text-transform:none}
.erp-page>.section-heading .muted{max-width:760px;margin:0;color:#d3dde8}
.erp-page>.section-heading .section-badge{border-color:#3a536f;background:#1c314a;color:#dce8f3}
.erp-page .erp-tabs{display:flex;flex-wrap:nowrap;gap:0;overflow-x:auto;padding:0 18px;border-bottom:1px solid var(--erp-line);background:#fff}
.erp-page .erp-tabs button{flex:0 0 auto;min-height:50px;padding:0 15px;border:0!important;border-bottom:3px solid transparent!important;border-radius:0;background:transparent!important;color:#5b6b80;font-weight:700;white-space:nowrap}
.erp-page .erp-tabs button:hover{background:#f7faff!important;color:var(--erp-ink)}
.erp-page .erp-tabs button.active{border-bottom-color:var(--erp-blue)!important;background:#f7faff!important;color:var(--erp-ink)!important}
.erp-page .erp-toolbar{display:grid;grid-template-columns:minmax(180px,240px) minmax(180px,240px) 1fr;gap:10px;align-items:end;padding:14px 20px;border-bottom:1px solid var(--erp-line);background:#fff}
.erp-page .erp-toolbar label{display:grid;min-width:0;margin:0;gap:5px;color:#526277;font-size:12px;font-weight:700}
.erp-page .erp-toolbar input,.erp-page .erp-toolbar select{width:100%;min-width:0;min-height:40px;border-color:#cbd5e1;border-radius:8px;background:#fff;color:var(--erp-ink)}
.erp-page .erp-toolbar .erp-check{display:flex;min-width:0;min-height:40px;align-items:center;gap:8px;padding:0 8px;color:#526277;white-space:nowrap}
.erp-page .erp-toolbar .erp-check input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--erp-blue)}
.erp-toolbar-actions{display:flex;align-items:center;justify-self:end;justify-content:flex-end;gap:8px}
.erp-page button{border:1px solid var(--erp-blue);border-radius:8px;background:var(--erp-blue);color:#fff;box-shadow:none}
.erp-page button:hover:not(:disabled){border-color:#1d4ed8;background:#1d4ed8}
.erp-page .button-secondary{border-color:#cbd5e1;background:#fff;color:#334155}
.erp-page .button-secondary:hover:not(:disabled){border-color:#94a3b8;background:#f8fafc;color:var(--erp-ink)}
.erp-page #erp-refresh-all{border-color:var(--erp-ink);background:var(--erp-ink)}
.erp-page #erp-refresh-all:hover:not(:disabled){border-color:#1c314a;background:#1c314a}
.erp-page #erp-status{min-height:34px;margin:0;padding:8px 20px;border-bottom:1px solid var(--erp-line);background:#fff}
.erp-page .erp-content{display:grid;min-width:0;gap:18px;padding:20px}
.erp-page .notice{margin:0;border:1px solid var(--erp-line);background:#fff;color:#526277}
.erp-finance-import{display:grid;gap:0;overflow:hidden;border:1px solid var(--erp-line);border-radius:12px;background:#fff}.erp-finance-import-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--erp-line)}.erp-finance-import-heading h3{margin:0;color:var(--erp-ink);font-size:15px}.erp-finance-import-heading p{margin:3px 0 0;font-size:11px}.erp-finance-import-form{display:grid;grid-template-columns:minmax(160px,1fr) minmax(130px,.6fr) minmax(210px,1fr) minmax(220px,1.2fr) auto;gap:10px;align-items:end;padding:14px 16px}.erp-finance-import-form label{display:grid;min-width:0;gap:5px;color:#526277;font-size:11px;font-weight:700}.erp-finance-import-form input,.erp-finance-import-form select{width:100%;min-width:0;min-height:40px;border-color:#cbd5e1;border-radius:8px;background:#fff}.erp-finance-import-form button{min-height:40px;white-space:nowrap}.erp-finance-preview:empty{display:none}.erp-finance-preview{display:grid;gap:10px;padding:0 16px 14px}.erp-finance-preview>p{margin:0}.erp-finance-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;overflow:hidden;border:1px solid var(--erp-line);border-radius:9px;background:var(--erp-line)}.erp-finance-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.erp-finance-preview-actions span{font-size:11px;font-weight:700}.erp-finance-preview-actions button{min-height:36px}.erp-finance-preview .erp-evidence-fact{min-width:0}.erp-finance-preview .erp-evidence-fact strong{font-size:12px}
@media(max-width:900px){.erp-finance-import-form{grid-template-columns:1fr 1fr}.erp-finance-preview-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.erp-finance-import-heading,.erp-finance-preview-actions{align-items:flex-start;flex-direction:column}.erp-finance-import-form,.erp-finance-preview-grid{grid-template-columns:1fr}}

.erp-page .erp-bi{display:grid;gap:16px;padding:0;border:0;border-radius:0;background:transparent}
.erp-page .erp-bi-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.erp-page .erp-bi-heading h3{margin:2px 0 3px;color:var(--erp-ink);font-size:24px;letter-spacing:-.02em}
.erp-page .erp-bi-heading p{margin:0}
.erp-bi-kicker{color:var(--erp-blue);font-size:12px;font-weight:800}
.erp-state-chip{display:inline-flex;width:max-content;max-width:100%;align-items:center;padding:4px 8px;border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#526277;font-size:11px;font-weight:800;white-space:nowrap}
.erp-state-chip.success{border-color:#99d8c9;background:#eefbf7;color:#0b6b59}
.erp-state-chip.warning{border-color:#f2c48b;background:#fff8eb;color:#a65d00}
.erp-state-chip.neutral{border-color:#d7dee8;background:#f7f9fc;color:#66758a}
.erp-bi-signal{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);gap:1px;overflow:hidden;border:1px solid var(--erp-line);border-radius:12px;background:var(--erp-line)}
.erp-bi-lead{display:grid;grid-template-columns:1fr auto;gap:5px 16px;padding:20px 22px;background:#fff}
.erp-bi-lead>span:first-child{align-self:end;color:#526277;font-size:12px;font-weight:800}
.erp-bi-lead>strong{grid-column:1;line-height:1;color:var(--erp-ink);font-size:clamp(38px,5vw,56px);letter-spacing:-.05em}
.erp-bi-lead>small{grid-column:2;grid-row:2;align-self:end;color:var(--erp-muted)}
.erp-platform-mix{display:flex;grid-column:1/-1;height:9px;margin-top:12px;overflow:hidden;border-radius:999px;background:#e8edf3}
.erp-platform-wb{background:var(--erp-blue)}.erp-platform-ozon{background:var(--erp-teal)}
.erp-platform-legend{display:flex;grid-column:1/-1;flex-wrap:wrap;gap:14px;color:#526277;font-size:11px}
.erp-platform-legend span{display:inline-flex;align-items:center;gap:6px}
.erp-platform-legend span::before{width:7px;height:7px;border-radius:50%;background:var(--erp-blue);content:""}
.erp-platform-legend .ozon::before{background:var(--erp-teal)}
.erp-bi-secondary{display:grid;grid-template-rows:1fr 1fr;background:#fff}
.erp-bi-metric{display:grid;align-content:center;gap:3px;min-width:0;padding:16px 18px;background:#fff}
.erp-bi-secondary .erp-bi-metric+.erp-bi-metric{border-top:1px solid var(--erp-line)}
.erp-bi-metric>span{color:#526277;font-size:12px;font-weight:700}
.erp-bi-metric>strong{color:var(--erp-ink);font-size:24px;letter-spacing:-.03em}
.erp-bi-metric>small{color:var(--erp-muted);font-size:11px}
.erp-page .erp-bi-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;overflow:hidden;border:1px solid var(--erp-line);border-radius:12px;background:var(--erp-line)}
.erp-page .erp-bi-bar{display:grid;gap:7px;padding:16px 18px;background:#fff}
.erp-page .erp-bi-bar-head{display:flex;justify-content:space-between;gap:10px;color:#526277;font-size:12px}
.erp-page .erp-bi-bar-head strong{color:var(--erp-ink)}
.erp-page .erp-bi-track{height:7px;overflow:hidden;border-radius:999px;background:#e7edf3}
.erp-page .erp-bi-fill{display:block;height:100%;border-radius:inherit;background:var(--erp-blue)}
.erp-page .erp-bi-bar.success .erp-bi-fill{background:var(--erp-teal)}
.erp-page .erp-bi-bar.warning .erp-bi-fill{background:var(--erp-amber)}
.erp-page .erp-bi-bar small{color:var(--erp-muted);font-size:11px}
.erp-bi-actions{display:grid;grid-template-columns:auto repeat(2,minmax(0,1fr));align-items:stretch;overflow:hidden;border:1px solid var(--erp-line);border-radius:12px;background:#fff}
.erp-bi-actions h4{display:flex;align-items:center;margin:0;padding:16px 18px;border-right:1px solid var(--erp-line);color:var(--erp-ink);font-size:13px}
.erp-bi-action{display:grid;grid-template-columns:auto 1fr;gap:1px 8px;padding:13px 16px;border-left:1px solid var(--erp-line)}
.erp-bi-action strong{grid-row:1/3;align-self:center;color:var(--erp-amber);font-size:25px}
.erp-bi-action span{align-self:end;color:var(--erp-ink);font-size:12px;font-weight:800}
.erp-bi-action small{color:var(--erp-muted);font-size:10px}
.erp-bi-action.good strong{color:var(--erp-teal)}

.erp-management{display:grid;min-width:0;gap:18px}
.erp-management-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;overflow:hidden;border:1px solid var(--erp-line);border-radius:12px;background:var(--erp-line)}
.erp-management-panel{min-width:0;overflow:hidden;border:1px solid var(--erp-line);border-radius:12px;background:#fff}
.erp-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid var(--erp-line);background:#fff}
.erp-panel-heading h3{margin:0;color:var(--erp-ink);font-size:15px}.erp-panel-heading p{margin:3px 0 0;font-size:11px}
.erp-page .erp-shop-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(170px,.8fr) auto;gap:10px;align-items:end;padding:16px 18px;border:0;border-radius:0;background:#fff}
.erp-page .erp-shop-form label{display:grid;min-width:0;margin:0;gap:5px;color:#526277;font-size:11px;font-weight:700}
.erp-page .erp-shop-form input,.erp-page .erp-shop-form select{width:100%;min-width:0;min-height:40px;border-color:#cbd5e1;border-radius:8px}
.erp-page .erp-shop-form button{min-height:40px;white-space:nowrap}
.erp-page .erp-table-wrap{max-width:100%;max-height:none;overflow-x:auto;overflow-y:visible;border:0;border-radius:0}
.erp-page .erp-table{width:100%;min-width:900px;table-layout:auto}
.erp-page .erp-table th{position:static;padding:11px 12px;border-color:var(--erp-line);background:#f6f8fb;color:#526277;font-size:11px;font-weight:800;white-space:nowrap}
.erp-page .erp-table td{padding:9px 12px;border-color:#e7ecf2;color:#22334a;font-size:12px;vertical-align:middle}
.erp-page .erp-table tbody tr:hover{background:#f8fbff}
.erp-order-summary{overflow:hidden;border:1px solid var(--erp-line);border-radius:12px;background:var(--erp-line)}
.erp-month-analysis{display:grid;gap:10px;padding:14px;border:1px solid var(--erp-line);border-radius:12px;background:#fff}.erp-month-analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.erp-month-analysis-heading h3{margin:0;color:var(--erp-ink);font-size:16px}.erp-month-analysis-heading p{margin:3px 0 0}.erp-month-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;border:1px solid var(--erp-line);border-radius:10px;background:var(--erp-line);gap:1px}.erp-page .erp-month-metric,.erp-page button.erp-month-metric{display:grid;align-content:start;gap:4px;min-height:94px;padding:13px;border:0;border-radius:0;background:#fff;color:inherit;text-align:left;box-shadow:none}.erp-month-metric>span{color:var(--erp-muted);font-size:10px;font-weight:800}.erp-month-metric>strong{color:var(--erp-ink);font-size:20px;font-variant-numeric:tabular-nums}.erp-month-metric>small{color:var(--erp-muted);font-size:10px;line-height:1.35}.erp-page button.erp-month-metric:hover,.erp-page button.erp-month-metric.active{border:0;background:#eef5ff;color:inherit}.erp-page button.erp-month-metric.active{box-shadow:inset 0 -3px 0 var(--erp-blue)}.erp-month-reasons{margin:0;padding:8px 10px;border-radius:8px;background:#fff8ec;color:#765019;font-size:10px;line-height:1.5}.erp-month-shop-table{min-width:720px}.erp-month-shop-table td:nth-child(n+3),.erp-month-shop-table th:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}.erp-ledger-conflict{margin:0;padding:10px 12px;border-left:3px solid var(--erp-amber);border-radius:6px;background:#fff8ec;color:#765019;font-size:11px;line-height:1.5}
@media(max-width:1100px){.erp-month-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.erp-month-metrics{grid-template-columns:1fr 1fr}.erp-month-analysis-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.erp-month-metrics{grid-template-columns:1fr}}
.erp-order-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#fff}
.erp-order-summary-heading h3{margin:0;color:var(--erp-ink);font-size:14px}.erp-order-summary-heading span{color:var(--erp-muted);font-size:11px}
.erp-order-current-source{margin:0;padding:8px 16px;border-top:1px solid var(--erp-line);background:#f8fbff;color:#36506f;font-size:11px;font-weight:700}
.erp-order-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:8px;padding:8px;background:#f6f8fb}
.erp-page .erp-order-count{display:flex;width:100%;min-height:62px;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border:1px solid #dbe4ef;border-radius:9px;background:#fff;color:#334155;font:inherit;font-size:12px;text-align:left;cursor:pointer}.erp-page .erp-order-count:hover:not(:disabled){border-color:#8fb0dc;background:#f8fbff}.erp-page .erp-order-count:focus-visible{outline:3px solid #93c5fd;outline-offset:1px}.erp-page .erp-order-count.active{border-color:var(--erp-blue);background:#eef5ff;box-shadow:inset 0 0 0 1px var(--erp-blue)}.erp-page .erp-order-count:disabled{cursor:not-allowed;opacity:.58}.erp-order-count-identity{display:grid;min-width:0;gap:2px}.erp-order-count-identity>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.erp-order-count-identity small{color:var(--erp-muted);font-size:10px}.erp-order-count-value{color:var(--erp-blue);font-size:16px}
.erp-order-table{min-width:1040px}.erp-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0 2px}.erp-pagination-info{color:var(--erp-muted);font-size:12px}.erp-pagination-controls{display:flex;align-items:center;gap:6px}.erp-pagination-controls button{min-width:34px;min-height:34px;padding:6px 10px;border:1px solid var(--erp-line);border-radius:7px;background:#fff;color:#334155;font-size:12px;font-weight:700}.erp-pagination-controls button:hover:not(:disabled){border-color:var(--erp-blue);color:var(--erp-blue)}.erp-pagination-controls button.active{border-color:var(--erp-blue);background:var(--erp-blue);color:#fff}.erp-pagination-controls button:disabled{cursor:not-allowed;opacity:.4}
.erp-order-summary-heading>div{display:grid;gap:3px}.erp-order-summary-actions{display:flex!important;grid-auto-flow:column;align-items:center;gap:8px}.erp-order-mode-switch{display:flex!important;grid-auto-flow:column;gap:0!important;padding:3px;border:1px solid var(--erp-line);border-radius:9px;background:#f6f8fb}.erp-page .erp-order-mode-switch button{min-height:30px;padding:5px 10px;border:0;border-radius:6px;background:transparent;color:#526277;font-size:11px}.erp-page .erp-order-mode-switch button.active{background:#fff;color:var(--erp-blue);box-shadow:0 1px 4px #1322381f}.erp-ledger-search{display:grid;grid-template-columns:minmax(180px,260px) auto;gap:8px}.erp-ledger-search input{min-height:36px;margin:0;padding:7px 10px}.erp-ledger-search button{min-height:36px;padding:7px 13px}.erp-ledger-scope{margin:0;padding:7px 11px;border-left:3px solid var(--erp-amber);background:#fff9ef;color:#765019;font-size:11px;line-height:1.45}.erp-ledger-scope.legacy{border-left-color:var(--erp-blue);background:#f3f7ff;color:#334f78}.erp-page .erp-order-link{padding:0;border:0;background:transparent;color:var(--erp-blue);font-weight:800;text-align:left;white-space:nowrap}.erp-page .erp-order-link:hover:not(:disabled){border:0;background:transparent;color:#1d4ed8;text-decoration:underline;text-underline-offset:3px}.erp-order-table td:nth-child(3){white-space:nowrap}.erp-order-table td:nth-child(4),.erp-order-table td:nth-child(5){white-space:nowrap;font-variant-numeric:tabular-nums}.erp-order-table td:nth-child(6),.erp-order-table td:nth-child(9),.erp-order-table td:nth-child(10){text-align:right;font-variant-numeric:tabular-nums}.erp-order-table th:nth-child(6),.erp-order-table th:nth-child(9),.erp-order-table th:nth-child(10){text-align:right}.erp-page .erp-order-table-wrap{max-height:min(58vh,620px);overflow:auto;border-bottom:1px solid var(--erp-line)}.erp-page .erp-order-table th{position:sticky;top:0;z-index:1;background:#f6f8fb}
.erp-ledger-dialog{width:min(1080px,calc(100% - 24px));height:100%;max-width:none;max-height:none;margin:0 0 0 auto;padding:0;overflow:auto;border:0;background:#fff;box-shadow:-14px 0 42px #0f172a33}.erp-ledger-dialog::backdrop{background:#13223899}.erp-ledger-detail{display:grid;grid-auto-rows:max-content;align-content:start;gap:18px;min-height:100%;padding:22px;background:var(--erp-canvas);color:var(--erp-ink)}.erp-ledger-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.erp-ledger-detail-heading h2{margin:3px 0 0;font-size:24px;letter-spacing:-.03em}.erp-ledger-detail-label{color:var(--erp-blue);font-size:12px;font-weight:800}.erp-ledger-detail-heading button{border-color:#cbd5e1;background:#fff;color:#334155}.erp-ledger-detail-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid var(--erp-line);border-radius:10px;background:var(--erp-line);gap:1px}.erp-ledger-finance{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;border:1px solid var(--erp-line);border-radius:10px;background:var(--erp-line);gap:1px}.erp-ledger-metric{display:grid;align-content:start;gap:4px;padding:13px;background:#fff}.erp-ledger-metric>span{color:var(--erp-muted);font-size:11px;font-weight:700}.erp-ledger-metric>strong{overflow-wrap:anywhere;font-size:16px}.erp-ledger-metric>small{color:var(--erp-muted);font-size:10px;line-height:1.4}.erp-ledger-metric.pending>strong{color:var(--erp-amber)}.erp-ledger-metric.estimate{background:#fffaf2}.erp-ledger-section{overflow:hidden;border:1px solid var(--erp-line);border-radius:10px;background:#fff}.erp-ledger-section>h3{margin:0;padding:13px 15px;border-bottom:1px solid var(--erp-line);font-size:14px}.erp-ledger-section .erp-table{min-width:680px}.erp-ledger-timeline{display:grid;gap:0;margin:0;padding:0;list-style:none}.erp-ledger-timeline li{position:relative;display:grid;gap:6px;padding:13px 15px 13px 34px;border-bottom:1px solid #e7ecf2}.erp-ledger-timeline li:last-child{border-bottom:0}.erp-ledger-timeline li::before{position:absolute;top:18px;left:15px;width:8px;height:8px;border:2px solid #fff;border-radius:50%;background:var(--erp-blue);box-shadow:0 0 0 1px var(--erp-blue);content:""}.erp-ledger-timeline li::after{position:absolute;top:29px;bottom:-7px;left:19px;width:1px;background:#cbd5e1;content:""}.erp-ledger-timeline li:last-child::after{display:none}.erp-ledger-timeline li.superseded{opacity:.58}.erp-ledger-event-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.erp-ledger-event-times{display:flex;flex-wrap:wrap;gap:5px 14px;color:var(--erp-muted);font-size:11px;font-variant-numeric:tabular-nums}
.erp-ledger-detail-meta{grid-template-columns:repeat(3,minmax(0,1fr))}.erp-ledger-finance.erp-profit-summary{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(360px,1.6fr);overflow:hidden;border:1px solid #b9cce5;border-radius:12px;background:#fff;gap:0}.erp-profit-lead{display:grid;align-content:center;gap:7px;padding:20px;background:#173f73;color:#fff}.erp-profit-lead>span{font-size:12px;font-weight:700;opacity:.82}.erp-profit-lead>strong{font-size:30px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.erp-profit-lead>small{font-size:11px;line-height:1.5;opacity:.82}.erp-profit-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;background:#e5ebf2;gap:1px}.erp-evidence-fact{display:grid;align-content:start;gap:3px;padding:11px 13px;background:#fff}.erp-evidence-fact>span{color:var(--erp-muted);font-size:10px;font-weight:700}.erp-evidence-fact>strong{overflow-wrap:anywhere;color:var(--erp-ink);font-size:14px;font-variant-numeric:tabular-nums}.erp-evidence-fact>small{color:var(--erp-muted);font-size:10px;line-height:1.4}.erp-profit-estimate{grid-column:1/-1;display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:10px;padding:11px 14px;border-top:1px solid #e5ebf2;background:#fff9ed}.erp-profit-estimate>span{color:#765019;font-size:11px;font-weight:800}.erp-profit-estimate>strong{color:#9a5b00;font-size:18px;font-variant-numeric:tabular-nums}.erp-profit-estimate>small{color:#765019;font-size:10px}.erp-profit-caveat{grid-column:1/-1;margin:0;padding:8px 14px;border-top:1px solid #e5ebf2;background:#f8fafc;color:var(--erp-muted);font-size:10px}.erp-ledger-evidence{overflow:hidden;border:1px solid var(--erp-line);border-radius:10px;background:#fff}.erp-ledger-evidence>summary{padding:13px 15px;color:#36506f;font-size:12px;font-weight:800;cursor:pointer}.erp-ledger-evidence[open]>summary{border-bottom:1px solid var(--erp-line)}.erp-ledger-evidence-body{display:grid;gap:12px;padding:12px;background:#f6f8fb}.erp-evidence-facts,.erp-evidence-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid var(--erp-line);border-radius:8px;background:var(--erp-line);gap:1px}.erp-ledger-timeline-section{margin:0}.erp-order-store-cell,.erp-order-profit-cell{display:grid;gap:2px}.erp-order-store-cell strong,.erp-order-profit-cell strong{font-size:12px}.erp-order-store-cell small,.erp-order-profit-cell small{color:var(--erp-muted);font-size:9px;line-height:1.25}.erp-order-profit-cell.ready strong{color:#0f766e;font-variant-numeric:tabular-nums}.erp-page .erp-order-table{min-width:920px}.erp-page .erp-order-table td:nth-child(4),.erp-page .erp-order-table td:nth-child(7),.erp-page .erp-order-table td:nth-child(8),.erp-page .erp-order-table th:nth-child(4),.erp-page .erp-order-table th:nth-child(7),.erp-page .erp-order-table th:nth-child(8){text-align:right}
.erp-page .erp-shop-table{min-width:1080px}.erp-page .erp-source-table{min-width:1000px}
.erp-page .erp-shop-table th:first-child,.erp-page .erp-shop-table td:first-child{width:180px}
.erp-page .erp-source-table th:first-child,.erp-page .erp-source-table td:first-child{width:190px}
.erp-page .erp-source-table th:nth-child(2),.erp-page .erp-source-table td:nth-child(2){width:150px}
.erp-page .erp-source-table th:nth-child(5),.erp-page .erp-source-table td:nth-child(5){width:310px}
.erp-page .erp-source-table th:last-child,.erp-page .erp-source-table td:last-child{width:170px}
.erp-source-meta{display:grid;gap:2px}.erp-source-meta strong{font-size:12px}.erp-source-meta small{color:var(--erp-muted);font-size:10px}
.erp-page .erp-bind-controls{display:grid;grid-template-columns:minmax(160px,1fr) auto;min-width:280px;gap:8px;align-items:center}
.erp-page .erp-bind-controls select{width:100%;min-width:0;min-height:36px;border-color:#cbd5e1;border-radius:7px}
.erp-page .erp-bind-controls button{min-height:36px;padding:7px 11px;white-space:nowrap}
.erp-page .erp-inline-editor{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:6px;min-width:360px}
.erp-page .erp-inline-editor button{min-height:32px;padding:5px 8px}
.erp-time{color:var(--erp-muted);white-space:nowrap}

/* Seerfar selection: admin-shared evidence workspace with a blue primary action. */
.selection-page{--selection-blue:#2563eb;--selection-blue-soft:#eff6ff;display:grid;gap:14px;color:#172033}.selection-page>.section-heading{margin:0}.selection-page button{border-color:var(--selection-blue);background:var(--selection-blue);color:#fff}.selection-page button:hover:not(:disabled){border-color:#1d4ed8;background:#1d4ed8}.selection-page .selection-secondary,.selection-page .selection-report-link{border-color:#cbd5e1;background:#fff;color:#334155}.selection-page .selection-secondary:hover:not(:disabled),.selection-page .selection-report-link:hover:not(:disabled){border-color:#93c5fd;background:var(--selection-blue-soft);color:#1d4ed8}.selection-tabs{display:flex;gap:4px;padding:4px;border:1px solid #dbe3ee;border-radius:10px;background:#f8fafc}.selection-tabs button{min-height:36px;border-color:transparent;background:transparent;color:#526277}.selection-tabs button.active{border-color:#bfdbfe;background:#fff;color:#1d4ed8;box-shadow:0 1px 3px #0f172a14}.selection-session{border:1px solid #dbe3ee;border-radius:10px;background:#fff}.selection-session>summary{padding:11px 14px;color:#36506f;font-size:12px;font-weight:800;cursor:pointer}.selection-session-body{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(280px,1.4fr) auto;gap:12px;align-items:end;padding:0 14px 14px}.selection-session-body p,.selection-session-body label{margin:0}.selection-session-body>div{display:flex;gap:8px}.selection-form{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(240px,1.7fr) repeat(4,minmax(120px,.75fr)) auto;gap:10px;align-items:end;padding:14px;border:1px solid #dbe3ee;border-radius:10px;background:#f8fafc}.selection-form label{margin:0}.selection-form small{display:block;font-size:10px;line-height:1.35}.selection-form button{white-space:nowrap}.selection-content{display:grid;gap:14px}.selection-progress{display:grid;gap:8px;padding:12px 14px;border:1px solid #bfdbfe;border-radius:10px;background:#f8fbff}.selection-progress.blocked{border-color:#fecaca;background:#fff7f7}.selection-progress p{margin:0}.selection-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.selection-progress-track{height:7px;overflow:hidden;border-radius:999px;background:#dbeafe}.selection-progress-fill{display:block;height:100%;border-radius:inherit;background:var(--selection-blue)}.selection-task-view{display:grid;gap:16px}.selection-task-meta{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));overflow:hidden;border:1px solid #dbe3ee;border-radius:10px;background:#dbe3ee;gap:1px}.selection-fact{display:grid;align-content:start;gap:4px;padding:11px 12px;background:#fff}.selection-fact span{color:#64748b;font-size:10px;font-weight:700}.selection-fact strong{overflow-wrap:anywhere;font-size:12px;font-variant-numeric:tabular-nums}.selection-result-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,.75fr);gap:14px;align-items:start}.selection-result-main{min-width:0}.selection-result-main h3{margin:0 0 8px;font-size:15px}.selection-table-wrap{max-height:620px;overflow:auto;border:1px solid #dbe3ee;border-radius:10px}.selection-table{width:100%;min-width:1040px;border-collapse:collapse}.selection-table th{position:sticky;z-index:1;top:0;padding:9px 10px;border-bottom:1px solid #dbe3ee;background:#f6f8fb;color:#526277;font-size:10px;text-align:left;white-space:nowrap}.selection-table td{max-width:240px;padding:9px 10px;border-bottom:1px solid #edf1f5;font-size:11px;white-space:pre-line;vertical-align:middle}.selection-table tbody tr{cursor:pointer}.selection-table tbody tr:hover,.selection-table tbody tr.active{background:#eff6ff}.selection-table button{min-height:30px;padding:5px 8px;font-size:10px}.selection-bookmarked{border-color:#1d4ed8!important;background:#1d4ed8!important}.selection-detail{position:sticky;top:12px;display:grid;gap:12px;max-height:calc(100vh - 90px);overflow:auto;padding:14px;border:1px solid #bfdbfe;border-radius:10px;background:#f8fbff}.selection-detail-heading{display:grid;gap:8px}.selection-detail-heading h3{margin:3px 0 0;font-size:15px;line-height:1.4}.selection-detail-heading p{margin:0}.selection-detail-facts{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #dbe3ee;border-radius:8px;background:#dbe3ee;gap:1px}.selection-detail-actions,.selection-candidate-actions{display:flex;gap:8px;flex-wrap:wrap}.selection-product-link{display:inline-grid;min-height:38px;align-items:center;padding:8px 12px;border:1px solid #bfdbfe;border-radius:8px;background:#fff;font-size:12px;font-weight:700;text-decoration:none}.selection-report-coverage{display:grid;grid-template-columns:auto auto 1fr;gap:8px 18px;align-items:center;padding:13px 15px;border-left:4px solid #f59e0b;border-radius:8px;background:#fff8eb}.selection-report-coverage strong{font-size:16px}.selection-report-coverage span,.selection-report-coverage small{color:#765019;font-size:11px}.selection-report-nav{display:flex;gap:7px;overflow-x:auto;padding-bottom:3px}.selection-report-nav button{flex:0 0 auto;min-height:32px;padding:6px 9px;font-size:10px}.selection-report-chapters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.selection-report-chapter{display:grid;align-content:start;gap:9px;padding:14px;border:1px solid #dbe3ee;border-radius:10px;background:#fff;scroll-margin-top:12px}.selection-report-chapter h3,.selection-report-chapter p{margin:0}.selection-report-chapter h3{font-size:14px}.selection-report-chapter p{font-size:11px;line-height:1.55}.selection-ai-note{display:grid;gap:5px;padding:9px;border-left:3px solid var(--selection-blue);background:var(--selection-blue-soft)}.selection-ai-note strong,.selection-ai-note small{font-size:10px}.selection-ai-note small{color:#36506f}.selection-history-list,.selection-candidate-list{display:grid;gap:10px}.selection-history-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:13px;border:1px solid #dbe3ee;border-radius:10px;background:#fff}.selection-history-card p{margin:4px 0 0}.selection-candidate-card{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(300px,1.5fr) minmax(260px,1.1fr) auto;gap:12px;align-items:start;padding:13px;border:1px solid #dbe3ee;border-radius:10px;background:#fff}.selection-candidate-title{display:grid;gap:4px}.selection-candidate-title span{color:#64748b;font-size:10px}.selection-candidate-card .selection-detail-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.selection-candidate-fields{display:grid;gap:7px}.selection-candidate-fields input,.selection-candidate-fields textarea{min-height:36px;padding:7px 9px;font-size:11px}.selection-candidate-actions{align-content:start}.selection-candidate-actions button{width:100%}
@media(max-width:1200px){.selection-form{grid-template-columns:repeat(4,minmax(0,1fr))}.selection-form label:nth-child(2),.selection-form label:nth-child(3){grid-column:span 3}.selection-task-meta{grid-template-columns:repeat(3,minmax(0,1fr))}.selection-report-chapters{grid-template-columns:repeat(2,minmax(0,1fr))}.selection-candidate-card{grid-template-columns:minmax(180px,.8fr) minmax(300px,1.4fr) minmax(240px,1fr)}.selection-candidate-actions{grid-column:1/-1}.selection-candidate-actions button{width:auto}}
@media(max-width:800px){.selection-session-body{grid-template-columns:1fr 1fr}.selection-session-body>p{grid-column:1/-1}.selection-form{grid-template-columns:repeat(2,minmax(0,1fr))}.selection-form label:nth-child(2),.selection-form label:nth-child(3){grid-column:1/-1}.selection-result-layout{grid-template-columns:1fr}.selection-detail{position:static;max-height:none}.selection-candidate-card{grid-template-columns:1fr}.selection-candidate-card .selection-detail-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.selection-page{gap:10px}.selection-page>.section-heading{display:none}.selection-tabs{overflow-x:auto}.selection-tabs button{flex:0 0 auto;padding:7px 10px}.selection-session-body,.selection-form{grid-template-columns:1fr}.selection-session-body>p,.selection-form label:nth-child(2),.selection-form label:nth-child(3){grid-column:1}.selection-session-body>div{display:grid}.selection-task-meta{grid-template-columns:1fr 1fr}.selection-table-wrap{max-height:none;overflow:visible;border:0}.selection-table{display:block;min-width:0}.selection-table thead{display:none}.selection-table tbody{display:grid;gap:8px}.selection-table tbody tr{display:grid;grid-template-columns:1fr 1fr;padding:10px 12px;border:1px solid #dbe3ee;border-radius:10px;background:#fff}.selection-table td{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;max-width:none;padding:5px 0;border:0;text-align:left}.selection-table td::before{color:#64748b;font-size:9px;font-weight:700;content:attr(data-label)}.selection-table td:nth-child(2){grid-column:1/-1;padding-bottom:8px;border-bottom:1px solid #edf1f5}.selection-detail-facts,.selection-candidate-card .selection-detail-facts{grid-template-columns:1fr 1fr}.selection-report-coverage{grid-template-columns:1fr}.selection-report-chapters{grid-template-columns:1fr}.selection-history-card{grid-template-columns:1fr auto}.selection-history-card button{grid-column:1/-1}.selection-candidate-card{padding:11px}.selection-candidate-actions{display:grid}.selection-candidate-actions button{width:100%}}

.selection-submit{display:grid;gap:5px;align-content:end}.selection-submit small{max-width:220px;color:#64748b;font-size:9px;line-height:1.35}.selection-result-tabs{display:flex;gap:5px;width:max-content;padding:4px;border:1px solid #dbe3ee;border-radius:10px;background:#f8fafc}.selection-result-tabs button{min-height:34px;border-color:transparent;background:transparent;color:#526277}.selection-result-tabs button.active,.selection-result-tabs button.active:hover:not(:disabled){border-color:#bfdbfe;background:#fff;color:#1d4ed8;box-shadow:0 1px 3px #0f172a14}.selection-source-note{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px 16px;align-items:center;padding:10px 12px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff}.selection-source-note.offline{border-color:#fdba74;background:#fff7ed}.selection-source-note strong{font-size:12px}.selection-source-note span,.selection-source-note small{color:#526277;font-size:10px}.selection-product-cell{display:grid;grid-template-columns:42px minmax(140px,1fr);gap:9px;align-items:center}.selection-product-cell>div:last-child{display:grid;gap:3px}.selection-product-cell strong{font-size:11px;line-height:1.35}.selection-product-cell small{color:#64748b;font-size:9px}.selection-product-visual{position:relative;display:grid;place-items:center;overflow:hidden;border:1px solid #dbe3ee;border-radius:8px;background:linear-gradient(145deg,#f8fafc,#e2e8f0);color:#94a3b8}.selection-product-visual img{z-index:1;width:100%;height:100%;object-fit:cover}.selection-product-visual span{position:absolute;font-size:9px}.selection-product-visual-thumb{width:42px;height:56px}.selection-product-visual-large{width:88px;height:116px;flex:0 0 auto}.selection-detail-heading{grid-template-columns:auto minmax(0,1fr);align-items:start}.selection-detail{align-self:start}.selection-table td:nth-child(2){min-width:235px}.selection-report-chapters{align-items:start}
@media(max-width:800px){.selection-submit{grid-column:1/-1}.selection-submit small{max-width:none}.selection-source-note{grid-template-columns:1fr}.selection-detail-heading{grid-template-columns:auto minmax(0,1fr)}}
@media(max-width:480px){.selection-result-tabs{width:100%}.selection-result-tabs button{flex:1}.selection-product-cell{grid-template-columns:52px minmax(0,1fr)}.selection-product-visual-thumb{width:52px;height:68px}.selection-detail-heading{grid-template-columns:1fr}.selection-product-visual-large{width:100%;height:220px}}
.selection-ranking-note{margin:-2px 0 8px;font-size:10px;line-height:1.45}.selection-table th:first-child,.selection-table td:first-child{min-width:128px}
.selection-form #selection-category-field{grid-column:2/-1}.selection-category-picker{display:grid;grid-template-columns:auto minmax(190px,.8fr) minmax(240px,1.2fr) minmax(220px,1fr);gap:7px;align-items:center}.selection-category-picker button,.selection-category-picker input,.selection-category-picker select{min-height:38px;margin:0;padding:7px 9px;font-size:11px}.selection-category-picker button{white-space:nowrap}@media(max-width:800px){.selection-form #selection-category-field{grid-column:1/-1}.selection-category-picker{grid-template-columns:1fr 1fr}.selection-category-picker button,.selection-category-picker input{grid-column:1/-1}}@media(max-width:480px){.selection-category-picker{grid-template-columns:1fr}.selection-category-picker button,.selection-category-picker input{grid-column:1}}

@media(max-width:1280px){.erp-order-table:not(.erp-order-table-legacy){min-width:820px}}
@media(max-width:1150px){
  .erp-page .erp-toolbar{grid-template-columns:repeat(3,minmax(140px,1fr))}.erp-toolbar-actions{grid-column:1/-1;justify-content:flex-start}
  .erp-page .erp-shop-form{grid-template-columns:repeat(2,minmax(180px,1fr))}.erp-page .erp-shop-form button{justify-self:start}
}

/* Selection filters and report: compact evidence workspace, not a marketing surface. */
.selection-form{grid-template-columns:minmax(0,1fr);gap:10px;align-items:end}.selection-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.selection-field-group{display:grid;min-width:0;gap:6px;padding:10px;border:1px solid #dbe3ee;border-radius:8px;background:#fff}.selection-field-group>span{color:#36506f;font-size:11px;font-weight:800}.selection-entry-group{grid-column:1/-1}.selection-entry-controls{display:grid;grid-template-columns:150px minmax(0,1fr);gap:8px;align-items:end}.selection-entry-controls #selection-category-field{grid-column:2}.selection-range-pair{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;align-items:end}.selection-range-pair i{padding-bottom:11px;color:#94a3b8;font-style:normal}.selection-pair{display:grid;grid-template-columns:1fr 1fr;gap:7px}.selection-field-group label{min-width:0;color:#64748b;font-size:9px}.selection-field-group input,.selection-field-group select{min-height:36px;padding:7px 8px;font-size:11px}.selection-category-picker{grid-template-columns:auto minmax(150px,.75fr) minmax(170px,1fr) minmax(190px,1fr)}.selection-advanced{border-top:1px solid #dbe3ee;padding-top:7px}.selection-advanced>summary{width:max-content;color:#36506f;font-size:11px;font-weight:800;cursor:pointer}.selection-advanced[open]>summary{margin-bottom:8px}.selection-advanced .selection-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.selection-advanced .selection-filter-grid label{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:7px;padding:7px 9px;border:1px solid #e2e8f0;border-radius:7px;background:#fff}.selection-advanced>small{display:block;margin-top:7px}.selection-form>.selection-submit{justify-self:end;width:min(100%,360px);text-align:right}.selection-form>.selection-submit button{width:100%;min-height:40px}.selection-form>.selection-submit small{max-width:none}.selection-table{min-width:1760px}.selection-report-chapters{grid-template-columns:1fr}.selection-report-score-stage{display:grid;gap:10px;scroll-margin-top:12px}.selection-report-score-stage .selection-score-grid{margin:0}.selection-report-executive{display:grid;gap:10px;padding:14px;border-left:4px solid var(--selection-blue);border-radius:8px;background:#f8fbff}.selection-report-executive h3,.selection-report-executive p{margin:0}.selection-report-executive-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.selection-report-executive-item{padding:9px;border:1px solid #dbe3ee;border-radius:7px;background:#fff;font-size:11px}.selection-longtail-list,.selection-direction-list{display:grid;gap:7px}.selection-longtail-item,.selection-direction-item{display:grid;gap:4px;padding:9px;border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc;font-size:11px}.selection-legacy-note{margin:0;padding:9px 11px;border-left:3px solid #f59e0b;background:#fff8eb;color:#765019;font-size:11px}
@media(max-width:900px){.selection-filter-grid{grid-template-columns:1fr 1fr}.selection-entry-group{grid-column:1/-1}.selection-entry-controls{grid-template-columns:130px minmax(0,1fr)}.selection-form>.selection-submit{width:100%}.selection-table{min-width:1640px}.selection-report-executive-list{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.selection-filter-grid,.selection-advanced .selection-filter-grid{grid-template-columns:1fr}.selection-entry-controls{grid-template-columns:1fr}.selection-entry-controls #selection-category-field{grid-column:1}.selection-range-pair,.selection-pair{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.selection-pair label:first-child{grid-column:1}.selection-pair label:last-child{grid-column:3}.selection-report-executive-list{grid-template-columns:1fr}.selection-table{min-width:0}.selection-table td:nth-child(n+3):nth-child(-n+16){display:none}.selection-table td:nth-child(17){display:grid}.selection-table td:nth-child(17)::before{content:"候选"}}
.selection-result-layout{grid-template-columns:minmax(0,1fr)}.selection-detail:not([open]){display:none}.selection-detail[open]{position:fixed;inset:0 0 0 auto;z-index:30;display:block;width:min(520px,calc(100vw - 28px));height:100vh;max-height:none;margin:0;padding:0;border:0;border-left:1px solid #cbd5e1;border-radius:0;background:#fff;box-shadow:-18px 0 48px #0f172a2e;overflow:auto}.selection-detail::backdrop{background:#0f172a66}.selection-detail-shell{display:grid;gap:14px;min-height:100%;padding:16px;background:#fff}.selection-detail-toolbar{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-16px -16px 0;padding:12px 16px;border-bottom:1px solid #dbe3ee;background:#fff}.selection-executive-summary{display:grid;gap:9px;padding:14px;border-left:4px solid var(--selection-blue);border-radius:8px;background:#f8fbff}.selection-executive-summary h3,.selection-executive-summary p{margin:0}.selection-priority-list{display:grid;gap:6px}.selection-priority-list p{padding:8px 10px;border:1px solid #dbe3ee;border-radius:7px;background:#fff;font-size:11px}.selection-longtail-item>span,.selection-direction-item>span{color:#36506f;font-size:10px}.selection-longtail-item small,.selection-direction-item small{color:#64748b}
@media(max-width:600px){.selection-detail[open]{inset:0;width:100vw;height:100vh}.selection-detail-shell{padding:14px}.selection-detail-toolbar{margin:-14px -14px 0;padding:11px 14px}}
@media(max-width:850px){
  .erp-page>.section-heading{padding:18px}.erp-page .erp-content{padding:16px}.erp-bi-signal{grid-template-columns:1fr}.erp-bi-secondary{grid-template-columns:1fr 1fr;grid-template-rows:auto}.erp-bi-secondary .erp-bi-metric+.erp-bi-metric{border-top:0;border-left:1px solid var(--erp-line)}
  .erp-bi-actions{grid-template-columns:1fr 1fr}.erp-bi-actions h4{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--erp-line)}.erp-bi-action{border-left:0;border-bottom:1px solid var(--erp-line)}
  .erp-ledger-detail-meta{grid-template-columns:1fr 1fr}.erp-ledger-finance{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .erp-page .erp-toolbar{grid-template-columns:1fr 1fr}.erp-page .erp-toolbar .erp-check{padding:0}.erp-toolbar-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr)}.erp-toolbar-actions button{width:100%;padding:8px}
  .erp-page .erp-bi-bars,.erp-management-summary{grid-template-columns:1fr}.erp-page .erp-bi-bar+.erp-bi-bar,.erp-management-summary .erp-bi-metric+.erp-bi-metric{border-top:1px solid var(--erp-line)}
  .erp-page .erp-shop-form{grid-template-columns:1fr}.erp-page .erp-shop-form button{width:100%}.erp-panel-heading{align-items:flex-start;flex-direction:column}
  .erp-order-summary-heading{align-items:flex-start;flex-direction:column}.erp-order-summary-actions{width:100%;grid-auto-flow:row!important}.erp-ledger-search{width:100%;grid-template-columns:1fr auto}.erp-pagination{align-items:flex-start;flex-direction:column}.erp-pagination-controls{flex-wrap:wrap}.erp-ledger-detail{padding:16px}.erp-ledger-finance.erp-profit-summary{grid-template-columns:1fr}.erp-profit-breakdown{grid-template-columns:1fr 1fr}.erp-evidence-facts,.erp-evidence-catalog{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .erp-page{gap:8px}.erp-page>.section-heading{display:none}.erp-page .erp-tabs{padding:0 8px}.erp-page .erp-tabs button{min-height:42px;padding:0 11px}.erp-page .erp-toolbar{grid-template-columns:1fr 1fr;padding:10px 12px}.erp-page .erp-toolbar label{font-size:11px}.erp-toolbar-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.erp-page #erp-status{min-height:0;padding:6px 12px;font-size:11px}.erp-order-summary-heading{padding:10px 12px}.erp-order-counts{grid-template-columns:1fr 1fr}.erp-order-count{padding:8px 10px}.erp-order-count-value{font-size:14px}.erp-order-mode-switch{width:max-content}.erp-page .erp-content{gap:10px;padding:10px}.erp-bi-secondary,.erp-bi-actions{grid-template-columns:1fr}.erp-bi-secondary .erp-bi-metric+.erp-bi-metric{border-left:0;border-top:1px solid var(--erp-line)}.erp-bi-action{border-left:0}.erp-ledger-detail-meta{grid-template-columns:1fr}.erp-profit-breakdown,.erp-evidence-facts,.erp-evidence-catalog{grid-template-columns:1fr}.erp-profit-estimate{grid-template-columns:auto 1fr}.erp-profit-estimate small{grid-column:1/-1}.erp-ledger-detail-heading h2{font-size:19px}.erp-ledger-dialog{width:100%}.erp-ledger-detail-heading{position:sticky;top:0;z-index:3;margin:-16px -16px 0;padding:14px 16px;border-bottom:1px solid var(--erp-line);background:#fff}.erp-page .erp-order-table-wrap{max-height:none;overflow:visible;border:0}.erp-page .erp-order-table{display:block;min-width:0}.erp-order-table thead{display:none}.erp-order-table tbody{display:grid;gap:8px}.erp-order-table tbody tr{display:grid;grid-template-columns:1fr;gap:0;padding:10px 12px;border:1px solid var(--erp-line);border-radius:10px;background:#fff}.erp-page .erp-order-table td{display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:6px;padding:5px 0;border:0;font-size:12px;text-align:left!important}.erp-order-table td::before{color:var(--erp-muted);font-size:10px;font-weight:700;content:attr(data-label)}.erp-order-table td:nth-child(1){grid-column:auto;padding-bottom:8px;border-bottom:1px solid #edf1f5}.erp-order-table td:nth-child(1)::before{display:none}.erp-order-table:not(.erp-order-table-legacy) td:nth-child(3),.erp-order-table:not(.erp-order-table-legacy) td:nth-child(4),.erp-order-table:not(.erp-order-table-legacy) td:nth-child(6){display:grid!important}.erp-order-table-legacy td:nth-child(4),.erp-order-table-legacy td:nth-child(5),.erp-order-table-legacy td:nth-child(6),.erp-order-table-legacy td:nth-child(7),.erp-order-table-legacy td:nth-child(9){display:none!important}.erp-pagination{gap:8px;padding-top:4px}.erp-pagination-controls{gap:4px}.erp-pagination-controls button{min-width:32px;min-height:32px;padding:5px 8px}
}
.erp-sidebar-pages{display:grid;gap:3px;margin:0 8px 12px 20px;padding-left:15px;border-left:2px solid #dce4ee}
.erp-sidebar-pages[hidden]{display:none}.erp-sidebar-pages a{display:block;padding:10px 12px;color:#c4d2e4;text-decoration:none;border-radius:6px;font-size:13px}.erp-sidebar-pages a.active{background:#e6eef9;color:#285fa7;font-weight:700}.erp-sidebar-pages a:hover{background:#eef3f9;color:#285fa7}.erp-sidebar-pages summary{padding:10px 12px;color:#c4d2e4;cursor:pointer;font-size:12px}
.erp-page{--erp-ink:#19324d;--erp-muted:#60738b;--erp-line:#dce4ee;color:var(--erp-ink);background:#f2f5fa;box-shadow:none}
.erp-page>.section-heading h2{color:var(--erp-ink)}.erp-page>.section-heading .muted{color:var(--erp-muted)}
.erp-page .erp-content{display:grid;gap:20px;padding:24px;min-width:0}.erp-page>.section-heading{padding:24px 28px 0;background:transparent;border:0}.erp-page>.section-heading h2{font-size:26px}.erp-page .erp-toolbar{display:flex;flex-wrap:wrap;gap:14px;padding:16px 24px;background:#fff;border:0}.erp-page .erp-toolbar label{min-width:175px}.erp-page .erp-toolbar-actions{margin-left:auto;display:flex;gap:8px}.erp-page #erp-status{padding:0 24px;margin:0;font-size:12px}.erp-page .erp-business-scope{margin:0;color:#60738b;font-size:12px;line-height:1.8}
.erp-business-hero{display:grid;align-items:center;gap:30px;padding:28px;background:#fff;border-radius:10px}.erp-business-hero h3{margin:0;font-size:16px}.erp-page .erp-business-profit{display:block;border:0;border-radius:0;padding:8px 0;background:transparent;color:#19324d;font:600 clamp(26px,3vw,40px)/1.35 'Segoe UI','Microsoft YaHei UI',sans-serif;font-variant-numeric:tabular-nums;text-align:left;box-shadow:none}.erp-business-hero p{margin:6px 0;color:#52657b;font-size:13px;line-height:1.7}.erp-business-hero small{color:#60738b;line-height:1.7}
.erp-business-top-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.erp-business-top-card{padding:16px 18px;background:#f7faff;border:1px solid #dce4ee;border-radius:8px;display:grid;gap:7px;min-width:0}.erp-business-top-card>span{font-size:12px;color:#60738b}.erp-business-top-card>strong{font-size:22px;line-height:1.25;color:#19324d;font-variant-numeric:tabular-nums}.erp-business-top-card>small{font-size:11px;line-height:1.55;color:#60738b}.erp-business-top-card .erp-profit-by-currency{display:flex;flex-wrap:wrap;gap:8px}.erp-business-top-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.erp-business-top-order-item{display:grid;gap:2px;padding:7px 8px;border:1px solid #dce4ee;border-radius:6px;background:#fff}.erp-business-top-order-item>span,.erp-business-top-order-item>small{font-size:10px;color:#60738b}.erp-business-top-order-item>strong{font-size:16px;line-height:1.2;color:#19324d;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.erp-page .erp-business-metric{display:grid;gap:6px;align-content:start;padding:16px;background:transparent;border:0;border-radius:6px;color:#19324d;box-shadow:none;text-align:left;min-width:0}.erp-page .erp-business-metric:hover,.erp-page .erp-amount-row:hover{background:#f1f5fb}.erp-business-metric>span{font-size:13px;color:#52657b}.erp-business-metric>strong{font:600 26px/1.35 'Segoe UI','Microsoft YaHei UI',sans-serif;font-variant-numeric:tabular-nums;color:#285fa7}.erp-business-metric>small{font-size:12px;font-weight:400;color:#60738b;line-height:1.6}.erp-business-metric.compact{border-top:1px solid #dce4ee!important;margin-top:16px}.erp-business-metric.compact>strong{font-size:22px}
.erp-business-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr);gap:20px;align-items:start}.erp-business-panel{min-width:0;background:#fff;padding:24px;border-radius:10px}.erp-business-panel h3{margin:0 0 8px;font-size:17px}.erp-business-panel h4{font-size:13px;margin:20px 0 12px}.erp-business-panel>p{font-size:12px;line-height:1.8;margin:6px 0;color:#60738b}.erp-business-panel .erp-table{font-size:12px}.erp-business-panel .erp-table td:not(:first-child),.erp-business-panel .erp-table th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.erp-business-note{font-size:12px!important}.erp-page .erp-business-queues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.erp-business-drawer{min-width:0;border:0;border-radius:10px;background:#fff}.erp-business-drawer>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;cursor:pointer;list-style:none}.erp-business-drawer>summary::-webkit-details-marker{display:none}.erp-business-drawer>summary>span:first-child{display:grid;gap:5px}.erp-business-drawer>summary strong{color:#19324d;font-size:15px}.erp-business-drawer>summary small{color:#60738b;font-size:12px;font-weight:400;line-height:1.5}.erp-business-drawer-action{flex:0 0 auto;color:#285fa7;font-size:12px;font-weight:750}.erp-business-drawer-action:after{content:"展开"}.erp-business-drawer[open] .erp-business-drawer-action:after{content:"收起"}.erp-business-drawer[open]>summary{border-bottom:1px solid #dce4ee}.erp-business-drawer>.erp-business-panel{border-radius:0}.erp-business-drawer>.erp-business-panel+.erp-business-panel{border-top:1px solid #dce4ee}.erp-page .erp-order-finance-components{width:100%;min-width:0;table-layout:fixed}.erp-page .erp-order-finance-components th:first-child{width:56%}.erp-page .erp-order-finance-components th:nth-child(2){width:16%}.erp-page .erp-order-finance-components th:last-child{width:28%}.erp-page .erp-order-finance-components th:first-child,.erp-page .erp-order-finance-components td:first-child{white-space:normal;overflow-wrap:anywhere;text-align:left}.erp-page .erp-order-finance-components th:not(:first-child),.erp-page .erp-order-finance-components td:not(:first-child){white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.erp-page .erp-amount-row{display:grid;grid-template-columns:130px minmax(75px,1fr) 165px;gap:12px;align-items:center;width:100%;padding:14px 0;background:transparent;border:0;border-radius:4px;text-align:left;color:#19324d;box-shadow:none}.erp-amount-row>span:first-child{font-size:12px}.erp-amount-row strong{font-size:13px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.erp-amount-track{position:relative;display:block;height:23px;background:#f0f4f9}.erp-amount-track:before{content:"";position:absolute;left:50%;top:-4px;height:31px;border-left:1px solid #8799b0}.erp-amount-track i{position:absolute;top:0;height:23px;background:#285fa7}.erp-amount-track i.negative{background:#b13f42}.erp-negative{color:#b13f42!important}.erp-page .erp-business-totals{display:flex;flex-wrap:wrap;align-items:center;gap:12px 26px;padding:18px 20px;background:#e8eff8;border-radius:8px;font-variant-numeric:tabular-nums;font-size:13px}.erp-page .erp-business-totals strong{font-size:15px}.erp-business-type-details{padding:14px 20px;background:#fff;border-radius:8px}.erp-business-type-details>summary{cursor:pointer;color:#285fa7;font-size:13px}.erp-page .erp-order-summary{margin:0;border:0;box-shadow:none;background:#fff;border-radius:10px}.erp-page .erp-order-summary-heading{padding:18px 20px}.erp-page .erp-ledger-filters{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));border-top:0;align-items:end;background:#fff;padding:16px 20px}.erp-page .erp-ledger-active-filters{padding:8px 20px 16px}.erp-page .erp-order-table{min-width:1200px}.erp-page .erp-order-table td{vertical-align:top}.erp-page .erp-order-table th,.erp-page .erp-order-table td{padding:12px 10px}.erp-page .erp-table-wrap{max-width:100%;overflow:auto}.erp-page button:focus-visible,.erp-sidebar-pages a:focus-visible{outline:3px solid #82a7d9;outline-offset:3px}
.erp-page .erp-order-table:not(.erp-order-table-legacy) th:nth-child(5),.erp-page .erp-order-table:not(.erp-order-table-legacy) td:nth-child(5){min-width:250px;white-space:normal;text-align:left}.erp-page .erp-order-table:not(.erp-order-table-legacy) th:nth-child(6),.erp-page .erp-order-table:not(.erp-order-table-legacy) td:nth-child(6){min-width:110px;text-align:left}.erp-page .erp-order-table:not(.erp-order-table-legacy) th:nth-child(10),.erp-page .erp-order-table:not(.erp-order-table-legacy) td:nth-child(10){min-width:190px;text-align:left}
@media(max-width:1150px){.erp-business-grid{grid-template-columns:1fr}.erp-page .erp-toolbar-actions{margin-left:0}}
@media(max-width:600px){.erp-page>.section-heading{display:flex;padding:15px}.erp-page>.section-heading h2{font-size:22px}.erp-page .erp-content{padding:12px;gap:14px}.erp-page .erp-toolbar{padding:12px;gap:10px}.erp-page .erp-toolbar label{min-width:0;flex:1 1 135px}.erp-page .erp-toolbar-actions{width:100%;flex-wrap:wrap}.erp-business-hero,.erp-business-panel{padding:18px}.erp-business-drawer>summary{align-items:flex-start;padding:16px 18px}.erp-business-top-grid{grid-template-columns:1fr 1fr}.erp-page .erp-business-metric{padding:12px 0}.erp-page .erp-business-queues{grid-template-columns:1fr}.erp-page .erp-amount-row{grid-template-columns:105px minmax(35px,1fr) 124px;gap:6px}.erp-amount-row strong{font-size:11px}.erp-page .erp-order-table:not(.erp-order-table-legacy){min-width:0}.erp-page .erp-business-totals{gap:10px;font-size:12px}}
.erp-return-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;margin-top:10px;overflow:hidden;border:1px solid #d6e0ec;border-radius:8px;background:#d6e0ec}.erp-return-metric{display:grid;gap:5px;align-content:start;min-height:92px;padding:13px;background:#fff}.erp-return-metric>span{color:#60738b;font-size:11px;font-weight:800}.erp-return-metric>strong{color:#285fa7;font-size:23px;font-variant-numeric:tabular-nums}.erp-return-metric>small{color:#60738b;font-size:11px;line-height:1.4}.erp-return-metric.finance{background:#fffaf2}.erp-return-metric.finance>strong{color:#b45309}.erp-return-metric.logistics{background:#f4f8ff}.erp-return-definitions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.erp-return-definitions>div{padding:10px 12px;border-left:3px solid #8fb0dc;border-radius:6px;background:#f7faff;color:#52657b;font-size:11px;line-height:1.55}.erp-return-tracking-table{min-width:1120px!important}.erp-return-tracking-table th:nth-child(1){width:12%}.erp-return-tracking-table th:nth-child(2){width:12%}.erp-return-tracking-table th:nth-child(3){width:10%}.erp-return-tracking-table th:nth-child(4){width:12%}.erp-return-tracking-table th:nth-child(5){width:10%}.erp-return-tracking-table th:nth-child(6){width:16%}.erp-return-tracking-table th:nth-child(7){width:5%}.erp-return-tracking-table th:nth-child(8){width:10%}.erp-return-tracking-table th:nth-child(9){width:12%}.erp-return-tracking-table th:nth-child(10){width:9%}.erp-return-tracking-table th:nth-child(11){width:12%}
@media(max-width:900px){.erp-return-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.erp-return-definitions{grid-template-columns:1fr}}
@media(max-width:600px){.erp-return-metrics{grid-template-columns:1fr 1fr}.erp-return-metric{min-height:82px;padding:10px}.erp-return-metric>strong{font-size:19px}.erp-return-tracking-table{min-width:0!important}}
.erp-page .erp-pagination{justify-content:flex-start;flex-wrap:wrap;gap:12px}.erp-page .erp-pagination-controls{flex-wrap:wrap}.erp-page-jump{display:flex;align-items:center;gap:6px;margin:0}.erp-page .erp-page-jump input{width:72px;min-height:34px;padding:6px 8px}.erp-page .erp-page-jump button{min-height:34px;padding:6px 10px}.erp-page-jump-error{font-size:12px;color:#b13f42}.erp-pagination-gap{padding:0 3px;color:#60738b}
.erp-page .erp-order-table{width:100%;min-width:0;table-layout:fixed}.erp-page .erp-order-table th,.erp-page .erp-order-table td{padding:9px 8px;overflow-wrap:anywhere;vertical-align:middle}.erp-page .erp-order-table th:nth-child(1){width:13%}.erp-page .erp-order-table th:nth-child(2){width:14%}.erp-page .erp-order-table th:nth-child(3){width:10%}.erp-page .erp-order-table th:nth-child(4){width:20%}.erp-page .erp-order-table th:nth-child(5){width:10%}.erp-page .erp-order-table th:nth-child(6){width:12%}.erp-page .erp-order-table th:nth-child(7){width:11%}.erp-page .erp-order-table th:nth-child(8){width:10%}.erp-page .erp-order-table:not(.erp-order-table-legacy) th:nth-child(5),.erp-page .erp-order-table:not(.erp-order-table-legacy) td:nth-child(5),.erp-page .erp-order-table:not(.erp-order-table-legacy) th:nth-child(6),.erp-page .erp-order-table:not(.erp-order-table-legacy) td:nth-child(6){min-width:0;text-align:left}.erp-order-number-cell{display:grid;gap:2px}.erp-order-number-cell small{color:var(--erp-muted);font-size:10px}.erp-order-profit-cell{gap:2px}.erp-order-profit-cell.loss strong{color:#b3261e}.erp-order-profit-cell.zero strong{color:#5f6368}.erp-order-profit-cell.unknown strong{color:#8a5300}.erp-detail-loading{margin:auto;color:var(--erp-muted);font-size:14px}.erp-ledger-timeline-section>summary{padding:13px 15px;color:#36506f;font-size:12px;font-weight:800;cursor:pointer}.erp-ledger-timeline-section[open]>summary{border-bottom:1px solid var(--erp-line)}

/* Manager view: exact numbers, aligned columns, no decorative bar scale. */
.erp-page .erp-amount-table-wrap,.erp-page .erp-business-status-table-wrap,.erp-page .erp-shop-performance-wrap{max-width:100%;overflow:auto;border:1px solid var(--erp-line);border-radius:8px}
.erp-page .erp-amount-table,.erp-page .erp-business-status-table,.erp-page .erp-shop-performance{width:100%;min-width:0;table-layout:fixed}
.erp-page .erp-amount-table th,.erp-page .erp-amount-table td{padding:9px 12px}.erp-page .erp-amount-table th:first-child,.erp-page .erp-amount-table td:first-child{text-align:left}.erp-page .erp-amount-table th:last-child,.erp-page .erp-amount-table td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.erp-page .erp-amount-table td:last-child strong{font-size:13px}
.erp-page .erp-business-status-table{min-width:620px}.erp-page .erp-business-status-table th:first-child,.erp-page .erp-business-status-table td:first-child{text-align:left}.erp-page .erp-business-status-table th:nth-child(n+2),.erp-page .erp-business-status-table td:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums}.erp-page .erp-business-status-table th:first-child{width:46%}
.erp-page .erp-shop-performance{min-width:720px}.erp-page .erp-shop-performance th:first-child{width:23%}.erp-page .erp-shop-performance th:nth-child(2){width:10%}.erp-page .erp-shop-performance th:nth-child(3),.erp-page .erp-shop-performance th:nth-child(4){width:17%}.erp-page .erp-shop-performance th:nth-child(5){width:10%}.erp-page .erp-shop-performance th:last-child{width:23%}.erp-page .erp-shop-performance th:first-child,.erp-page .erp-shop-performance td:first-child{text-align:left}.erp-page .erp-shop-performance th:nth-child(n+2),.erp-page .erp-shop-performance td:nth-child(n+2){text-align:right;vertical-align:middle;font-variant-numeric:tabular-nums}.erp-page .erp-shop-performance .erp-profit-by-currency{justify-items:end}.erp-shop-result-cell{display:grid;justify-items:end;gap:4px}
.erp-page .erp-shop-performance-basis{margin:-4px 0 10px;color:#52657a;font-size:12px}.erp-page .erp-shop-performance-basis summary{width:max-content;cursor:pointer;color:#0b5bd3;font-weight:700}.erp-page .erp-shop-performance-basis p{margin:6px 0 0;max-width:920px;line-height:1.55}
.erp-page .erp-order-table th:nth-child(1){width:12%}.erp-page .erp-order-table th:nth-child(2){width:13%}.erp-page .erp-order-table th:nth-child(3){width:9%}.erp-page .erp-order-table th:nth-child(4){width:18%}.erp-page .erp-order-table th:nth-child(5){width:8%}.erp-page .erp-order-table th:nth-child(6){width:11%}.erp-page .erp-order-table th:nth-child(7){width:13%}.erp-page .erp-order-table th:nth-child(8){width:9%}.erp-page .erp-order-table th:nth-child(9){width:7%}
.erp-page .erp-order-table th:nth-child(6),.erp-page .erp-order-table td:nth-child(6),.erp-page .erp-order-table th:nth-child(7),.erp-page .erp-order-table td:nth-child(7),.erp-page .erp-order-table th:nth-child(8),.erp-page .erp-order-table td:nth-child(8){text-align:right;font-variant-numeric:tabular-nums}.erp-page .erp-order-table th:nth-child(9),.erp-page .erp-order-table td:nth-child(9){text-align:center}.erp-order-profit-cell.current-expense strong{color:#285fa7}
@media(max-width:600px){.erp-page .erp-order-table th:nth-child(n){width:auto}.erp-page .erp-order-table td:nth-child(n){text-align:left!important}.erp-page .erp-business-status-table{min-width:620px}.erp-page .erp-shop-performance{min-width:680px}}
.erp-profit-breakdown.compact{display:block;padding:0;background:#fff}.erp-page .erp-settlement-table-wrap{overflow:visible;border:0;border-radius:0}.erp-page .erp-settlement-table{width:100%;min-width:0;table-layout:fixed}.erp-page .erp-settlement-table th,.erp-page .erp-settlement-table td{padding:9px 12px}.erp-page .erp-settlement-table th:first-child,.erp-page .erp-settlement-table td:first-child{text-align:left}.erp-page .erp-settlement-table th:last-child,.erp-page .erp-settlement-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}.erp-ledger-audit{margin-top:0}.erp-ledger-audit .erp-ledger-evidence-body{gap:10px}.erp-ledger-audit .erp-profit-caveat,.erp-ledger-audit .erp-ledger-conflict{grid-column:1/-1}.erp-ledger-audit .erp-ledger-lines{min-width:0}
.erp-page .erp-settlement-subrow{display:inline-block;padding-left:18px;color:var(--erp-muted);font-size:12px}.erp-page .erp-settlement-subrow:before{content:"↳";margin-right:6px;color:#8799b0}
.erp-logistics-fact{grid-column:1/-1}.erp-logistics-query-line,.erp-logistics-results-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.erp-logistics-query-line button,.erp-logistics-results-head button{min-height:34px;padding:6px 11px;font-size:12px}.erp-logistics-results:empty{display:none}.erp-logistics-results{display:grid;gap:10px;margin-top:10px;padding-top:12px;border-top:1px solid var(--erp-line)}.erp-logistics-results-head strong{font-size:14px}.erp-logistics-note,.erp-logistics-empty{margin:0;color:var(--erp-muted);font-size:12px;line-height:1.6}.erp-logistics-providers{display:grid;grid-template-columns:1fr;gap:10px}.erp-logistics-provider{min-width:0;overflow:hidden;border:1px solid var(--erp-line);border-radius:8px;background:#fff}.erp-logistics-provider>summary{padding:12px 14px;color:#36506f;font-size:13px;font-weight:800;cursor:pointer}.erp-logistics-provider[open]>summary{border-bottom:1px solid var(--erp-line)}.erp-logistics-provider-body{display:grid;gap:10px;padding:12px 14px}.erp-logistics-identifiers{display:grid;gap:5px}.erp-logistics-identifiers>span{color:var(--erp-blue);font-size:11px;font-weight:700}.erp-logistics-identifiers>div{display:flex;flex-wrap:wrap;gap:5px 16px}.erp-logistics-identifiers small{color:var(--erp-muted);font-size:11px}.erp-logistics-provider .erp-table-wrap{max-height:none;overflow:visible}.erp-logistics-provider .erp-table{width:100%;min-width:0;table-layout:fixed}.erp-logistics-provider .erp-table th,.erp-logistics-provider .erp-table td{padding:10px 12px;font-size:12px;line-height:1.55;vertical-align:top}.erp-logistics-provider .erp-table th:nth-child(1){width:180px}.erp-logistics-provider .erp-table th:nth-child(2){width:120px}.erp-logistics-description{display:grid;gap:3px;overflow-wrap:anywhere}.erp-logistics-description small{color:var(--erp-muted);font-size:10px}.erp-logistics-manual{width:max-content;color:var(--erp-blue);font-size:11px;font-weight:700}
.erp-page .erp-shop-profit-link{display:inline-flex;justify-content:flex-end;width:100%}.erp-page .erp-shop-profit-link .erp-profit-by-currency{justify-items:end}
.erp-shop-profit-dialog .erp-ledger-detail{gap:14px}.erp-shop-profit-dialog .erp-business-panel{padding:16px;border:1px solid var(--erp-line)}.erp-shop-profit-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.erp-business-priority{border-color:#b8cbea;box-shadow:0 8px 22px #1e4b7a12}.erp-business-priority>h3{display:flex;align-items:center;gap:8px}.erp-business-priority>h3:before{width:7px;height:7px;border-radius:50%;background:#0f8a5f;content:""}.erp-overview-actions,.erp-shop-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:12px;padding-top:10px;border-top:1px solid var(--erp-line)}.erp-overview-actions-label,.erp-shop-actions-label,.erp-quick-filter-label{color:var(--erp-muted);font-size:11px;font-weight:800}.erp-overview-actions button,.erp-shop-actions button,.erp-ledger-quick-filters button{min-height:32px;padding:6px 10px;border-color:#cbd8e8;background:#fff;color:#31577e;font-size:11px}.erp-overview-actions button:hover,.erp-shop-actions button:hover,.erp-ledger-quick-filters button:hover{border-color:#7aa3d6;background:#f4f8ff;color:#1d4ed8}.erp-shop-actions select{min-height:32px;padding:5px 8px;border:1px solid #cbd8e8;border-radius:7px;background:#fff;color:#31577e;font-size:11px}.erp-ledger-quick-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:8px 20px;border-top:1px solid var(--erp-line);background:#f8fbff}.erp-return-priority-note{margin:8px 0 0;padding:8px 10px;border-left:3px solid var(--erp-amber);border-radius:6px;background:#fff9ef;color:#765019;font-size:11px;line-height:1.45}.erp-detail-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:-6px}.erp-detail-tabs button{min-height:32px;padding:6px 10px;border-color:#cbd8e8;background:#fff;color:#31577e;font-size:11px}.erp-detail-tabs button:hover{border-color:#7aa3d6;background:#f4f8ff;color:#1d4ed8}.erp-profit-by-currency span[data-currency="CNY"]{box-shadow:inset 3px 0 #2563eb}.erp-profit-by-currency span[data-currency="RUB"]{box-shadow:inset 3px 0 #d97706}
@media(max-width:600px){.erp-logistics-query-line,.erp-logistics-results-head{align-items:flex-start;flex-direction:column}.erp-logistics-query-line button,.erp-logistics-results-head button{width:100%}.erp-logistics-provider .erp-table thead{display:none}.erp-logistics-provider .erp-table tbody{display:grid;gap:8px}.erp-logistics-provider .erp-table tr{display:grid;gap:4px;padding:10px;border:1px solid var(--erp-line);border-radius:7px}.erp-logistics-provider .erp-table td{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;padding:2px 0;border:0}.erp-logistics-provider .erp-table td:before{color:var(--erp-muted);font-size:10px;font-weight:700;content:attr(data-label)}}

.erp-assistant-launcher{position:fixed;right:22px;bottom:22px;z-index:60;min-width:110px;border-radius:999px;box-shadow:0 8px 24px #0f172a3d;font-weight:800}.erp-assistant-panel{position:fixed;right:22px;bottom:22px;z-index:61;display:flex;width:min(380px,calc(100vw - 32px));height:min(540px,calc(100vh - 44px));flex-direction:column;overflow:hidden;border:1px solid #cbd5e1;border-radius:14px;background:#fff;box-shadow:0 18px 50px #0f172a3d}.erp-assistant-panel[hidden]{display:none}.erp-assistant-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);background:#f8fafc}.erp-assistant-panel>header>div:first-child{display:grid;gap:2px}.erp-assistant-panel>header>div:last-child{display:flex;gap:6px}.erp-assistant-panel>header button{padding:5px 8px;font-size:11px}.erp-assistant-status{display:block;font-size:10px}.erp-assistant-body{display:flex;min-height:0;flex:1;flex-direction:column}.erp-assistant-panel.minimized{height:auto}.erp-assistant-panel.minimized .erp-assistant-body{display:none}.erp-assistant-messages{display:flex;min-height:0;flex:1;flex-direction:column;gap:10px;overflow:auto;padding:14px;background:#f4f7fb}.erp-assistant-empty{margin:auto;padding:18px;text-align:center}.erp-assistant-empty p{margin:6px 0 0;line-height:1.55}.erp-assistant-message{max-width:88%;padding:9px 11px;border:1px solid #dbe2ea;border-radius:11px;background:#fff;overflow-wrap:anywhere}.erp-assistant-message.user{align-self:flex-end;border-color:#bfdbfe;background:#eff6ff}.erp-assistant-message.assistant{align-self:flex-start}.erp-assistant-message.error{border-color:#fecaca;background:#fff1f2}.erp-assistant-message.pending{color:var(--muted)}.erp-assistant-message p{margin:4px 0;white-space:pre-wrap;font-size:13px;line-height:1.55}.erp-assistant-scope{display:block;color:#64748b;font-size:10px}.erp-assistant-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.erp-assistant-actions button{padding:6px 8px;font-size:11px}.erp-assistant-configure{padding:14px;border-top:1px solid var(--line);background:#fff}.erp-assistant-configure p{margin:0 0 8px;font-size:12px;line-height:1.5}.erp-assistant-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;padding:12px;border-top:1px solid var(--line);background:#fff}.erp-assistant-form label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.erp-assistant-form textarea{min-height:58px;max-height:140px;resize:vertical}.erp-assistant-form button{height:40px}.erp-assistant-settings{display:grid;gap:12px;margin-bottom:16px;padding:16px;border:1px solid #bfdbfe;border-radius:10px;background:#f8fbff}.erp-assistant-settings h3,.erp-assistant-settings p{margin:0}.erp-assistant-settings-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:10px}.erp-assistant-settings-actions{display:flex;flex-wrap:wrap;gap:8px}.erp-assistant-settings-feedback{min-height:18px}.erp-assistant-settings code{font-size:11px}
@media(max-width:600px){.erp-assistant-launcher{right:12px;bottom:12px}.erp-assistant-panel{right:8px;bottom:8px;width:calc(100vw - 16px);height:min(520px,calc(100vh - 16px))}.erp-assistant-settings-grid{grid-template-columns:1fr}}
.erp-assistant-panel.expanded:not(.minimized){width:min(760px,calc(100vw - 44px));height:min(720px,calc(100vh - 44px))}.erp-assistant-window-actions{display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:4px}.erp-assistant-message.assistant{width:100%;max-width:100%}.erp-assistant-message.user{max-width:84%}.erp-assistant-answer{min-width:0}.erp-assistant-answer h4{margin:10px 0 5px;color:#243b57;font-size:13px}.erp-assistant-answer p{margin:6px 0;white-space:pre-wrap;line-height:1.65}.erp-assistant-answer ul,.erp-assistant-answer ol{display:grid;gap:5px;margin:7px 0;padding-left:22px;font-size:13px;line-height:1.55}.erp-assistant-answer strong{font-weight:800}.erp-assistant-notice{margin:6px 0 9px!important;padding:7px 8px;border-left:3px solid #93c5fd;border-radius:4px;background:#eff6ff;color:#36506f;font-size:11px!important;line-height:1.5!important}.erp-assistant-table-wrap{max-width:100%;margin:8px 0;overflow-x:auto;border:1px solid var(--line);border-radius:7px}.erp-assistant-table-wrap table{width:100%;min-width:360px;border-collapse:collapse;font-size:11px}.erp-assistant-table-wrap th,.erp-assistant-table-wrap td{padding:7px 8px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.erp-assistant-table-wrap th{background:#f8fafc}.erp-assistant-table-wrap td.number{text-align:right;font-variant-numeric:tabular-nums}.erp-assistant-details{margin-top:8px;border-top:1px dashed #cbd5e1;padding-top:7px}.erp-assistant-details>summary{cursor:pointer;color:#1d4ed8;font-size:11px;font-weight:700}.erp-assistant-details-body{padding-top:4px}
.erp-assistant-table-wrap td.number{vertical-align:top}.erp-assistant-table-wrap td.profit{color:#047857}.erp-assistant-table-wrap td.loss{color:#b91c1c}.erp-assistant-table-wrap td.pending{color:#9a6700}.erp-assistant-cell-amount,.erp-assistant-cell-note{display:block}.erp-assistant-cell-note{margin-top:2px;color:#64748b;font-size:10px;white-space:normal}
@media(max-width:600px){.erp-assistant-panel.expanded:not(.minimized){width:calc(100vw - 16px);height:calc(100vh - 16px)}.erp-assistant-panel>header{align-items:flex-start;padding:10px}.erp-assistant-panel>header>div:first-child{flex:1}.erp-assistant-window-actions{display:grid!important;grid-template-columns:repeat(2,auto)}.erp-assistant-panel>header button{padding:4px 6px}.erp-assistant-messages{padding:10px}.erp-assistant-message.user{max-width:92%}}

/* Compact Ozon results, matching the existing product library. */
.ozon-product-row{border:1px solid #dbe2ea;border-radius:8px;margin:0 0 6px;padding:0;background:#fff}
.ozon-product-row>.ozon-product-summary{display:grid;grid-template-columns:56px minmax(160px,1fr) 105px 105px 110px 64px;gap:14px;align-items:center;padding:10px 12px;list-style:none;cursor:pointer;font-size:12px}
.ozon-product-summary::-webkit-details-marker{display:none}.ozon-product-summary:hover{background:#f8fafc}
.ozon-product-cover{position:relative;display:grid;place-items:center;width:56px;height:64px;background:#f1f5f9;border-radius:5px;overflow:hidden;color:#64748b;font-size:10px}
.ozon-product-cover img{position:absolute;width:100%;height:100%;object-fit:contain;background:white}
.ozon-product-info{display:grid;gap:4px}.ozon-product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.45;font-weight:600}
.ozon-product-sku{color:#475569;user-select:text}.ozon-product-spec{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:11px}
.ozon-product-price,.ozon-product-state{display:grid;gap:7px}.ozon-product-price small,.ozon-product-state small{color:#64748b;font-size:11px}.ozon-product-price strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ozon-product-badge{justify-self:start;padding:3px 7px;border-radius:4px;background:#f1f5f9;color:#475569;font-size:11px}
.ozon-product-badge.status-succeeded{background:#ecfdf5;color:#047857}.ozon-product-badge.status-partial,.ozon-product-badge.status-manual{background:#fff7ed;color:#9a3412}.ozon-product-badge.status-failed{background:#fef2f2;color:#b91c1c}.ozon-product-badge.status-skipped{background:#f1f5f9;color:#64748b}.ozon-product-badge.status-running{background:#eff6ff;color:#1d4ed8}
.ozon-media-overview{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.ozon-media-chip,.ozon-variant-chip,.ozon-variant-more{display:inline-flex;align-items:center;min-height:26px;padding:3px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11px}.ozon-product-video{display:block;width:min(440px,100%);max-height:280px;margin:8px 0 12px;border-radius:8px;background:#0f172a}.ozon-variant-list{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 12px}.ozon-variant-chip{background:#fff7ed;color:#9a3412;text-decoration:none}.ozon-variant-chip:hover{background:#ffedd5}.ozon-variant-more{background:#f8fafc;color:#64748b}
.ozon-summary>.ozon-actions{justify-content:flex-start;align-items:center;margin-top:10px}.ozon-summary>.ozon-actions>a{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border:1px solid #fdba74;border-radius:7px;background:#fff7ed;color:#c2410c;text-decoration:none}.ozon-product-row>.ozon-product-summary{grid-template-columns:56px minmax(180px,1fr) 100px 100px 150px 64px;gap:12px}
.ozon-product-expand{color:#ea580c;font-size:11px}.ozon-product-row[open]{padding:0 12px 12px}.ozon-product-row[open]>.ozon-product-row>.ozon-product-summary{margin:0 -12px 12px;border-bottom:1px solid #dbe2ea}.ozon-product-row[open] .ozon-product-expand{font-size:0}.ozon-product-row[open] .ozon-product-expand:after{content:'收起详情';font-size:11px}
@media(max-width:850px){.ozon-product-row>.ozon-product-summary{grid-template-columns:48px minmax(120px,1fr) 85px;gap:10px}.ozon-product-cover{width:48px;height:58px}.ozon-product-info{grid-column:2 / 4}.ozon-product-price{grid-row:2}.ozon-product-state{grid-row:3;grid-column:2}.ozon-product-expand{grid-row:3;grid-column:3}}

.ozon-batch-editor{margin:12px 0;background:#f8fafc;border:1px solid #dbe2ea;border-radius:8px;padding:10px 12px}
.ozon-batch-editor>summary{cursor:pointer;font-size:12px;font-weight:600;color:#334155}
.ozon-batch-editor>.ozon-batch-form{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px 12px;padding-top:10px;border:0;align-items:end}
.ozon-batch-form>label{margin:0;font-size:11px;gap:4px}.ozon-batch-form input{height:32px;padding:5px 8px;font-size:12px;border-radius:5px}.ozon-batch-form>button{height:32px;margin:0;padding:5px 12px;font-size:12px;justify-self:end;width:auto;min-width:120px}
@media(max-width:900px){.ozon-batch-editor>.ozon-batch-form{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.ozon-batch-editor>.ozon-batch-form{grid-template-columns:repeat(2,minmax(0,1fr))}}

.ozon-match-box{margin:12px 0;padding:12px;background:#f8fafc;border-radius:6px}.ozon-match-box>button{font-size:12px;padding:6px 10px}.ozon-match-table{width:100%;border-collapse:collapse;margin-top:8px}.ozon-match-table th,.ozon-match-table td{padding:7px;border-bottom:1px solid #dbe2ea;text-align:left;overflow-wrap:anywhere;font-size:12px}

.ozon-sku-editor .ozon-batch-form textarea{min-height:54px;height:54px;padding:5px 8px;font-size:12px;resize:vertical}
.ozon-collection-filter{display:grid;grid-template-columns:minmax(240px,1fr) 180px 110px auto auto;gap:10px;align-items:end;margin:14px 0 6px;padding:12px;border:1px solid #d9e2ec;border-left:4px solid var(--accent);border-radius:8px;background:#f8fafc}.ozon-collection-filter label{display:grid;gap:5px;margin:0;font-size:12px;font-weight:650;color:#334155}.ozon-collection-filter input,.ozon-collection-filter select{min-height:36px;background:#fff}.ozon-collection-filter button{min-height:36px}.ozon-collection-count{margin:8px 0 10px;color:#475569;font-size:12px}.ozon-collection-empty{padding:28px 16px;border:1px dashed #cbd5e1;border-radius:8px;text-align:center;color:#64748b;background:#fff}.ozon-collection-pager{display:flex;align-items:center;justify-content:center;gap:8px;padding:16px 0 2px}.ozon-collection-pager button{min-width:68px}.ozon-page-jump{display:flex;align-items:center;gap:6px;margin:0;color:#475569;font-size:12px}.ozon-page-jump input{width:58px;min-height:34px;text-align:center}.ozon-collection-filter :focus-visible,.ozon-collection-pager :focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 30%,transparent);outline-offset:2px}
@media(max-width:900px){.ozon-collection-filter{grid-template-columns:minmax(200px,1fr) 1fr 110px}.ozon-collection-filter button{width:100%}.ozon-collection-pager{flex-wrap:wrap}}
@media(max-width:600px){.ozon-collection-filter{grid-template-columns:1fr 1fr}.ozon-collection-search{grid-column:1/-1}.ozon-collection-pager button{min-width:0;padding-inline:9px}}

.sidebar-nav button.nav-item{background:transparent;border:0;text-align:left;font-weight:400;box-shadow:none}.sidebar-nav button.nav-item:hover:not(:disabled){background:#222c3a;color:#fff}

.ozon-publish-page{--publish-ink:#17243a;--publish-blue:#2f6fed;--publish-green:#0f8a5f;--publish-amber:#b86316;--publish-red:#c83a3a;--publish-paper:#f4f7fb;color:var(--publish-ink)}
.ozon-publish-shell{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}.ozon-publish-list{position:sticky;top:12px;display:grid;gap:8px}.ozon-publish-list button{display:grid;gap:4px;width:100%;padding:12px 14px;border:1px solid #d7dfeb;border-radius:8px;background:#fff;color:var(--publish-ink);text-align:left}.ozon-publish-list button.active{border-color:var(--publish-blue);box-shadow:inset 4px 0 0 var(--publish-blue)}.ozon-publish-list span{color:#66758b;font-size:11px}
.publish-workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:18px;align-items:start}.publish-main{min-width:0}.publish-hero{position:relative;padding:22px 24px;border-left:6px solid var(--publish-blue);background:var(--publish-paper)}.publish-hero h2{max-width:760px;margin:5px 0 8px;font-size:25px;line-height:1.2}.publish-hero p{max-width:760px;margin:0;line-height:1.55}.publish-hero>p:first-child{color:#66758b;font-size:12px;font-weight:700}.publish-hero-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.publish-hero.tone-danger{border-left-color:var(--publish-red);background:#fff4f4}.publish-hero.tone-done{border-left-color:var(--publish-green);background:#effaf5}.publish-hero.tone-active{border-left-color:var(--publish-blue);background:#eef4ff}.publish-hero.tone-ready{border-left-color:var(--publish-green)}
.publish-status-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-top:16px;border:1px solid #d7dfeb;background:#d7dfeb;gap:1px}.publish-status-strip>div{display:grid;gap:4px;padding:12px;background:#fff}.publish-status-strip span{color:#66758b;font-size:11px}.publish-status-strip strong{font-size:22px;font-variant-numeric:tabular-nums}.publish-status-strip .danger strong{color:var(--publish-red)}.publish-stage-line{display:flex;gap:18px;padding:10px 12px;border:1px solid #d7dfeb;border-top:0;color:#536278;font-size:12px}
.publish-auto-status{display:grid;gap:12px;margin-top:18px;padding:18px;border:1px solid #d7dfeb;border-radius:10px;background:#fff}.publish-auto-status-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.publish-auto-status-heading strong{font-size:20px}.publish-auto-status-summary{display:grid;gap:3px}.publish-auto-status-summary p{margin:0}.publish-readiness-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.publish-readiness-item{display:grid;gap:3px;padding:10px;background:#f4f7fb;border-radius:6px}.publish-readiness-item span{font-size:11px}.publish-readiness-item strong{font-size:18px}.publish-auto-status h4{margin:4px 0 0}.publish-wb-heading{border-top:1px solid #e3e8f0;padding-top:12px}.publish-advanced-tools{margin-top:4px;border-top:1px dashed #d7dfeb}.publish-advanced-tools>summary{padding:10px 0;color:#66758b;font-size:12px;cursor:pointer}
.publish-track{margin:18px 0 0;padding:0;list-style:none}.publish-track li{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;min-height:86px;padding:0 0 20px}.publish-track li:not(:last-child)::after{position:absolute;top:34px;bottom:0;left:17px;width:2px;background:#d7dfeb;content:""}.publish-step-number{position:relative;z-index:1;display:grid;width:36px;height:36px;place-items:center;border:2px solid #b9c5d6;border-radius:50%;background:#fff;color:#66758b;font-weight:800}.publish-track strong{display:block;padding-top:3px;font-size:16px}.publish-track p{margin:4px 0 9px}.publish-track .state-done .publish-step-number{border-color:var(--publish-green);background:var(--publish-green);color:#fff}.publish-track .state-current .publish-step-number{border-color:var(--publish-blue);color:var(--publish-blue)}.publish-track .state-danger .publish-step-number{border-color:var(--publish-red);background:var(--publish-red);color:#fff}.publish-primary{background:var(--publish-green);border-color:var(--publish-green)}
.publish-tools{margin-top:4px;border-top:1px solid #d7dfeb}.publish-tools>summary{padding:14px 2px;color:#3b4b63;font-weight:750;cursor:pointer}.publish-tools-body{display:grid;gap:14px;padding:4px 0 16px}.publish-tool-actions{display:flex;gap:8px;flex-wrap:wrap}.publish-match-summary{padding:12px 14px;border-left:4px solid var(--publish-blue);background:#f4f7fb}.publish-match-summary p{margin:5px 0 0;color:#536278;font-size:12px}.publish-match-issues{margin-top:8px}.publish-match-issues summary{cursor:pointer;font-size:12px;font-weight:700}.publish-match-issues ul{max-height:220px;overflow:auto;margin:8px 0 0;padding-left:20px;font-size:11px;line-height:1.6}.publish-settings{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:10px;padding:14px;background:var(--publish-paper)}.publish-settings label{display:grid;gap:5px;margin:0;font-size:11px;font-weight:700}.publish-settings button{align-self:end}
.ozon-loading{min-height:120px;display:grid;place-items:center}.ozon-failure-panel{margin:14px 0;padding:14px;border:1px solid #efb0b0;border-left:4px solid #c83a3a;background:#fff6f6}.ozon-failure-panel h3{margin:0 0 4px}.ozon-failure-row,.overview-priority-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #f0d2d2}.ozon-failure-row:first-of-type{border-top:0}.ozon-failure-row strong,.overview-priority-row strong{display:block}.ozon-failure-row span{flex:1}.overview-priority-section{margin-top:16px}.overview-priority-section h3{margin:0 0 8px}.overview-priority-row{border-color:#e1e7f0}.overview-attention-section{border-left:4px solid #c83a3a;padding-left:12px}.overview-published-section{border-left:4px solid #0f8a5f;padding-left:12px}.library-listing-status{min-width:112px}.library-listing-status small{display:block;margin-top:4px}.library-commerce-table .library-listing-status small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.library-commerce-table .library-listing-status>strong{display:block;white-space:nowrap}@media(max-width:899px){.library-commerce-table .library-listing-status small{-webkit-line-clamp:1}}@media(max-width:599px){.library-commerce-table .library-listing-status{display:flex;align-items:center;gap:6px}.library-commerce-table .library-listing-status small{margin-top:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-line-clamp:unset}.library-commerce-table .library-listing-status>strong{white-space:nowrap}}
.publish-issues{position:sticky;top:12px;max-height:calc(100vh - 110px);overflow:auto;border-left:1px solid #d7dfeb;padding-left:18px}.publish-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.publish-panel-heading h3{margin:0}.publish-count{display:grid;min-width:34px;height:26px;place-items:center;border-radius:99px;background:#fee2e2;color:var(--publish-red);font-size:12px;font-weight:800}.publish-issue{display:grid;gap:8px;padding:13px 0;border-top:1px solid #e3e8f0}.publish-issue:first-of-type{border-top:0}.publish-issue p{margin:0;overflow-wrap:anywhere}.publish-issue details{font-size:11px}.publish-issue details p{max-height:140px;overflow:auto;padding:8px;background:#f7f8fa;color:#536278}.publish-issue-actions{display:flex;gap:7px;flex-wrap:wrap}.publish-issue-actions button{min-height:34px;padding:6px 9px;font-size:11px}.publish-hold-note{padding:11px;border-left:4px solid var(--publish-amber);background:#fff7ed;color:#7a4516;font-size:12px;line-height:1.5}.publish-empty{padding:40px;border:1px dashed #b9c5d6;text-align:center}.ozon-publish-notice{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px;padding:14px 16px;border-left:4px solid #2f6fed;background:#f4f7fb}.ozon-publish-notice p{margin:4px 0 0}.ozon-open-publish{white-space:nowrap;background:#2f6fed;border-color:#2f6fed}
.publish-issues-shell{grid-column:1/-1;border-top:1px solid #d7dfeb;padding-top:12px}.publish-issues-shell>summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;padding:10px 0;color:#536278;font-weight:700}.publish-issues-shell>.publish-issues{position:static;max-height:420px;border-left:0;padding-left:0}.publish-recovery-substate{display:grid;gap:3px;margin:8px 0;padding:9px 11px;border-left:3px solid #c9d5e6;background:#f7f9fc}.publish-recovery-substate p{margin:0}
.publish-recovery-feedback{min-height:18px;margin:4px 0 0;overflow-wrap:anywhere;font-size:12px}.publish-recovery-guide{margin:10px 0 18px;border:1px solid #d7dfeb;background:#f7f9fc}.publish-recovery-guide summary{padding:10px 12px;font-size:12px;font-weight:750;cursor:pointer}.publish-recovery-guide ul{display:grid;gap:7px;margin:0;padding:2px 14px 13px 30px;color:#536278;font-size:11px;line-height:1.5}
.ozon-library-content{display:grid;gap:14px}.ozon-library-groups{display:grid;gap:10px}.ozon-library-filter{grid-template-columns:minmax(240px,1fr) 160px 160px 100px auto auto}.ozon-library-filter-field{display:grid;gap:5px;margin:0;color:#334155;font-size:12px;font-weight:650}.ozon-library-filter-field input,.ozon-library-filter-field select{width:100%}.ozon-library-group{border:1px solid #d7dfeb;border-radius:10px;background:#fff}.ozon-library-group>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;cursor:pointer;list-style:none}.ozon-library-group>summary::-webkit-details-marker{display:none}.ozon-library-group>summary strong{min-width:0;overflow:hidden;color:#19324d;text-overflow:ellipsis;white-space:nowrap}.ozon-library-group>summary span{white-space:nowrap}.ozon-library-cards{display:grid;gap:6px;padding:0 10px 10px}.ozon-library-product-row{margin:0}.ozon-library-product-row[open]{padding-bottom:10px}.ozon-library-product-body{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px;font-size:12px}.ozon-library-product-body p{margin:0;color:#64748b}.ozon-library-detail-link{color:#c2410c;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}.ozon-library-detail-link:hover{text-decoration:underline}
@media(max-width:900px){.ozon-library-filter{grid-template-columns:minmax(200px,1fr) 1fr 1fr}.ozon-library-filter-field:first-child{grid-column:1/-1}.ozon-library-product-body{align-items:flex-start;flex-direction:column}.ozon-library-detail-link{white-space:normal}}
@media(max-width:600px){.ozon-library-filter{grid-template-columns:1fr 1fr}.ozon-library-filter-field:first-child{grid-column:1/-1}.ozon-library-group>summary{align-items:flex-start;flex-direction:column;gap:4px}.ozon-library-group>summary span{white-space:normal}.ozon-library-cards{padding-inline:6px}}
@media(max-width:1100px){.publish-workspace-grid{grid-template-columns:1fr}.publish-issues{position:static;max-height:none;padding:0;border-left:0;border-top:1px solid #d7dfeb;padding-top:18px}}
@media(max-width:800px){.ozon-publish-shell{grid-template-columns:1fr}.ozon-publish-list{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.publish-status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.publish-stage-line{flex-wrap:wrap}.publish-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.publish-readiness-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.publish-auto-status-heading{align-items:flex-start;flex-direction:column}.publish-hero{padding:18px}.ozon-publish-notice{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.ozon-publish-list,.publish-settings{grid-template-columns:1fr}.publish-status-strip{grid-template-columns:1fr 1fr}.publish-tool-actions,.publish-issue-actions{display:grid}.publish-tool-actions button,.publish-issue-actions button{width:100%}}


.ozon-category-lookup{margin:12px 0;border:1px solid #dce4ef;border-radius:10px;background:#fff}
.ozon-category-lookup>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;cursor:pointer;font-weight:600;list-style:none}
.ozon-category-lookup>summary::-webkit-details-marker{display:none}
.ozon-category-lookup>*:not(summary){margin:0 18px 14px}
.ozon-task-video{display:flex;align-items:center;gap:5px;margin:0;font-size:11px;line-height:17px}.ozon-task-video input[type=checkbox]{width:auto;height:auto;min-height:0;margin:0}
.ozon-category-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.ozon-category-search label{margin:0}
.ozon-category-results{display:grid;gap:8px;max-height:340px;overflow:auto}
.ozon-category-result{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid #e2e8f0;border-radius:8px;background:#fcfdff}
.ozon-category-result strong{overflow-wrap:anywhere;font-size:13px}
.ozon-category-result .muted{grid-column:1;font-size:12px}
.ozon-category-result button{grid-row:1/3;grid-column:2;font-size:12px;padding:7px 10px}
@media(max-width:599px){.ozon-category-search{grid-template-columns:1fr}.ozon-category-search button{width:100%}.ozon-category-result{grid-template-columns:1fr}.ozon-category-result button{grid-row:auto;grid-column:1}}


.publish-price-settings{display:grid;gap:8px;margin:10px 0;padding:12px;border:1px solid #dce4ef;border-radius:10px;background:#f8fafc}
.store-price-card{display:grid;gap:8px;margin:10px 0;padding:12px;border:1px solid #dce4ef;border-radius:10px;background:#f8fafc}
.store-price-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:10px;align-items:end}
.store-price-form label{margin:0}
@media(max-width:599px){.store-price-form{grid-template-columns:1fr}.store-price-form button{width:100%}}
.ozon-media-policy{display:grid;gap:8px;margin:10px 0;padding:10px 12px;border:1px solid #dce4ef;border-radius:10px;background:#f8fafc}
.ozon-media-policy legend{padding:0 6px;font-weight:600}
.ozon-media-policy label{display:flex;align-items:center;gap:6px;margin:0}
.ozon-media-policy input[type=number]{width:96px}
.ozon-media-policy p{margin:0}

/* P3-UI：采集页 session 流程与上架页异常资料处理的最小样式，沿用既有配色变量。 */
.ozon-media-policy summary{cursor:pointer;font-weight:700;color:#3b4b63}
.ozon-media-body{display:grid;gap:8px;padding:8px 0 0}
.ozon-media-body label{display:flex;align-items:center;gap:6px;margin:0}
.ozon-media-body input[type=number]{width:96px}
/* 全局 input{width:100%} 会把复选框撑成大方块；媒体策略只剩一个视频开关，必须按原生尺寸显示。 */
.ozon-media-policy input[type=checkbox],.ozon-media-body input[type=checkbox]{width:16px;height:16px;flex:0 0 auto;margin:0}
.ozon-media-body p{margin:0}
.ozon-price-readonly{display:grid;gap:4px;padding:12px 14px;border-left:4px solid var(--publish-blue);background:#f4f7fb}
.ozon-price-readonly p{margin:0;color:#536278;font-size:12px}
.ozon-readiness{display:flex;gap:14px;flex-wrap:wrap;padding:10px 0}
.ozon-readiness span{font-size:12px;font-weight:700}
.ozon-readiness .ok{color:#1a7f45}
.ozon-readiness .bad{color:#b23}
.publish-store-bar{display:grid;gap:6px;padding:12px 14px;margin-bottom:12px;border-left:4px solid var(--publish-blue);background:#f4f7fb}
.publish-store-bar select{max-width:320px}
.publish-store-bar p{margin:0;color:#536278;font-size:12px}
.publish-store-price{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:2px;padding-top:7px;border-top:1px solid #dce5f0;font-size:12px}
.publish-store-price-values{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#183b67}
.publish-store-price small{width:100%;color:#68778c}
.publish-store-price .warning{color:#a86200;font-weight:700}
.publish-abnormal{display:grid;gap:10px;padding:14px;background:var(--publish-paper)}
.publish-abnormal-row{display:grid;gap:6px;padding:10px 0;border-top:1px solid #d7dfeb}
.publish-abnormal-row:first-of-type{border-top:none}
.publish-abnormal-row>span:first-child{font-weight:700}
.publish-abnormal-form{display:flex;gap:8px;flex-wrap:wrap;align-items:end}
.publish-abnormal-form label{display:grid;gap:4px;margin:0;font-size:11px;font-weight:700}


.store-price-store-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:6px;margin:6px 0}
.store-price-store-option{display:flex;align-items:center;gap:6px;margin:0;font-size:13px}
.store-price-store-option input{margin:0}
.store-price-summary{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:10px;margin:12px 0}.store-price-summary-card{display:grid;gap:4px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.store-price-summary-card strong{font-size:24px}.store-price-summary-card.ok strong{color:#15803d}.store-price-summary-card.warn strong{color:#b45309}.store-price-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) 150px auto auto;gap:10px;align-items:center;margin:12px 0}.store-price-toolbar input,.store-price-toolbar select{min-height:40px}.store-price-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff}.store-price-table{width:100%;min-width:900px;border-collapse:collapse}.store-price-table th,.store-price-table td{padding:11px 10px;border-bottom:1px solid #edf1f5;text-align:left;vertical-align:middle;font-size:13px}.store-price-table th{background:#f8fafc;color:#64748b;font-size:12px;white-space:nowrap}.store-price-table tbody tr:hover{background:#fffaf5}.store-price-table tbody tr:last-child td{border-bottom:0}.store-price-check{width:42px;text-align:center!important}.store-price-check input{width:16px;height:16px}.store-price-store{font-weight:800;color:#334155}.store-price-number{font-variant-numeric:tabular-nums;white-space:nowrap}.store-price-time,.store-price-updated-by{color:#64748b;white-space:nowrap}.store-price-badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.store-price-badge.configured{background:#dcfce7;color:#15803d}.store-price-badge.unconfigured{background:#fef3c7;color:#a16207}.store-price-actions{white-space:nowrap}.secondary-button{border:1px solid #cbd5e1;background:#fff;color:#334155}.secondary-button:hover:not(:disabled){background:#f8fafc}.store-price-dialog{width:min(760px,calc(100% - 24px));max-height:calc(100vh - 24px);margin:auto;border:1px solid var(--line);border-radius:12px;padding:0;overflow:auto;background:#fff;box-shadow:0 20px 60px #0f172a33}.store-price-dialog::backdrop{background:#0f172a66}.store-price-dialog-card{display:grid;gap:14px;padding:20px}.store-price-dialog-heading{display:flex;justify-content:space-between;gap:14px}.store-price-dialog-heading h3,.store-price-dialog-heading p{margin:0}.store-price-dialog-close{width:34px;height:34px;padding:0;border:1px solid #cbd5e1;border-radius:50%;background:#fff;color:#334155;font-size:22px;line-height:1}.store-price-edit-form,.store-price-bulk-editor{display:grid;gap:12px}.store-price-formula{margin:0;padding:10px;border-radius:8px;background:#f8fafc;color:#475569;font-size:12px}.store-price-dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:10px;border-top:1px solid #edf1f5}.store-price-bulk-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.store-price-diff-wrap{max-height:300px;overflow:auto;border:1px solid var(--line);border-radius:8px}.store-price-diff-table{width:100%;border-collapse:collapse}.store-price-diff-table th,.store-price-diff-table td{padding:9px;border-bottom:1px solid #edf1f5;text-align:left;font-size:12px}.store-price-diff-table th{background:#f8fafc;color:#64748b;position:sticky;top:0}.store-price-diff-table tr:last-child td{border-bottom:0}
.erp-profit-by-currency span{padding:0;border:0;border-radius:0;outline:0;background:transparent!important;box-shadow:none!important}
.erp-return-workbench-queues{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:10px}
.erp-return-workbench-queue{display:grid;gap:4px;min-height:88px;padding:12px;border:1px solid var(--erp-line);border-top:3px solid #a9b8ca;border-radius:7px;background:#fff}
.erp-return-workbench-queue>span{color:var(--erp-muted);font-size:11px;font-weight:800}
.erp-return-workbench-queue>strong{font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums}
.erp-return-workbench-queue>small{color:var(--erp-muted);font-size:10px;line-height:1.35}
.erp-return-workbench-queue.warning{border-top-color:var(--erp-amber)}.erp-return-workbench-queue.info{border-top-color:var(--erp-blue)}.erp-return-workbench-queue.success{border-top-color:#137347}.erp-return-workbench-queue.danger{border-top-color:#b13f42}.erp-return-workbench-queue.muted{border-top-color:#8799b0}
.erp-return-workbench-queue.warning>strong{color:#9a5b00}.erp-return-workbench-queue.info>strong{color:var(--erp-blue)}.erp-return-workbench-queue.success>strong{color:#137347}.erp-return-workbench-queue.danger>strong{color:#b13f42}.erp-return-workbench-queue.muted>strong{color:#60738b}
.erp-return-workbench-table{min-width:1080px!important}.erp-return-workbench-table th:nth-child(1){width:15%}.erp-return-workbench-table th:nth-child(2){width:13%}.erp-return-workbench-table th:nth-child(3){width:9%}.erp-return-workbench-table th:nth-child(4){width:15%}.erp-return-workbench-table th:nth-child(5){width:10%}.erp-return-workbench-table th:nth-child(6){width:15%}.erp-return-workbench-table th:nth-child(7){width:6%}.erp-return-workbench-table th:nth-child(8){width:12%}.erp-return-workbench-table th:nth-child(9){width:10%}.erp-return-workbench-table th:nth-child(10){width:11%}.erp-return-workbench-table td:last-child button{min-height:30px;padding:5px 8px;border-color:#cbd8e8;background:#fff;color:#31577e;font-size:11px;white-space:nowrap}.erp-return-workbench-table td:last-child button:hover{border-color:#7aa3d6;background:#f4f8ff;color:#1d4ed8}
.erp-return-queue-badge{display:inline-flex;width:max-content;padding:3px 6px;border-radius:4px;background:#f1f5f9;color:#52657b;font-size:11px;font-weight:800;white-space:nowrap}.erp-return-queue-badge.followup,.erp-return-queue-badge.receiving{background:#fff2cc;color:#8a5300}.erp-return-queue-badge.transit{background:#e8f0ff;color:#285fa7}.erp-return-queue-badge.completed{background:#e6f4ea;color:#137347}.erp-return-queue-badge.exception{background:#fce8e6;color:#b3261e}
.erp-return-next-step{color:#36506f;font-size:11px;font-weight:800;line-height:1.35}.erp-return-workbench-cell{display:grid;gap:2px;min-width:0}.erp-return-workbench-cell strong{overflow-wrap:anywhere;font-size:11px}.erp-return-workbench-cell small{color:var(--erp-muted);font-size:10px}
.erp-return-queue-heading{margin:12px 0 2px;color:var(--erp-muted);font-size:11px;font-weight:800}.erp-return-case-cell{display:grid;gap:2px;min-width:92px}.erp-return-case-cell strong{color:#31577e;font-size:11px}.erp-return-case-cell small,.erp-return-case-empty{color:var(--erp-muted);font-size:10px}.erp-return-case-empty{white-space:nowrap}
.erp-p4-prototype{display:grid;gap:12px;margin:12px 0;padding:16px;border:1px solid #d8e1ed;border-radius:10px;background:#fbfcfe}.erp-p4-prototype-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.erp-p4-prototype-heading h3{margin:0;color:#19324d;font-size:16px}.erp-p4-prototype-heading p{margin:5px 0 0;font-size:11px}.erp-p4-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #dce4ee}.erp-page .erp-p4-tab{min-height:34px;padding:7px 12px;border:1px solid transparent;border-bottom:2px solid transparent;border-radius:5px 5px 0 0;background:#fff;color:#52657b;font-size:12px;font-weight:750}.erp-page .erp-p4-tab:hover:not(:disabled),.erp-page .erp-p4-tab.active{border-color:#c8d8eb;border-bottom-color:var(--erp-blue);background:#f1f6fc;color:#285fa7}.erp-p4-prototype-body[hidden],.erp-return-p3-content[hidden]{display:none}.erp-p4-prototype-note{margin:0;padding:9px 11px;border-left:3px solid var(--erp-amber);background:#fff9e8;color:#72520a;font-size:11px;line-height:1.5}.erp-p4-context-table{margin-top:10px}.erp-p4-context-table table{min-width:0}.erp-p4-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.erp-p4-field{display:grid;gap:5px;min-width:0;color:#36506f;font-size:11px;font-weight:750}.erp-p4-field>small{color:var(--erp-muted);font-size:10px;font-weight:400;line-height:1.4}.erp-p4-input{box-sizing:border-box;width:100%;min-height:34px;padding:6px 8px;border:1px solid #cbd8e8;border-radius:5px;background:#fff;color:#19324d;font:inherit;font-weight:500}.erp-p4-evidence-list{display:flex;flex-wrap:wrap;gap:7px}.erp-p4-evidence-item{display:inline-flex;align-items:center;gap:4px;padding:5px 7px;border:1px solid #d8e1ed;border-radius:5px;background:#fff;color:#52657b;font-size:10px;font-weight:500}.erp-p4-status-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0;color:#52657b;font-size:11px}.erp-p4-status-line small{flex-basis:100%;color:#b3261e;font-size:10px}.erp-p4-error{color:#b3261e!important}.erp-p4-timeline{display:grid;gap:6px;margin:8px 0 0;padding-left:24px;color:#52657b;font-size:10px;line-height:1.45}.erp-p4-qc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.erp-p4-qc-total{margin:4px 0 12px;color:#19324d;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
.erp-return-detail-dialog{width:min(760px,100vw);height:100%;margin:0 0 0 auto;border-left:1px solid var(--erp-line);border-radius:0;box-shadow:-14px 0 42px #0f172a33}.erp-return-detail-panel{min-height:100%;padding:22px;background:#f6f8fb}.erp-return-detail-focus{display:grid;gap:10px;padding:14px;border:1px solid #c8d8eb;border-left:4px solid var(--erp-blue);border-radius:8px;background:#f8fbff}.erp-return-detail-focus h3{margin:0;color:#19324d;font-size:15px}.erp-return-readonly-note{margin:0;color:#52657b;font-size:11px;line-height:1.5}.erp-return-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border:1px solid var(--erp-line);border-radius:7px;background:var(--erp-line);gap:1px}.erp-return-detail-value{display:grid;gap:2px}.erp-return-detail-value strong{font-size:12px;overflow-wrap:anywhere}.erp-return-detail-value small{color:var(--erp-muted);font-size:10px}
@media(max-width:900px){.erp-return-workbench-queues{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.erp-return-workbench-queues{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-return-workbench-queue{min-height:78px;padding:10px}.erp-return-workbench-queue>strong{font-size:20px}.erp-return-detail-panel{padding:16px}.erp-return-detail-grid{grid-template-columns:1fr}.erp-return-detail-dialog{width:100%}.erp-return-workbench-table{min-width:0!important}.erp-p4-prototype{padding:12px}.erp-p4-prototype-heading{display:grid}.erp-p4-form,.erp-p4-qc-grid{grid-template-columns:1fr}.erp-p4-tab{flex:1 1 30%;padding:7px 8px;font-size:11px}}
.publish-recovery-plan {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  background: #fffaf0;
}
.publish-recovery-value {
  width: 100%;
  margin: 4px 0 8px;
  padding: 7px 9px;
  border: 1px solid #d6b45c;
  border-radius: 6px;
  background: #fff;
}

.publish-preparation-progress{display:grid;gap:8px;margin-top:16px;padding:14px 16px;border:1px solid #cfe0fb;border-left:4px solid var(--publish-blue);border-radius:8px;background:#f7faff}
.publish-preparation-progress-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.publish-preparation-progress-heading strong{font-size:15px}
.publish-preparation-progress-bar{width:100%;height:10px;accent-color:var(--publish-blue)}
.publish-preparation-progress p{margin:0;font-size:12px;line-height:1.45}
@media(max-width:600px){.publish-preparation-progress{padding:12px}.publish-preparation-progress-heading{align-items:flex-start;flex-direction:column;gap:3px}}


.ozon-task-options{display:flex;align-items:center;gap:6px;min-width:0}.ozon-price-readonly{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ozon-task-video{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;font-size:10px}.ozon-task-row .ozon-task-video input{width:14px;height:14px;margin:0}

.ozon-task-file .ozon-task-options{height:16px;gap:4px;overflow:hidden}.ozon-task-file .ozon-task-video{padding:0;margin:0;min-height:0;height:16px;line-height:16px;flex:none}.ozon-task-file .ozon-task-open{min-height:30px;height:30px;padding:4px 7px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 多店采集与发布分列；只影响当前采集页。 */
:is(#ozon-multi-queue,#ozon-history-section) .ozon-execution-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;padding:14px;margin:12px 0;border:1px solid #d7dfeb;border-radius:8px;background:#f7f9fc}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-execution-metric{display:grid;gap:4px;min-width:0}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-execution-metric strong{font-size:22px;color:#193a59}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-execution-metric span{font-size:12px;color:#63758a}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-execution-card{padding:0;overflow:hidden}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-execution-card>summary{padding:14px 16px;background:#f7f9fc;font-weight:700;cursor:pointer}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-columns,:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-item-progress{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(360px,2.7fr) minmax(150px,1.1fr) 96px;gap:18px;padding:16px;align-items:start}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-columns{padding-top:10px;padding-bottom:10px;border-block:1px solid #e2e8f0;color:#63758a;font-size:12px;background:#fff}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-item-progress{border-bottom:1px solid #e2e8f0;background:#fff}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-item-progress>div{min-width:0}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-file,:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-publication{display:grid;gap:7px;overflow-wrap:anywhere}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-file strong{font-size:15px}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-file span{font-size:13px}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-file .status-chip{font-size:11px;line-height:1.4}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-collection-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-state{padding:3px 9px;border-radius:5px;background:#eaf2fd;color:#245a94;font-size:12px;font-weight:700}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-state.complete{background:#e8f5ec;color:#20763d}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-state.attention{background:#fff2d8;color:#8b5715}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-collection-heading small{font-size:11px}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-counts{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin:0}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-counts>div{display:flex;flex-direction:column;gap:4px}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-counts dt{font-size:11px;color:#63758a}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-counts dd{margin:0;font-size:17px;font-weight:700;color:#193a59}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-reason{margin:9px 0 0;font-size:12px;line-height:1.6;color:#946023;overflow-wrap:anywhere}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-publication strong{font-size:13px}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-publication p{margin:0}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-diagnostic{margin-top:7px;font-size:11px;color:#63758a}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-diagnostic>summary{padding:3px 0;cursor:pointer}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-diagnostic p{margin:7px 0 0;line-height:1.6;overflow-wrap:anywhere}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-publication .ozon-run-diagnostic p{max-height:240px;overflow-y:auto}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-item-actions{display:grid;gap:8px}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-item-actions button,:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-actions button{padding:7px 10px;min-height:34px;font-size:12px;white-space:nowrap}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-actions{display:flex;justify-content:flex-end;gap:8px;padding:10px 16px;background:#f7f9fc}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-history{margin-top:14px}
:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-history>summary{padding:10px 0;color:#63758a;cursor:pointer;font-size:13px}
@media(max-width:1100px){:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-columns{display:none}:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-item-progress{grid-template-columns:1fr auto;gap:12px}:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-collection{grid-column:1/-1;grid-row:2}:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-publication{grid-column:1;grid-row:3}:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-item-actions{grid-column:2;grid-row:3}:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-publication:before{content:'发布状态';font-size:11px;color:#63758a}}
@media(max-width:600px){:is(#ozon-multi-queue,#ozon-history-section) .ozon-execution-summary{grid-template-columns:repeat(3,minmax(0,1fr))}:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-counts{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:12px}:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-collection-heading{align-items:flex-start;flex-direction:column}:is(#ozon-multi-queue,#ozon-history-section) .ozon-run-item-progress{padding:12px}}

.ozon-history-section>summary{position:relative;cursor:pointer;padding:10px 0 10px 20px}.ozon-history-section>summary h3{font-size:16px}.ozon-history-section:not([open])>.ozon-history-heading{margin-bottom:0}
#ozon-history-section>summary::before{position:absolute;left:0;content:'▶';color:#63758a;font-size:12px}#ozon-history-section[open]>summary::before{content:'▼'}

/* Ozon business / FBS workspace follows the supplied compact table + drawer layout. */
.fbs-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fbs-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 14px 0 8px; }
.fbs-toolbar label { min-width: 150px; }
.fbs-toolbar label:last-of-type { flex: 1 1 240px; }
.fbs-toolbar input, .fbs-toolbar select { width: 100%; }
.fbs-summary { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.fbs-detail { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: min(680px, 92vw); overflow: auto; padding: 24px; background: var(--surface, #fff); border-left: 1px solid var(--line, #e2e8f0); box-shadow: -12px 0 32px rgb(15 23 42 / 14%); }
.fbs-detail[hidden] { display: none; }
.fbs-detail .section-heading { position: sticky; top: -24px; z-index: 1; padding: 2px 0 14px; background: var(--surface, #fff); }
.fbs-detail-grid { display: grid; gap: 16px; }
.fbs-detail-grid section { padding: 14px; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; background: var(--surface-muted, #f8fafc); }
.fbs-detail-grid form { display: grid; gap: 8px; }
.fbs-detail-grid form button { justify-self: start; }
.fbs-detail-grid ul { margin: 10px 0 0; padding-left: 18px; }
.commerce-table-wrap { overflow-x: auto; }
.commerce-table td small { display: block; margin-top: 3px; }
/* fbs-ui-v1: compact Ozon order workspace; scoped to the supplied template layout. */
.fbs-summary { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)); gap:8px; margin:12px 0; }
.fbs-summary-item { display:grid; gap:3px; padding:10px 12px; border:1px solid var(--line,#e2e8f0); border-radius:8px; background:var(--surface,#fff); }
.fbs-summary-item span,.fbs-summary-item small { color:var(--muted,#64748b); font-size:11px; }
.fbs-summary-item strong { color:var(--text,#1e293b); font-size:17px; font-variant-numeric:tabular-nums; }
.fbs-table { min-width:1180px; table-layout:auto; }
.fbs-table th:first-child,.fbs-table td:first-child { width:140px; min-width:130px; }
.fbs-table th:nth-child(2),.fbs-table td:nth-child(2) { width:26%; min-width:250px; }
.fbs-table td { overflow-wrap:anywhere; }
.fbs-table td:has(.fbs-price-grid) { min-width:220px; }
.fbs-table th { white-space:nowrap; }
.fbs-table td { vertical-align:top; }
.fbs-table td strong,.fbs-table td small { display:block; }
.fbs-table td small { margin-top:4px; }
.fbs-badge { display:inline-flex; align-items:center; width:max-content; padding:3px 7px; border-radius:999px; background:#eef2f7; color:#475569; font-size:11px; line-height:1.2; }
.fbs-badge.new,.fbs-badge.confirmed { background:#eaf2ff; color:#245a9b; }
.fbs-badge.complete { background:#e9f8ef; color:#167044; }
.fbs-badge.cancelled { background:#f1f3f5; color:#687386; }
.fbs-badge.unknown { background:#fff4d6; color:#8a5b00; }
.fbs-empty-state { display:grid; gap:7px; place-items:center; min-height:150px; padding:24px; border:1px dashed #cbd5e1; border-radius:8px; background:#fafcff; text-align:center; }
.fbs-empty-state strong { color:#334155; font-size:14px; }
.fbs-empty-state p,.fbs-empty-state small { margin:0; color:#64748b; font-size:12px; }
.fbs-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; padding-top:10px; border-top:1px solid var(--line,#e2e8f0); font-size:12px; }
.fbs-pager span:last-child { display:flex; gap:6px; }
.fbs-detail-tabs { display:flex; gap:4px; overflow:auto; margin:0 -2px 14px; border-bottom:1px solid var(--line,#e2e8f0); }
.fbs-detail-tab { flex:0 0 auto; padding:9px 11px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:#64748b; font-size:12px; }
.fbs-detail-tab.active { border-bottom-color:#2563eb; color:#1d4ed8; font-weight:700; }
.fbs-tab-panel { display:none; }
.fbs-tab-panel.active { display:block; }
.fbs-tab-panel h4 { margin:0 0 10px; color:#334155; font-size:14px; }
.fbs-tab-panel form { display:grid; gap:8px; }
.fbs-tab-panel form input,.fbs-tab-panel form select,.fbs-tab-panel form textarea { box-sizing:border-box; width:100%; min-height:34px; padding:7px 9px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#334155; font:inherit; font-size:12px; }
.fbs-tab-panel form button { justify-self:start; }
.fbs-facts { display:grid; grid-template-columns:120px minmax(0,1fr); gap:0; margin:0; border:1px solid #e2e8f0; border-radius:7px; overflow:hidden; }
.fbs-facts dt,.fbs-facts dd { margin:0; padding:8px 10px; border-bottom:1px solid #edf1f5; font-size:12px; }
.fbs-facts dt { background:#f8fafc; color:#64748b; }
.fbs-facts dd { color:#334155; overflow-wrap:anywhere; }
.fbs-detail-note { margin:12px 0 0; padding:9px 10px; border-left:3px solid #f0b429; background:#fff8e6; color:#765019; font-size:12px; line-height:1.5; }
.fbs-record-list { display:grid; gap:7px; margin:12px 0 0; padding-left:18px; color:#475569; font-size:12px; }
@media(max-width:800px){.fbs-summary{grid-template-columns:repeat(2,minmax(120px,1fr));}.fbs-detail{width:min(100vw,680px);padding:16px;}.fbs-detail .section-heading{top:-16px;}.fbs-facts{grid-template-columns:1fr;}.fbs-facts dt{border-bottom:0;padding-bottom:2px;}.fbs-facts dd{padding-top:2px;}}

/* FBS drawer: same section hierarchy, spacing and form mode as the supplied prototype. */
dialog.fbs-detail{position:fixed;inset:0 0 0 auto;margin:0;width:min(780px,calc(100vw - 24px));max-width:none;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid #e3e8f0;border-radius:0;background:#fff;color:#17243d;overflow:hidden;box-shadow:-12px 0 40px #14203926;font:14px/1.6 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
dialog.fbs-detail[open]{display:flex;flex-direction:column}dialog.fbs-detail[hidden]{display:none}
.fbs-detail::backdrop{background:#14203952}
.fbs-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 16px;flex-shrink:0}
.fbs-drawer-head h2{margin:0 0 6px;font-size:21px;letter-spacing:-.4px}.fbs-drawer-head p{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0;color:#64748b;font-size:12px}
.fbs-detail button{min-height:36px;padding:7px 12px;border:1px solid #dce2eb;border-radius:7px;background:#fff;color:#34415c;font-size:12px;font-weight:500;box-shadow:none}
.fbs-detail button:hover{background:#f4f5fc;border-color:#bbbfe7}.fbs-detail button:disabled{opacity:.5;cursor:not-allowed}
.fbs-detail button:focus-visible,.fbs-detail a:focus-visible,.fbs-detail input:focus-visible,.fbs-detail select:focus-visible,.fbs-detail textarea:focus-visible{outline:2px solid #565ce4;outline-offset:3px}
.fbs-detail button.fbs-close{font-size:25px;line-height:1;width:34px;min-height:34px;padding:0;border:0;background:transparent;color:#64748b}
#fbs-detail-content{display:flex;flex:1;flex-direction:column;min-height:0}
.fbs-detail .fbs-detail-tabs{flex-shrink:0;gap:24px;padding:0 24px;margin:0;border-bottom:1px solid #e3e8f0}
.fbs-detail .fbs-detail-tab{padding:12px 0;border:0;border-bottom:2px solid transparent;border-radius:0;white-space:nowrap;color:#64748b;font-size:13px;background:transparent}
.fbs-detail .fbs-detail-tab.active{border-bottom-color:#565ce4;color:#565ce4;font-weight:650}
.fbs-drawer-body{flex:1;min-height:0;overflow:auto;padding:22px 24px;background:#fafbfe;overscroll-behavior:contain}
.fbs-box{padding:17px;margin:0 0 16px;background:#fff;border:1px solid #e3e8f0;border-radius:10px}
.fbs-box-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.fbs-box h3{margin:0;font-size:14px;font-weight:650}
.fbs-kv{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px 14px;margin:0;font-size:12px}.fbs-kv dt{color:#64748b}.fbs-kv dd{margin:0;overflow-wrap:anywhere}
.fbs-product{display:flex;align-items:flex-start;gap:16px;min-width:0}.fbs-product img,.fbs-image-empty{width:82px;height:102px;object-fit:contain;flex-shrink:0;border:1px solid #e3e8f0;border-radius:7px;background:#fff}
.fbs-image-empty{display:grid;place-items:center;text-align:center;color:#94a3b8;font-size:11px}.fbs-product>div{min-width:0}.fbs-product strong{display:block;line-height:1.65;font-size:14px;font-weight:600;overflow-wrap:anywhere}.fbs-product p{margin:7px 0 3px;color:#64748b;font-size:12px}.fbs-product small{color:#64748b;font-size:11px}.fbs-product-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:10px}.fbs-product-links a{color:#565ce4;text-decoration:none;font-size:12px}.fbs-product-links a:hover{text-decoration:underline}
.fbs-product.compact{gap:10px;max-width:340px;min-width:235px}.fbs-product.compact img,.fbs-product.compact .fbs-image-empty{width:43px;height:52px}.fbs-product.compact strong{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.fbs-product.compact p{margin:4px 0;font-size:11px}
.fbs-three-values{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:5px 0 16px}.fbs-three-values small{display:block;font-size:12px;color:#64748b}.fbs-three-values b{display:block;margin-top:6px;font-size:22px;font-weight:650;font-variant-numeric:tabular-nums}
.fbs-hint{padding:11px 13px;margin:12px 0 0;background:#fff6e4;border:1px solid #f1e0ba;border-radius:7px;color:#956516;font-size:12px;line-height:1.7}.fbs-hint.soft{background:#eeefff;border-color:#dfe1fb;color:#535b8d}.fbs-drawer-body>.fbs-hint{margin:0 0 20px}
.fbs-empty-copy{margin:0;color:#64748b;font-size:12px}.fbs-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.fbs-compare>div{padding:13px;border-radius:8px;background:#f6f8fc;border:1px solid #e3e8f0}.fbs-compare>div>small{display:block;margin-bottom:12px;color:#64748b}.fbs-compare .fbs-kv{grid-template-columns:70px 1fr;gap:8px}
.fbs-mini-record{padding:13px 0;border-bottom:1px solid #edf0f5}.fbs-mini-record:last-child{border:0;padding-bottom:0}.fbs-mini-record>div{display:flex;align-items:center;justify-content:space-between}.fbs-mini-record p,.fbs-timeline p{margin:7px 0;color:#64748b;font-size:12px}.fbs-mini-record small,.fbs-timeline small{color:#64748b;font-size:11px;overflow-wrap:anywhere}
.fbs-timeline{margin:4px 0 0 5px;padding-left:19px;border-left:1px solid #dce1ee}.fbs-timeline article{position:relative;padding:0 0 19px}.fbs-timeline article:last-child{padding-bottom:0}.fbs-timeline article:before{content:"";position:absolute;left:-24px;top:7px;width:8px;height:8px;border:2px solid #fafbfe;border-radius:50%;background:#9096c8}.fbs-timeline strong{font-size:13px}
.fbs-detail button.fbs-text-button{border:0;padding:0;min-height:24px;color:#565ce4;background:transparent}
.fbs-drawer-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 24px;border-top:1px solid #e3e8f0;background:#fff;flex-shrink:0}.fbs-drawer-foot>span{max-width:235px;color:#64748b;font-size:11px}.fbs-drawer-foot>div{display:flex;gap:8px;flex-shrink:0}.fbs-detail button.fbs-primary{background:#565ce4;border-color:#565ce4;color:#fff}.fbs-detail button.fbs-primary:hover{background:#484ecb}
.fbs-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 16px}.fbs-field{display:flex;flex-direction:column;gap:7px;margin:0;color:#34415c;font-size:12px;font-weight:500}.fbs-field.wide{grid-column:1/-1}.fbs-field input,.fbs-field select,.fbs-field textarea{box-sizing:border-box;width:100%;min-height:38px;padding:8px 10px;border:1px solid #dce2eb;border-radius:7px;background:#fff;color:#17243d;font:inherit}.fbs-field input[readonly]{background:#f3f5f9;color:#64748b}.fbs-field textarea{resize:vertical}
.fbs-unsaved{padding:12px 24px;background:#fff6e4;color:#956516;font-size:12px}.fbs-unsaved button{margin-left:8px}.fbs-unsaved[hidden]{display:none}.fbs-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.fbs-detail summary{cursor:pointer;font-size:12px;color:#64748b}.fbs-detail details>.fbs-kv{margin-top:12px}
@media(max-width:800px){dialog.fbs-detail{width:100vw}.fbs-drawer-head{padding:18px 18px 14px}.fbs-detail .fbs-detail-tabs{padding:0 18px;gap:20px}.fbs-drawer-body{padding:18px}.fbs-drawer-foot{padding:12px 18px;flex-wrap:wrap}.fbs-drawer-foot>span{max-width:none}.fbs-compare,.fbs-form-grid{grid-template-columns:1fr}.fbs-kv{grid-template-columns:95px 1fr}.fbs-product img,.fbs-image-empty{width:68px;height:86px}.fbs-three-values b{font-size:19px}}

/* FBS order / purchase / logistics layout follows the approved Ozon interaction prototype. */
/* Shared top bar: breadcrumb + store context + account/logout. */
.topbar-crumb{display:none}
body[data-topbar=modern] .topbar{display:flex;align-items:center;gap:16px;min-height:60px;padding:0 28px}
body[data-topbar=modern] .topbar-crumb{display:flex;align-items:center;gap:10px;margin-right:auto;min-width:0;color:var(--muted);font-size:13px;white-space:nowrap}
body[data-topbar=modern] .topbar-crumb strong{color:var(--ink);font-weight:650}
body[data-topbar=modern] .topbar-title,body[data-topbar=modern] #store-runtime,body[data-topbar=modern] .topbar-next .status-dot,body[data-topbar=modern] #progress-summary,body[data-topbar=modern] #next-step{display:none}
body[data-topbar=modern] .topbar-context{display:flex;align-items:center;gap:10px;min-width:0;padding:0 14px;border:0;border-left:1px solid var(--line)}
body[data-topbar=modern] .topbar-next{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
@media(max-width:800px){body[data-topbar=modern] .topbar{gap:8px;padding:0 12px}body[data-topbar=modern] .topbar-crumb{gap:6px;font-size:12px}}
@media(max-width:600px){body[data-topbar=modern] .topbar-crumb>:not(strong),body[data-topbar=modern] .topbar-context,body[data-topbar=modern] #current-account{display:none}body[data-topbar=modern] .topbar-next{display:flex}body[data-topbar=modern] .topbar-crumb strong{overflow:hidden;text-overflow:ellipsis}}
body:has(#fbs-page:not([hidden])) .workspace{max-width:1640px;padding:23px 28px 32px}
#fbs-page.card{padding:0;margin:0;background:transparent;border:0;box-shadow:none}
.fbs-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;padding:10px 13px;border:1px solid var(--line);border-radius:8px;background:var(--panel-soft);color:var(--muted);font-size:12px;line-height:1.6}
.fbs-notice strong{color:var(--ink)}
.fbs-notice .status{font-weight:600;white-space:nowrap}
#fbs-page>.section-heading{margin-bottom:19px}
#fbs-page>.section-heading h2{font-size:24px;letter-spacing:-.5px}
#fbs-page>.section-heading .muted{font-size:13px;line-height:1.7}
.fbs-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 19px}
.fbs-summary-item{position:relative;display:grid;gap:3px;padding:15px 17px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.fbs-summary-item::after{content:"";position:absolute;right:16px;top:17px;width:23px;height:5px;border-radius:3px;background:#cbd5e1}
.fbs-summary-item span,.fbs-summary-item small{color:var(--muted);font-size:12px}
.fbs-summary-item strong{font-size:28px;letter-spacing:-.7px;font-variant-numeric:tabular-nums}
.fbs-panel{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.fbs-panel .selection-tabs{display:flex;gap:20px;margin:0;padding:0 17px;border-bottom:1px solid var(--line);overflow:auto}
.fbs-panel .selection-tabs button{padding:14px 0 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-weight:500}
.fbs-panel .selection-tabs button.active{border-bottom-color:var(--accent);background:transparent;color:var(--accent);font-weight:700}
.fbs-toolbar{display:grid;grid-template-columns:minmax(138px,180px) minmax(138px,180px) minmax(240px,1fr) auto;gap:10px;align-items:end;margin:0;padding:17px;border-bottom:1px solid var(--line)}
.fbs-toolbar label{min-width:0;margin:0;color:var(--muted);font-size:11px;font-weight:500}
.fbs-toolbar input,.fbs-toolbar select{width:100%;height:37px}
.fbs-panel>#fbs-status-text{margin:12px 17px 0}
.fbs-panel>#fbs-order-list{border:0;border-radius:0}
@media(max-width:900px){.fbs-summary{grid-template-columns:repeat(2,minmax(120px,1fr))}.fbs-toolbar{grid-template-columns:1fr 1fr}.fbs-toolbar label:nth-child(3){grid-column:1/-1}.fbs-toolbar button{grid-column:1/-1}.fbs-notice{align-items:flex-start;flex-direction:column}.fbs-notice .status{white-space:normal}}
@media(max-width:600px){body:has(#fbs-page:not([hidden])) .topbar{padding:0 16px}.fbs-topbar-account>span:last-child{display:none}.fbs-topbar-crumb{font-size:12px!important}.fbs-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.fbs-summary-item strong{font-size:24px}}


.fbs-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fbs-price-grid>div{padding:12px;background:#f8fafc;border:1px solid #e5eaf0;border-radius:8px}.fbs-price-grid small{display:block;color:#64748b;font-size:12px}.fbs-price-grid strong{display:block;margin-top:6px;font-size:19px;font-variant-numeric:tabular-nums}.fbs-price-grid .profit{grid-column:1/-1;background:#eef8f1;border-color:#cfe8d6}.fbs-price-grid .profit strong{color:#17683b}.fbs-price-grid.compact{display:block;min-width:192px}.fbs-price-grid.compact>div{display:flex;justify-content:space-between;gap:12px;background:none;border:0;padding:3px 0}.fbs-price-grid.compact strong{font-size:13px;margin:0;white-space:nowrap}.fbs-price-time{font-size:11px;line-height:1.7;color:#64748b}.fbs-table .fbs-product.compact{min-width:230px;max-width:340px}

/* UI polish 2026-10-14: shared chrome and store shortcuts. */
.fbs-summary-item::after{content:none}
.erp-assistant-launcher{min-width:0;padding:8px 14px;font-size:13px}
.workspace{padding-bottom:72px}
.overview-shortcuts{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
button.overview-shortcut{display:grid;gap:6px;justify-items:start;min-height:0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);text-align:left;box-shadow:none;cursor:pointer}
button.overview-shortcut:hover{border-color:#f97316;background:#fff7ed}
.overview-shortcut strong{font-size:16px}
.overview-shortcut span{font-size:13px;font-weight:400;line-height:1.5}
/* FBS: fit the table to the page and keep row actions in view. */
.fbs-table{min-width:0;table-layout:auto}
.fbs-table th:last-child,.fbs-table td:last-child{position:sticky;right:0;z-index:1;background:var(--panel,#fff);box-shadow:-8px 0 8px -8px #0f172a26}
.fbs-price-grid.compact .profit strong{color:#15803d}
.fbs-notice{flex-wrap:wrap;row-gap:4px}
#fbs-sync-status{white-space:normal;min-width:0}
#fbs-tabs{display:none}
.fbs-table td:last-child button{white-space:nowrap}
.store-price-summary-line.warn{margin:0 0 10px;color:#b45309}
.fbs-row-actions{display:grid;gap:6px;justify-items:stretch;min-width:max-content}
.fbs-buy-link{display:inline-block;padding:7px 10px;border:1px solid #f97316;border-radius:8px;color:#c2410c;font-size:12px;font-weight:600;text-align:center;text-decoration:none;white-space:nowrap}
.fbs-buy-link:hover{background:#fff7ed}
dialog.feishu-dialog{width:min(520px,calc(100vw - 32px));padding:20px 22px;border:1px solid #e3e8f0;border-radius:12px;color:#17243d;box-shadow:0 16px 48px #14203933}
dialog.feishu-dialog::backdrop{background:#0f172a4d}
dialog.feishu-dialog label{display:grid;gap:6px;margin:12px 0}
dialog.feishu-dialog input{width:100%;box-sizing:border-box}
.feishu-dialog-actions{display:flex;flex-wrap:wrap;gap:8px}
dialog.ozon-account-dialog{inset:0;margin:auto;height:fit-content;max-height:calc(100dvh - 32px);overflow:auto}
.ozon-account-form{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.tenant-store-requests h3{margin:0 0 6px;font-size:15px}
.store-request-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 0;border-top:1px solid #e6ebf2}
.tenant-store-list{display:grid;gap:4px}
.store-price-tiers{display:grid;gap:8px;margin:4px 0;padding:10px;border:1px solid #dce4ef;border-radius:10px}
.store-price-tiers legend{padding:0 4px;font-weight:600}
.store-price-tier-choice{display:flex;flex-wrap:wrap;gap:16px}.store-price-tier-choice label{margin:0;display:flex;align-items:center;gap:4px}
.store-price-tier-rows{display:grid;gap:6px;max-height:260px;overflow:auto}
.store-price-tier-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:6px;align-items:center}
.store-price-tier-tools{display:flex;gap:8px;margin-top:6px}
.tenant-store-list header{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.store-price-tier-choice input{width:auto;margin:0}.store-price-tier-choice label{white-space:nowrap;font-weight:500}
.store-owner-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin:4px 0 10px}
.store-owner-toolbar input{width:min(280px,100%)}
.store-owner-groups{display:grid;gap:8px}
.store-owner-group{border:1px solid #e6ebf2;border-radius:10px;background:#fff}
.store-owner-group>summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:10px 12px;cursor:pointer;list-style-position:inside}
.store-owner-group[open]>summary{border-bottom:1px solid #e6ebf2}
.store-owner-group .store-owner-names{flex:1 1 220px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.store-owner-group .store-table-wrap{padding:0 8px 8px}
.store-badge.warn{background:#fff1e6;color:#b45309}
.settings-ai-section>summary>span{margin-left:10px;font-weight:400;font-size:13px}
.store-admin-panel>p:empty{display:none}
.activity-controls{display:flex;gap:8px;align-items:center}
.activity-overview td small{margin-left:4px}
.activity-overview .store-badge{margin-left:6px}
.activity-low{color:#b45309;font-weight:600}
.activity-timeline{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.activity-timeline li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:8px 10px;border:1px solid #e6ebf2;border-radius:8px;background:#fff}
.activity-timeline time{font-size:13px;min-width:150px}
.activity-timeline code{font-size:12px;overflow-wrap:anywhere}
/* WB订单：下单至今小时数，放在每行最上方，按时长着色。 */
.fbs-age { display:inline-flex; align-items:center; width:max-content; margin-bottom:4px; padding:3px 10px; border-radius:999px; font-size:13px; font-weight:700; line-height:1.3; color:#fff; font-variant-numeric:tabular-nums; }
.fbs-age.fresh { background:#16a34a; }
.fbs-age.mid { background:#f59e0b; }
.fbs-age.old { background:#ea580c; }
.fbs-age.late { background:#dc2626; box-shadow:0 0 0 3px rgba(220,38,38,.18); }
/* FBS purchase form assists (Ozon order paste / page-price reference) */
.fbs-assist{flex-direction:row;align-items:center;justify-content:space-between;gap:10px;margin-top:-8px}.fbs-assist small{color:#64748b;font-weight:400;line-height:1.6}.fbs-assist button{flex:none;min-height:30px;padding:4px 10px;border:1px solid #c9cdf6;border-radius:6px;background:#eeefff;color:#4b52b8;font:inherit;cursor:pointer}.fbs-assist[hidden]{display:none}
.fbs-assist-note{color:#3f6b4f;font-weight:400;line-height:1.6}.fbs-assist-note:empty{display:none}.fbs-assist-note.bad{color:#b4372f}
.fbs-ozon-ready{display:block;color:#15803d;font-weight:600}
