/* Commerce components inherit the shared semantic palette in both themes. */
.commerce-page{border-radius:0!important;border:0!important;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;flex:1}
.commerce-page>.table-wrap{flex:1;min-height:0;max-width:100%;overflow:auto;overscroll-behavior:contain}
.commerce-page td:not(:first-child){text-align:right}.commerce-page th:not(:first-child){text-align:right}
.commerce-page td:first-child{min-width:260px}.commerce-page th,.commerce-page td{padding:17px 15px}
.commerce-page .sub{margin-top:5px;font-size:11px;line-height:1.45}.commerce-page .num{white-space:nowrap;font-variant-numeric:tabular-nums}
.commerce-page tfoot{position:sticky;bottom:0;background:var(--subtle);box-shadow:0 -1px 0 var(--line);z-index:2}.commerce-page tfoot td{font-weight:600}
.commerce-card th:nth-child(2),.commerce-card th:nth-child(3),.commerce-card th:nth-child(5),.commerce-card th:nth-child(6){text-align:left!important}
.commerce-economics th:not(:first-child),.commerce-economics td:not(:first-child){min-width:145px;max-width:180px}.commerce-economics td:first-child{min-width:240px}
.commerce-compact td{padding-top:10px;padding-bottom:10px}.commerce-compact .commerce-thumb{width:32px;height:39px}.commerce-compact .commerce-meta{display:none}
.commerce-table-meta,.commerce-table-footer,.commerce-inline-legend{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 18px;font-size:12px;border-bottom:1px solid var(--line);flex:none}
.commerce-table-meta>div{display:flex;align-items:center;gap:12px}.commerce-table-footer{border-bottom:0;border-top:1px solid var(--line);color:var(--muted);font-size:11px;background:var(--surface)}
.commerce-table-footer .btn,.commerce-inline-legend .btn{min-height:27px;padding:3px 7px;font-size:11px}.commerce-table-footer>span{display:flex;align-items:center;gap:8px}
.commerce-inline-legend{font-size:11px;color:var(--muted);padding-block:7px}.commerce-inline-legend strong{font-weight:600}
.commerce-source{color:var(--muted);font-size:11px;white-space:nowrap}.commerce-source i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--good);margin-right:7px}
.commerce-product{display:flex;align-items:center;gap:11px;min-width:225px}.commerce-product>div{min-width:0}
.commerce-thumb:before{display:none}.commerce-thumb{display:grid;place-items:center;flex:none;width:38px;height:47px;background:var(--subtle);border:1px solid var(--line);border-radius:4px}
/* Fixed swatches below are synthetic product artwork, not interface colors. */
.commerce-thumb i{display:block;width:25px;height:33px;border:3px solid var(--frame,#555);box-shadow:0 1px 2px #0002;background:linear-gradient(145deg,#ddd7ca 35%,#ede8df 36%,#e8e4d9 70%,#c4c7bc 71%)}
.commerce-offer{display:inline-block;border:0;padding:0;background:none;color:var(--accent);cursor:pointer;text-align:left;font:inherit;font-size:12px;font-weight:600;text-decoration:none}.commerce-offer:hover{text-decoration:underline}
.commerce-meta{display:block;color:var(--muted);font-size:10px;margin-top:5px}
.commerce-number-button{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:5px;padding:5px 8px;cursor:pointer;font:inherit;font-weight:600;white-space:nowrap}
.commerce-stock-button{background:none;border:0;padding:0;color:inherit;font:inherit;text-align:right;cursor:pointer}.commerce-stock-button:hover .num{text-decoration:underline}
.commerce-return{display:block;text-align:right;border:1px solid var(--warn);border-radius:4px;padding:3px 6px;font-variant-numeric:tabular-nums;color:var(--warn);background:var(--warn-soft)}
.commerce-dimensions{background:transparent;border:0;cursor:pointer;white-space:nowrap;color:inherit;font:inherit}.commerce-mini-icon{color:var(--muted);margin-right:5px}
.commerce-zero{display:inline-block;color:var(--warn);border:1px solid var(--warn);background:var(--warn-soft);border-radius:4px;padding:2px 9px}
.commerce-warning{color:var(--warn)!important}.commerce-negative{color:var(--bad)!important}
.commerce-row-actions{display:flex;gap:6px;flex-wrap:wrap}.commerce-row-actions .btn{font-size:11px;padding:6px 9px}
.commerce-search{min-width:170px;flex:1;max-width:330px}.commerce-search input{width:100%;min-height:34px}
.commerce-select{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;color:var(--muted)}.commerce-select select{max-width:175px;color:var(--ink)}
.commerce-coverage{display:flex;align-items:center;gap:12px;padding:8px 18px;background:var(--warn-soft);border-bottom:1px solid var(--line);font-size:11px;line-height:1.6;color:var(--warn);flex:none}
.commerce-coverage .badge{flex:none}.commerce-coverage>.btn{margin-left:auto;flex:none}
.commerce-empty{padding:40px 24px;text-align:center;overflow:auto;min-height:0;flex:1}.commerce-empty strong{font-size:17px}.commerce-empty p{color:var(--muted)}
.commerce-detail-product{display:flex;justify-content:space-between;gap:20px;margin-bottom:22px;align-items:center}
.commerce-detail-list{margin:20px 0}.commerce-detail-list>div{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.commerce-detail-list>div>span{color:var(--muted)}.commerce-detail-list b{text-align:right;font-weight:600}
.commerce-dialog-intro{margin:0 0 20px;line-height:1.6}.commerce-disclosure{padding:12px 0;color:var(--muted);font-size:12px}.commerce-disclosure summary{cursor:pointer;font-weight:600}
.commerce-market-status{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;color:var(--good)}.commerce-market-status i{width:5px;height:5px;background:currentColor;border-radius:50%}
.commerce-market-status.ready{color:var(--warn)}.commerce-market-status.archive{color:var(--muted)}
.commerce-content-icons{display:flex;align-items:center;gap:5px;min-width:218px}
.commerce-content-icon{padding:5px;border:1px solid var(--line);background:var(--good-soft);color:var(--good);border-radius:4px;width:27px;height:29px;display:grid;place-items:center;cursor:pointer}
.commerce-content-icon svg,.commerce-content-detail svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.commerce-content-icon.partial{color:var(--warn);background:var(--warn-soft);border-color:var(--warn)}.commerce-content-icon.missing{color:var(--bad);background:var(--bad-soft);border-color:var(--bad)}.commerce-content-icon:hover{border-color:currentColor}
.commerce-rating{display:flex;align-items:center;justify-content:flex-end;gap:10px;background:none;border:0;cursor:pointer;font:inherit;padding:0;width:100%;color:var(--good)}
.commerce-rating.warn{color:var(--warn)}.commerce-rating.bad{color:var(--bad)}.commerce-rating>span{font-weight:600;font-variant-numeric:tabular-nums}.commerce-rating>i{display:block;width:45px;height:3px;background:var(--subtle);border-radius:3px}.commerce-rating b{display:block;background:currentColor;height:3px;border-radius:3px}
.commerce-barcode{font-variant-numeric:tabular-nums;font-size:12px;color:var(--muted)}.commerce-content-detail>div{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.commerce-content-detail .badge{margin-left:auto}
.commerce-signal{display:inline-flex;align-items:center;gap:7px;border-radius:4px;padding:3px 6px;font-size:11px;line-height:1.4;white-space:nowrap;font-weight:500}.commerce-signal small{font-size:10px;font-weight:500}
.commerce-signal.bad{color:var(--bad)!important;background:var(--bad-soft)}.commerce-signal.warn{color:var(--warn)!important;background:var(--warn-soft)}.commerce-signal.good{color:var(--good)!important;background:var(--good-soft)}
.commerce-signal .num{font-size:13px;font-weight:650}.commerce-page .commerce-signal{margin-top:3px}
.commerce-trend{display:grid;grid-template-columns:90px auto;gap:2px 8px;align-items:center;min-width:160px;text-align:right;background:none;border:0;padding:0;color:var(--muted);font:inherit;cursor:pointer;margin-left:auto}
.commerce-trend.up{color:var(--good)}.commerce-trend.down{color:var(--bad)}.commerce-trend svg{grid-row:1/3;width:90px;height:28px;overflow:visible}.commerce-trend polyline{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}.commerce-trend strong{font-size:12px;font-variant-numeric:tabular-nums}.commerce-trend span{color:var(--muted);font-size:10px;white-space:nowrap}
.commerce-chart-panel{border:1px solid var(--line);border-radius:7px;margin:22px 0;padding:18px}.commerce-chart-panel h3{font-size:14px;margin:0 0 20px}
.commerce-chart{display:flex;gap:8px;align-items:flex-end;min-height:205px}.commerce-chart-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;flex:1;min-width:12px;min-height:205px}.commerce-chart-col i{display:block;width:100%;max-width:40px;min-height:3px;background:var(--accent);border-radius:3px 3px 0 0}.commerce-chart-col span{font-size:9px;color:var(--muted)}.commerce-chart-col small{font-size:10px;color:var(--muted)}
@media(max-width:900px){
  .commerce-select>span{display:none}.commerce-table-meta{flex-wrap:wrap}.commerce-coverage{gap:7px;padding:7px 12px}.commerce-coverage>.btn{margin-left:0}.commerce-coverage>span:nth-child(2){display:none}.commerce-source{white-space:normal}.commerce-table-footer>span:nth-child(3){display:none}.commerce-table-footer{padding:9px 12px;gap:6px}.commerce-chart{gap:4px}.commerce-chart-col span{display:none}.commerce-detail-list>div{font-size:12px}.commerce-table-meta>div{gap:5px}.commerce-search{min-width:150px}.commerce-chart-panel{padding:12px}.commerce-inline-legend{padding:7px 12px;gap:6px}.commerce-inline-legend>span{max-width:50%;font-size:10px}.commerce-page th,.commerce-page td{padding:13px 12px}
}
