.ranking-editor { margin: 1.25rem 0; padding: 1rem; border: 1px solid #b8c3c7; border-radius: .5rem; }
.ranking-editor summary { cursor: pointer; font-weight: 700; }
.ranking-editor fieldset { margin: 1rem 0; padding: 1rem; border: 1px solid #cbd3d6; border-radius: .4rem; }
.ranking-editor fieldset > label { display: block; margin: .6rem 0; }
.ranking-editor textarea { display: block; width: min(100%, 44rem); min-height: 5rem; }
.ranking-editor input:not([type="checkbox"]), .ranking-editor select { max-width: 24rem; }
.ranking-field label[hidden] { display:none!important; }
#ranking-message { min-height: 1.5em; }
.merch-product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; margin:18px 0; }
.merch-product-grid[hidden] { display:none; }
.merch-product-card { overflow:hidden; border:1px solid #d6dee9; border-radius:8px; background:#fff; }
.merch-product-photo { aspect-ratio:4/5; display:grid; place-items:center; background:#edf1f4; color:#596677; font-size:13px; }
.merch-product-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.merch-product-body { padding:14px; }
.merch-product-body h3 { min-height:2.8em; margin:0 0 8px; font-size:15px; line-height:1.4; }
.merch-product-badges { min-height:2.8em; color:#42536b; font-size:12px; line-height:1.4; }
.merch-score-label { margin:8px 0 4px; font-size:12px; font-weight:700; color:#263e63; }
.merch-score-track { height:7px; border-radius:6px; background:#e2e9f2; overflow:hidden; }
.merch-score-track span { display:block; height:100%; background:#286bb2; }
.merch-product-body dl { display:grid; grid-template-columns:1fr auto; gap:5px 10px; margin:12px 0; font-size:12px; }
.merch-product-body dt { color:#596677; }.merch-product-body dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.merch-product-body button { width:100%; }
#metadata-versions:not(:empty) { padding:10px 12px; background:#edf5ff; border-left:3px solid #2871c7; font-size:13px; }
@media print {
 .topbar,.hero,#controls,#notice,#result>.filters,#ranking-editor,#csv-panel,#table-pages,#product-dialog,.merch-product-body button { display:none!important; }
 body { background:#fff; }main { max-width:none; padding:0; }.panel { border:0; box-shadow:none; }
 .merch-product-grid { grid-template-columns:repeat(4,1fr); gap:8px; }.merch-product-card { break-inside:avoid; }
 .merch-product-body { padding:8px; }.merch-product-photo { aspect-ratio:1; }
}

body[data-page-key="commercial-merchandising.html"] .filters select{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
body[data-page-key="commercial-merchandising.html"] .filters label:has(#mode){flex-basis:230px}
@media print{#preset-variant-editor{display:none!important}}
