/* Store-matching pallets: read-only candidate cards on the existing Recipes tab. */
.mixed-pallet-store-match{display:grid;gap:var(--ui-gap-loose);min-width:0}
.mixed-pallet-store-match>.mixed-pallet-recipes-header{margin-bottom:0}
.mixed-pallet-store-subtitle{margin:var(--ui-gap-tight) 0 0;color:var(--ux-ink-muted);font-size:var(--ui-type-label)}
.mixed-pallet-store-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,355px),1fr));gap:var(--ui-gap-loose);min-width:0}
.mixed-pallet-workspace .mixed-pallet-store-card{display:flex;flex-direction:column;gap:var(--ui-gap);min-width:0;margin:0;padding:var(--space-4);border:1px solid var(--ux-border)}
.mixed-pallet-store-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ui-gap);flex-wrap:wrap}
.mixed-pallet-store-card-header>div{flex:1 1 185px;min-width:0}
.mixed-pallet-store-card h3{margin:var(--ui-gap-tight) 0 0!important;font-size:var(--ui-type-section-title);line-height:1.45;overflow-wrap:anywhere}
.mixed-pallet-store-card h3 small{font-size:var(--ui-type-label);font-weight:500;color:var(--ux-ink-muted)}
.mixed-pallet-store-kicker{margin:0!important;font-size:var(--ui-type-label)!important;font-weight:600;color:var(--ux-ink-muted)}
.mixed-pallet-store-size{flex:0 0 auto;display:inline-flex;align-items:center;border-radius:var(--ui-radius-search);padding:var(--ui-gap-tight) var(--ui-gap);background:var(--ux-surface-muted);font-size:var(--ui-type-label)}
.mixed-pallet-store-summary{font-weight:600;margin:0!important;font-size:var(--ui-type-label)!important;color:var(--ux-ink)}
.mixed-pallet-store-list{list-style:none;display:grid;gap:var(--ui-gap-tight);margin:0;padding:0}
.mixed-pallet-store-support{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-gap);border:1px solid var(--ux-border);border-radius:var(--ui-radius-search);padding:var(--ui-gap);min-width:0}
.mixed-pallet-store-support>div:first-child{min-width:0;display:grid;gap:3px}
.mixed-pallet-store-support>div:first-child>strong{overflow-wrap:anywhere}
.mixed-pallet-store-support>div:first-child>span{font-size:var(--ui-type-label);color:var(--ux-ink-muted)}
.mixed-pallet-store-match-count{display:grid;gap:3px;flex:0 0 auto;text-align:end;font-variant-numeric:tabular-nums}
.mixed-pallet-store-match-count>strong{font-size:1.2rem;color:var(--ux-ink-strong)}
.mixed-pallet-store-match-count>span{font-size:var(--ui-type-label);color:var(--ux-ink-muted)}
.mixed-pallet-store-warning{padding:var(--ui-gap);border-radius:var(--ui-radius-search);background:var(--ux-surface-muted);color:var(--ux-warning-ink);font-weight:600;margin:0!important;font-size:var(--ui-type-label)!important}
.mixed-pallet-store-today{margin:0!important;font-size:var(--ui-type-label)!important;color:var(--ux-ink)}
.mixed-pallet-store-composition{display:grid;gap:var(--ui-gap-tight);min-width:0;margin-top:var(--ui-gap-tight)}
.mixed-pallet-store-composition>strong{font-size:var(--ui-type-label)}
.mixed-pallet-store-categories{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:var(--ui-gap-tight);min-width:0}
.mixed-pallet-store-category{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--ux-border);border-radius:var(--ui-radius-search);background:var(--ux-surface-muted);padding:4px 8px;font-variant-numeric:tabular-nums;font-size:var(--ui-type-label)}
.mixed-pallet-store-category>span{color:var(--ux-ink-muted)}
.mixed-pallet-store-explanation{min-width:0}
.mixed-pallet-store-explanation>summary{cursor:pointer;font-weight:600;font-size:var(--ui-type-label);padding-block:var(--ui-gap-tight)}
.mixed-pallet-store-explanation>p{font-size:var(--ui-type-label);color:var(--ux-ink-muted);line-height:1.5;overflow-wrap:anywhere}
.mixed-pallet-store-actions{display:flex;flex-wrap:wrap;gap:var(--ui-gap);margin-top:auto}
.mixed-pallet-store-actions>.button{flex:1 1 145px;min-height:var(--ui-touch-target)}
.mixed-pallet-store-more{min-width:0;border:1px solid var(--ux-border);border-radius:var(--ui-radius-search);padding:var(--ui-gap)}
.mixed-pallet-store-more>summary{cursor:pointer;font-weight:600;padding:var(--ui-gap-tight)}
.mixed-pallet-store-more[open]>.mixed-pallet-store-grid{margin-top:var(--ui-gap)}
.mixed-pallet-legacy-recipes{min-width:0}
.mixed-pallet-legacy-recipes>summary{cursor:pointer;border:1px solid var(--ux-border);border-radius:var(--ui-radius-search);padding:var(--ui-gap-loose);font-weight:600;color:var(--ux-ink)}
.mixed-pallet-legacy-recipes[open]>summary{margin-bottom:var(--ui-gap)}
.mixed-pallet-legacy-recipes>.mixed-pallet-pilot{min-width:0}
@media(max-width:520px){
 .mixed-pallet-store-grid{grid-template-columns:minmax(0,1fr)}
 .mixed-pallet-workspace .mixed-pallet-store-card{padding:var(--ui-gap-loose)}
 .mixed-pallet-store-support{flex-wrap:wrap}
 .mixed-pallet-store-match-count{display:flex;align-items:baseline;gap:var(--ui-gap-tight);text-align:start}
 .mixed-pallet-store-actions>.button{flex-basis:100%}
}


