#refundsPanel #opView[hidden],#opView [hidden]{display:none!important}
body.os-products-active :is(#wbStoreContext,#wbFreshness,#rfSources,#osChannelScope){display:none!important}
#opView{--op-taobao:#365f8e;--op-xhs:#b56e42;--op-line:#dce4ec;--op-muted:#697b8a;--op-ink:#263d53}
.os-tabs{flex-wrap:wrap}.op-subtitle,.op-rule{color:var(--op-muted);line-height:1.7}.op-filters{padding:22px!important}
.op-filter-primary{display:grid;grid-template-columns:minmax(210px,1.35fr) minmax(170px,.8fr) minmax(310px,1.6fr);gap:24px;align-items:start}
.op-filter-secondary{display:flex;flex-wrap:wrap;gap:16px;align-items:end;border-top:1px solid var(--op-line);margin-top:20px;padding-top:18px}
.op-filters label{display:grid;gap:8px;font-size:12px;font-weight:550;color:var(--op-ink);min-width:0}
.op-filters input:not([type=checkbox]),.op-filters select{width:100%;min-height:42px;margin:0}
.op-filter-secondary>label{flex:0 1 140px;min-width:115px}.op-filter-secondary>#opApply{margin-left:auto;min-height:42px;padding-inline:26px}
.op-date-range{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}.op-date-range input{min-width:0}
.op-channels{border:0;padding:0;margin:0;min-width:0}.op-channels legend{padding:0;margin-bottom:8px;font-size:12px;font-weight:550;color:var(--op-ink)}
.op-channels>div{display:flex;gap:8px;min-height:42px}.op-channels label{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--op-line);border-radius:7px;white-space:nowrap;cursor:pointer;background:#fff;font-weight:500}
.op-channels label:has(input:checked){background:#f2f6fa;border-color:#9db2c8}.op-channels input[type=checkbox]{width:15px;height:15px;min-height:0;margin:0;accent-color:var(--op-taobao)}.op-channels .op-xhs input{accent-color:var(--op-xhs)}
.op-channels .op-xhs:has(input:checked){background:#fbf5ef;border-color:#d7b69b}
.op-shortcuts{display:flex;gap:6px;flex-wrap:wrap}.op-shortcuts button{min-height:42px}
.op-catalog{margin-top:20px;padding:18px;border:1px solid #d7e2ed;border-radius:9px;background:#f7fafc}.op-catalog-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.op-catalog-header>div:first-child{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.op-catalog-header strong{font-size:13px;color:var(--op-ink)}#opSelectedCount{font-size:11px;color:var(--op-taobao);padding:4px 8px;background:#e9f0f7;border-radius:5px}.op-catalog-actions{display:flex;gap:8px;flex-wrap:wrap}.op-catalog-actions button{font-size:11px;min-height:36px}.op-catalog p{font-size:11px;color:var(--op-muted);line-height:1.8;margin:10px 0}.op-catalog .op-catalog-note{margin-bottom:0}.op-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:350px;overflow:auto;overscroll-behavior:contain;padding:2px}.op-filters label.op-candidate{display:flex;align-items:start;gap:10px;padding:13px;background:#fff;border:1px solid var(--op-line);border-radius:7px;cursor:pointer;font-weight:400}.op-candidate:has(input:checked){border-color:#6d91b7!important;background:#f0f6fc!important}.op-candidate input{width:17px;height:17px;flex:none;margin:3px 0 0!important;accent-color:var(--op-taobao)}.op-candidate-content{min-width:0;display:block}.op-candidate-content>strong{display:block;font-size:12px;font-weight:550;line-height:1.7;margin-top:6px;overflow-wrap:anywhere}.op-candidate-tags{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:10px;color:var(--op-muted)}.op-relation{padding:3px 6px;border-radius:4px;background:#eff3f6}.is-partial .op-relation{color:#9b642e;background:#fbf1e4}.op-candidate-items,.op-partial-note{display:block;font-size:10px;color:var(--op-muted);line-height:1.7;margin-top:7px;overflow-wrap:anywhere}.op-partial-note{color:#9b642e}.op-candidate:focus-within{outline:2px solid #7498b9;outline-offset:2px}
@media(max-width:680px){.op-catalog{padding:12px}.op-catalog-header{align-items:start;flex-direction:column;gap:10px}.op-candidates{grid-template-columns:1fr;max-height:430px}.op-catalog-actions{width:100%}.op-catalog-actions button{flex:1;min-height:40px}}
#opSelection{display:flex;gap:16px;align-items:center;border-top:1px solid var(--op-line);padding-top:16px;margin-top:18px;font-size:13px;line-height:1.7}#opSelection>span{flex:1;overflow-wrap:anywhere}
#opNotice{line-height:1.8;color:var(--op-muted);margin:14px 0;font-size:12px}.op-rule{font-size:12px}.op-scope{font-size:13px;color:var(--op-muted);line-height:1.8;margin:18px 0}
.op-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0 22px}
.op-metrics article{border:1px solid var(--op-line);border-radius:10px;background:#fff;padding:20px;min-width:0;position:relative}.op-metrics article>span{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--op-muted);line-height:1.5}
.op-metrics strong{display:block;font-size:27px;line-height:1.4;font-weight:650;margin:10px 0 7px;font-variant-numeric:tabular-nums;color:var(--op-ink);overflow-wrap:anywhere}.op-metrics article>small{font-size:11px;color:var(--op-muted)}
.op-channel-metric:before{content:'';position:absolute;top:18px;bottom:18px;left:0;width:3px;border-radius:0 3px 3px 0;background:var(--op-taobao)}.op-channel-metric.op-xhs:before{background:var(--op-xhs)}
.op-channel-metric i,.op-legend-item i,.op-channels i{display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--op-taobao);flex:none}.op-xhs i{background:var(--op-xhs)}
.op-missing{display:block;font-size:10px;font-weight:400;color:#966d36;line-height:1.5;margin-top:5px}
.op-trend,.op-detail,.op-methods{margin-top:22px;padding:24px!important}.op-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}.op-section-header h3{font-size:19px!important;line-height:1.4;margin:0!important}.op-section-header .eyebrow{margin:0 0 7px!important;font-size:10px}.op-caption{font-size:12px;color:var(--op-muted);margin:7px 0 0;line-height:1.6}
.op-section-controls{display:flex;justify-content:flex-end;align-items:end;flex-wrap:wrap;gap:14px;max-width:66%}.op-status-controls{display:flex;flex-wrap:wrap;gap:12px}.op-section-controls label{display:grid;gap:7px;font-size:11px;color:var(--op-muted);min-width:135px}.op-section-controls select{max-width:200px;min-height:38px;margin:0}.op-section-controls button{min-height:38px;white-space:nowrap}
.op-status-note{color:var(--op-muted);font-size:11px;margin:14px 0 18px;line-height:1.7}.op-legend{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding-top:16px;border-top:1px solid var(--op-line)}.op-legend-item{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--op-ink)}.op-legend-note{font-size:11px;color:var(--op-muted);margin-left:auto}
.op-chart-scroll{overflow:auto;margin:16px 0 2px}.op-chart{display:block;min-width:100%;color:var(--op-muted)}.op-chart text{font-size:11px;fill:currentColor}.op-chart-grid line{stroke:#dce4ec;stroke-width:1;stroke-dasharray:3 4}.op-chart .op-bar.op-taobao{fill:var(--op-taobao)}.op-chart .op-bar.op-xhs{fill:var(--op-xhs)}.op-chart .op-hit{fill:transparent}.op-chart [data-op-period]{cursor:pointer;outline:none}.op-chart [data-op-period]:focus .op-hit,.op-chart [data-op-period]:hover .op-hit{fill:#294f7410}.op-chart [data-op-period]:focus .op-bar{stroke:var(--op-ink);stroke-width:1.5}
.op-tooltip{display:block;min-height:42px;padding:11px 14px;background:#f4f7fa;border-radius:7px;color:var(--op-ink);font-size:12px;line-height:1.7;overflow-wrap:anywhere}.op-trend-details{margin-top:16px}.op-trend summary,.op-methods summary{cursor:pointer;font-size:12px;color:var(--op-ink)}.op-trend-table{max-height:360px;margin-top:12px}.op-trend-table th,.op-trend-table td{text-align:right}.op-trend-table th:first-child,.op-trend-table td:first-child{text-align:left}
.op-table{width:100%;min-width:1050px;table-layout:auto}.op-table th,.op-table td{padding:16px 13px!important;text-align:right;vertical-align:middle;white-space:nowrap}.op-table th{font-size:11px!important;letter-spacing:0;font-weight:550!important}.op-table tbody tr{border-bottom:1px solid #e9eef2}.op-table tbody tr:hover{background:#f7f9fc}.op-table th:nth-child(-n+2),.op-table td:nth-child(-n+2){text-align:left}.op-table th:first-child{width:30%}.op-table .op-product{min-width:240px;max-width:370px;white-space:normal}.op-product strong{display:block;font-size:14px;font-weight:550;line-height:1.75;overflow-wrap:anywhere;color:var(--op-ink)}.op-product-id{display:flex;gap:7px;align-items:baseline;margin-top:7px;font-size:10px;color:var(--op-muted)}.op-product-id code{font:11px ui-monospace,SFMono-Regular,Menlo,monospace;color:#536b80;overflow-wrap:anywhere;word-break:break-all}
.op-channel-badge{display:inline-flex;border-radius:5px;background:#eef3f8;color:var(--op-taobao);font-size:11px;font-weight:550;padding:4px 8px}.op-channel-badge.op-xhs{background:#faf0e7;color:#95552f}.op-channel-cell>small{display:block;font-size:11px;color:var(--op-muted);margin:7px 0 0 2px}.op-table .op-spec{text-align:left;white-space:normal;min-width:140px;max-width:240px;font-size:12px}.op-spec strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.op-spec small{display:block;font-size:11px;line-height:1.6;color:var(--op-muted);margin-top:6px}.op-action{text-align:center!important}.op-drill{background:#f2f6fa;border:1px solid #dce5ef;border-radius:6px;padding:7px 10px;color:var(--op-taobao);font-size:11px;cursor:pointer;white-space:nowrap}.op-drill:hover{background:#e7eff7}.op-dimension-caption{font-size:10px;color:#8b98a4}.op-table-note{font-size:11px;color:var(--op-muted);line-height:1.8;margin:14px 0 0}.op-empty{text-align:center!important;padding:40px!important;color:var(--op-muted)}
.op-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:18px;margin-top:16px;border-top:1px solid var(--op-line);font-size:12px}.op-pagination label{display:flex;align-items:center;gap:7px;margin-right:auto}.op-pagination select{width:auto}.op-methods p{font-size:12px;line-height:1.9}#opResults[aria-busy=true] .op-chart-scroll,#opResults[aria-busy=true] .op-table,#opResults[aria-busy=true] .op-metrics{opacity:.45}
@media(max-width:1200px){.op-filter-primary{grid-template-columns:minmax(180px,1fr) minmax(150px,.85fr);gap:18px}.op-date-range{grid-column:1/-1;max-width:600px}.op-section-header{flex-wrap:wrap}.op-section-controls{max-width:100%;justify-content:flex-start}.op-metrics strong{font-size:23px}}
@media(max-width:680px){.op-filters{padding:16px!important}.op-filter-primary{display:flex;flex-direction:column;gap:18px}.op-filter-primary>*{width:100%}.op-date-range{gap:12px}.op-filter-secondary{display:grid;grid-template-columns:1fr 1fr;gap:14px}.op-filter-secondary>label{min-width:0}.op-filter-secondary>.op-shortcuts{grid-column:1/-1}.op-filter-secondary>#opApply{grid-column:1/-1;margin-left:0;width:100%}.op-channels>div{display:flex}.op-channels label{flex:1;justify-content:center}.op-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.op-metrics article{padding:16px}.op-metrics strong{font-size:21px}.op-trend,.op-detail,.op-methods{padding:16px!important}.op-section-header{display:block}.op-section-controls{display:flex;justify-content:flex-start;gap:12px;margin-top:16px;max-width:100%}.op-status-controls{flex:1;min-width:0}.op-status-field{flex:1;min-width:130px!important}.op-status-field select{width:100%;max-width:none}.op-trend-metric{min-width:130px!important;flex:1}.op-legend{gap:12px}.op-legend-note{margin-left:0;flex-basis:100%;line-height:1.6}.op-tooltip{font-size:11px}.op-pagination{gap:8px}.op-pagination label{margin-right:0}.op-pagination>span{flex:1;min-width:130px}#opSelection{align-items:start;flex-direction:column;gap:8px}.op-table{min-width:980px}}

/* Fit the visible summary cards to the selected channel count. */
.op-metrics[data-cards="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:680px){.op-metrics[data-cards="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}.op-metrics[data-cards="3"] article:last-child{grid-column:1/-1}}

.op-product-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.op-product-card{display:flex;align-items:center;gap:17px;padding:18px;border:1px solid var(--op-line);border-radius:10px;background:#fff;min-width:0}.op-product-card>div{min-width:0}.op-product-card h3{font-size:15px!important;line-height:1.7;margin:8px 0!important;overflow-wrap:anywhere}.op-product-card p{font-size:11px;color:var(--op-muted);margin:8px 0 0}.op-product-picture{margin:0;flex:none;width:92px;text-align:center;min-width:0}.op-product-picture img{display:block;width:92px;height:92px;object-fit:contain;background:#f5f7f9;border:1px solid #edf1f5;border-radius:7px}.op-product-picture figcaption{font-size:9px;line-height:1.6;color:var(--op-muted);margin-top:6px;overflow-wrap:anywhere}.op-image-empty{display:flex;align-items:center;justify-content:center;height:92px;background:#f2f5f7;border:1px dashed #d3dde5;border-radius:7px;font-size:10px;color:#81909b}
.op-product-overview-scope{grid-column:1/-1;margin:0;font-size:12px;line-height:1.8;color:var(--op-muted)}
.op-sku-name .op-sku-standard{color:#486b87;font-size:11px}
.op-trend-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}.op-trend-main{min-width:0}.op-state-panel{border-left:1px solid var(--op-line);padding-left:20px;min-width:0}.op-state-panel h4{font-size:13px;color:var(--op-ink);margin:0 0 12px}.op-state-panel>p{font-size:10px;line-height:1.7;color:var(--op-muted);margin:10px 0}.op-state-tabs{display:flex;gap:6px}.op-state-tabs button{flex:1;min-height:34px;border:1px solid var(--op-line);border-radius:5px;background:#fff;font-size:11px;color:var(--op-muted);cursor:pointer}.op-state-tabs button.is-active{border-color:#7391b0;background:#eef4fa;color:var(--op-taobao)}.op-state-cards{display:grid;gap:7px;max-height:430px;overflow:auto;padding:2px}.op-state-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;text-align:left;padding:10px!important;border:1px solid var(--op-line)!important;border-radius:6px;background:#fff!important;color:var(--op-ink);cursor:pointer;min-width:0}.op-state-card>span:first-child{font-size:11px;line-height:1.7;overflow-wrap:anywhere}.op-state-card>strong{font-size:15px;font-weight:600;text-align:right}.op-state-card>strong small{font-size:9px;font-weight:400;margin-left:3px;color:var(--op-muted)}.op-state-amount{grid-column:1/-1;font-size:11px;color:var(--op-muted)}.op-state-card.is-active{border-color:#6b8dae!important;background:#eef5fb!important}.op-state-card:focus-visible{outline:2px solid #7498b9;outline-offset:1px}.op-state-amount .op-missing{display:inline;margin-left:8px}
.op-sku-overview{margin-top:22px;padding:24px!important}.op-sku-group{margin-top:20px;border:1px solid var(--op-line);border-radius:9px;overflow:hidden}.op-sku-group>header{display:flex;gap:20px;align-items:center;padding:20px;background:#f8fafc;border-bottom:1px solid var(--op-line)}.op-sku-group>header>div{min-width:0}.op-sku-group h4{margin:9px 0;font-size:15px;line-height:1.7;color:var(--op-ink);overflow-wrap:anywhere}.op-sku-group header p{font-size:11px;color:var(--op-muted);margin:9px 0 0}.op-sku-items{max-height:470px;overflow:auto}.op-sku-item{display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(100px,1fr) minmax(100px,.8fr);gap:24px;padding:15px 20px;align-items:center;border-bottom:1px solid #e8eef3}.op-sku-item:last-child{border-bottom:0}.op-sku-name strong{font-size:13px;font-weight:550;color:var(--op-ink);line-height:1.7;overflow-wrap:anywhere}.op-sku-name>small{display:block;font-size:10px;line-height:1.7;color:var(--op-muted);margin-top:5px;overflow-wrap:anywhere}.op-sku-count>strong{font-size:15px;font-weight:600;color:var(--op-ink)}.op-sku-count small{font-size:10px;font-weight:400;color:var(--op-muted)}.op-sku-bar{display:block;width:100%;height:5px;margin:7px 0}.op-sku-track{fill:#eaf0f5}.op-sku-fill{fill:#5c80a5}.op-sku-value{text-align:right}.op-sku-value>strong{display:block;font-size:13px;font-weight:550;color:var(--op-ink)}.op-sku-value>small{display:block;font-size:10px;color:var(--op-muted);line-height:1.7;margin-top:5px}
@media(max-width:1100px){.op-trend-layout{grid-template-columns:minmax(0,1fr)}.op-state-panel{border-left:0;padding-left:0;border-top:1px solid var(--op-line);padding-top:18px}.op-state-tabs{max-width:280px}.op-state-cards{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none}}
@media(max-width:680px){.op-product-overview{grid-template-columns:1fr}.op-product-card{padding:14px;gap:13px}.op-product-picture{width:76px}.op-product-picture img{width:76px;height:76px}.op-image-empty{height:76px}.op-product-card h3{font-size:13px!important}.op-state-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.op-state-card{gap:6px;padding:9px!important}.op-state-card>strong{font-size:14px}.op-sku-overview{padding:16px!important}.op-sku-group>header{padding:14px;gap:13px}.op-sku-group h4{font-size:13px}.op-sku-item{grid-template-columns:minmax(0,1fr) minmax(80px,.75fr);padding:14px;gap:10px 16px}.op-sku-name{grid-column:1/-1}.op-sku-count>strong{font-size:14px}.op-sku-value>strong{font-size:12px}}

/* Product search: bounded candidates, explicit platform scopes and linked variants. */
#opCatalog{border:1px solid var(--op-line);border-radius:9px;background:#fbfcfe;box-shadow:0 8px 24px #2039510a;margin-top:12px;padding:15px}
#opCandidates{max-height:440px;overflow-y:auto;overscroll-behavior:contain;grid-template-columns:repeat(2,minmax(0,1fr));padding:2px}
#opCandidates .op-candidate{display:block;padding:12px;background:#fff;min-width:0}
.op-candidate-choice{display:flex;gap:10px;cursor:pointer;align-items:flex-start;min-width:0}
.op-candidate-choice input{flex:none;margin-top:4px}.op-candidate-content{min-width:0}.op-candidate-content strong,.op-candidate-items{overflow-wrap:anywhere}
.op-variant-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:12px 0 0 24px}
.op-variant-fields label{display:grid;gap:5px;font-size:11px;color:var(--op-muted);min-width:0}
.op-variant-fields select{width:100%;min-width:0;max-width:100%;font-size:12px;padding:8px;border:1px solid var(--op-line);border-radius:5px;background:#fff;color:var(--op-ink)}
.op-variant-fields select:focus-visible,.op-candidate-choice input:focus-visible{outline:2px solid #7498b9;outline-offset:2px}
@media(max-width:850px){#opCandidates{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){#opCatalog{padding:10px}.op-variant-fields{grid-template-columns:minmax(0,1fr);margin-left:0}#opCandidates{max-height:440px}.op-catalog-header{gap:10px;align-items:flex-start;flex-wrap:wrap}}
