/* Shared catalog controls; no change to eligibility or price ownership. */
html body .product-area > .catalog-toolbar {
  display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px;
}
html body .catalog-toolbar > .result-meta {flex:0 0 auto}
html body .catalog-toolbar > .results-search-tools {flex:1 1 340px;min-width:260px}
html body .catalog-toolbar > .sort-field {margin-left:auto}
html body .catalog-toolbar-types {flex:0 1 240px;min-width:210px;box-sizing:border-box}
html body .catalog-toolbar-price {flex:0 1 270px;min-width:240px;box-sizing:border-box}
@media(max-width:1080px){
  html body .site-header .header-actions,
  html[data-public-apex-navigation] body .site-header .header-actions {display:flex!important;order:2;gap:0}
  html body .site-header .header-actions > :not(.catalog-basket-entry){display:none!important}
  html body .site-header .selection-mobile-nav {order:3}
  html body .site-header .brand-signature {min-width:0;flex:0 1 160px}
  html body .site-header .header-inner {gap:8px}
  html body .site-header .catalog-basket-entry {font-size:12px;padding:8px;min-height:40px}
}
@media(max-width:760px){
  html body .catalog-toolbar > .results-search-tools {flex-basis:100%;min-width:0}
  html body .catalog-toolbar-types,html body .catalog-toolbar-price {flex:1 1 240px;min-width:0}
}

/* Keep explicit image-result status messages visible; idle placeholders stay hidden. */
.selection-first-screen-v2 .selection-v2-image .front-image-results:not([aria-busy="true"]) .front-image-empty[role="status"] {
  display: block;
}

/* Search owns the available toolbar width; a hidden coach cannot leave a blank grid column. */
html body .product-area > .catalog-toolbar {
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:16px;
}
html body .catalog-toolbar > .results-search-tools {
  display:grid;grid-template-columns:minmax(0,1fr);min-width:0;width:100%;gap:10px;
}
html body .catalog-toolbar .results-inline-search {grid-template-columns:minmax(0,1fr) auto;min-width:0;width:100%}
html body .catalog-toolbar .results-inline-search textarea {min-width:0;min-height:72px;font-size:14px;box-sizing:border-box}
html body .catalog-toolbar > .sort-field {min-width:0;margin-left:0}
html body .catalog-toolbar .sort-field select {min-width:0;max-width:100%}
/* The existing budget group is back in the sidebar. Keep the button inside its row. */
html body #filterPanel .custom-price-range {
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;
  gap:5px;padding:0 10px 12px;box-sizing:border-box;min-width:0;width:100%;
}
html body #filterPanel .custom-price-range label {min-width:0;width:auto}
html body #filterPanel .custom-price-range input {min-width:0;width:100%;height:36px;padding:0 5px;box-sizing:border-box;font-size:12px}
html body #filterPanel .custom-price-range button {min-width:48px;height:36px;padding:0 8px;white-space:nowrap;box-sizing:border-box}
html body .selection-v2-image .front-image-identification {grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:start}
html body .selection-v2-image .front-image-identification strong {font-size:18px;line-height:1.5;overflow-wrap:anywhere}
html body .selection-v2-image .front-image-identification b {font-size:14px;line-height:1.5}
html body .selection-v2-image .front-image-identification small {font-size:12px;line-height:1.5}
html body .selection-v2-image .front-image-drop.has-image {min-width:0;align-items:center}
html body .selection-v2-image .front-image-crop-stage {flex:0 0 88px;margin-right:10px;max-width:88px}
html body .selection-v2-image .front-image-preview-copy {flex:1;min-width:0;text-align:left}
html body .selection-v2-image .front-image-preview-copy strong {font-size:13px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:1250px){
  html body .product-area > .catalog-toolbar {grid-template-columns:minmax(0,1fr) auto}
  html body .catalog-toolbar > .results-search-tools {grid-column:1 / -1;grid-row:2}
}
@media(max-width:760px){
  html body .catalog-toolbar .sort-field {max-width:180px}
  html body .selection-v2-image .front-image-identification {grid-template-columns:minmax(0,1fr)}
}