/* Store-first composition card: order fit and physical mix are primary. */
.mixed-pallet-store-card-identity{flex:1 1 190px;min-width:0}
.mixed-pallet-store-card-identity h3{font-size:var(--ui-type-section-title);font-weight:700;margin:3px 0 0;line-height:1.4;overflow-wrap:anywhere}
.mixed-pallet-store-size{display:grid;gap:0;text-align:center;min-width:80px;padding:6px 10px}
.mixed-pallet-store-size>strong{font-size:1.5rem;line-height:1.2;font-variant-numeric:tabular-nums}
.mixed-pallet-store-size>span{font-size:var(--ui-type-label);color:var(--ux-ink-muted);font-weight:500}
.mixed-pallet-store-coverage{display:flex;align-items:baseline;gap:var(--ui-gap);flex-wrap:wrap;background:var(--ux-surface-muted);border-radius:var(--ui-radius-search);padding:10px 12px}
.mixed-pallet-store-coverage>strong{font-size:1.65rem;line-height:1.12;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ux-ink-strong)}
.mixed-pallet-store-coverage>span{font-size:var(--ui-type-label);color:var(--ux-ink)}
.mixed-pallet-store-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-gap-tight)}
.mixed-pallet-store-support{display:flex;align-items:center;justify-content:space-between;gap:var(--ui-gap-tight);padding:7px 8px;min-width:0}
.mixed-pallet-store-identity{display:grid;gap:2px;min-width:0}
.mixed-pallet-store-identity strong{font-size:var(--ui-type-label);line-height:1.4}
.mixed-pallet-store-identity small,.mixed-pallet-store-last{font-size:var(--ui-type-label);color:var(--ux-ink-muted);line-height:1.4}
.mixed-pallet-store-last{margin:0!important}
.mixed-pallet-store-match-count{display:grid;gap:1px;text-align:end;flex:0 0 auto}
.mixed-pallet-store-match-count>strong{font-size:1.1rem;line-height:1.2}
.mixed-pallet-store-match-count>span{font-size:10px}
.mixed-pallet-store-composition{margin-top:2px}
.mixed-pallet-store-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--ui-gap-tight)}
.mixed-pallet-store-category{display:grid;justify-items:center;align-content:center;gap:0;padding:7px 2px;min-width:0;text-align:center}
.mixed-pallet-store-category strong{font-size:var(--ui-type-label);line-height:1.4}
.mixed-pallet-store-category span{font-size:var(--ui-type-label);line-height:1.4}
.mixed-pallet-store-explanation>summary,.mixed-pallet-store-method>summary{cursor:pointer;font-weight:600;color:var(--ux-ink);font-size:var(--ui-type-label)}
.mixed-pallet-store-method{border-top:1px solid var(--ux-border);padding-top:var(--ui-gap)}
.mixed-pallet-store-method>p{max-width:75ch;font-size:var(--ui-type-label);line-height:1.6;color:var(--ux-ink-muted)}
@media(max-width:500px){
 .mixed-pallet-store-list{grid-template-columns:minmax(0,1fr)}
 .mixed-pallet-store-support{flex-wrap:nowrap}
 .mixed-pallet-store-match-count{display:grid;justify-items:end}
 .mixed-pallet-store-card-header{align-items:center}
 .mixed-pallet-store-coverage{padding:8px 10px}
}


/* Store recipe visual precision (mobile and mixed English/Hebrew). */
.mixed-pallet-workspace .mixed-pallet-store-card .mixed-pallet-store-title{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;
 column-gap:8px;row-gap:5px;direction:ltr;text-align:start;line-height:1.5;
}
.mixed-pallet-store-label{
 display:inline-flex;align-items:baseline;gap:5px;direction:ltr;
 unicode-bidi:isolate;min-width:0;max-width:100%;
}
.mixed-pallet-store-label bdi{unicode-bidi:isolate}
.mixed-pallet-store-label>span[aria-hidden]{color:var(--ux-ink-muted)}
.mixed-pallet-store-plus{font-weight:500;color:var(--ux-ink-muted);flex:0 0 auto}
.mixed-pallet-store-identity>strong{display:block;direction:ltr;unicode-bidi:isolate}
.mixed-pallet-workspace .mixed-pallet-store-card .mixed-pallet-store-size{
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
 min-width:78px;
}
.mixed-pallet-workspace .mixed-pallet-store-card .mixed-pallet-store-coverage{
 display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;
}
.mixed-pallet-store-size strong,.mixed-pallet-store-coverage strong,
.mixed-pallet-store-match-count strong{unicode-bidi:isolate;font-variant-numeric:tabular-nums}
.mixed-pallet-workspace .mixed-pallet-store-card .mixed-pallet-store-categories{
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
 column-gap:7px;row-gap:7px;width:100%;min-width:0;direction:ltr;
}
.mixed-pallet-workspace .mixed-pallet-store-card .mixed-pallet-store-category{
 display:flex;flex-direction:column;justify-content:center;align-items:center;
 min-width:0;width:100%;min-height:59px;padding:7px 2px;gap:2px;
 font-variant-numeric:tabular-nums;white-space:nowrap;
}
.mixed-pallet-workspace .mixed-pallet-store-card .mixed-pallet-store-category strong{
 font-size:13px;line-height:1.25;
}
.mixed-pallet-workspace .mixed-pallet-store-card .mixed-pallet-store-category span{
 font-size:12px;line-height:1.25;
}
@media(max-width:400px){
 .mixed-pallet-workspace .mixed-pallet-store-card .mixed-pallet-store-categories{column-gap:5px;row-gap:6px}
 .mixed-pallet-workspace .mixed-pallet-store-card .mixed-pallet-store-category{min-height:55px}
 .mixed-pallet-store-label{gap:4px}
}
