.ah-builder #builder{--builder-panel-padding:14px;--learn-card-rows:4;--play-card-rows:4;--play-choice-max:64px;--play-choice-padding:4px;grid-template-columns:minmax(0,1fr) clamp(420px,42svh,444px);align-items:start}.ah-builder .pantry{padding:var(--builder-panel-padding)}.ah-builder .heading h1{font-size:32px}.sandwich-menu-column{min-width:0}.sandwich-menu-column>.heading{margin-bottom:12px}.kitchen{align-self:center}.is-create .choice-pager [data-choice-list]{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(orientation:landscape) and (min-width:900px) and (min-height:600px){#sandwich{width:min(100%,max(260px,calc(100svh - 290px)),480px)}}
@media(orientation:portrait),(max-width:899px),(max-height:599px){.ah-builder #builder{grid-template-columns:minmax(0,1fr)}#sandwich{width:min(100%,440px)}.sandwich-menu-column{width:min(100%,540px);margin:0 auto}.free-toolbar{flex-direction:row;justify-content:center;flex-wrap:wrap}.sandwich-menu-body{display:block}.ah-builder .heading h1{font-size:30px}}
@media(max-width:380px){.first-heading{flex-wrap:wrap}.build-mode-controls{margin-left:auto}}

#free-tools{flex:0 0 44px;width:44px;align-self:center}
@media(orientation:portrait),(max-width:899px),(max-height:599px){#free-tools{width:100%;margin:12px auto}.free-toolbar{gap:8px}.free-toolbar .ah-button{flex:0 0 44px}}

/* All sixteen LEARN fillings stay visible in one four-by-four grid. */
.ah-builder #sandwich-menu .choice-pager:not([data-expanded="true"]) #topping-options{
 grid-template-columns:repeat(4,minmax(0,1fr));
 grid-template-rows:repeat(4,minmax(var(--learn-card-height,88px),auto));
}
.ah-builder #sandwich-menu .ingredient-name{max-width:100%;overflow-wrap:anywhere}

.ah-builder #sandwich-menu .choice-pager{grid-template-columns:minmax(0,1fr)}
.ah-builder #sandwich-menu [data-choice-previous],
.ah-builder #sandwich-menu [data-choice-next],
.ah-builder #sandwich-menu [data-choice-status]{display:none}

/* Keep the ingredient label beside its source while the heading spans the row. */
.ah-builder #sandwich-menu #source-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px;align-items:center}
.ah-builder #sandwich-menu #source-section>h2{grid-column:1/-1;margin-bottom:0}
.ah-builder #sandwich-menu #source-label{margin:0;text-align:center;overflow-wrap:anywhere}
.ah-builder #sandwich-menu #source-choice{min-width:0}

/* Enlarge the drawing inside its existing box, keeping card/row heights stable. */
@media(min-width:740px) and (min-height:600px){
 .ah-builder #builder:not(.is-create) #sandwich-menu #topping-options .ingredient-art>svg{
  transform:scale(1.2);transform-origin:center;
 }
}

/* PLAY fills the text-free cards with larger artwork; bread sits beside the picker. */
.ah-builder #builder.is-create #sandwich-menu #topping-options{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(72px,auto))}
.ah-builder #sandwich-menu #piece-picker-wrap{display:flex;align-items:center;gap:8px}
.ah-builder #sandwich-menu #piece-picker{flex:1;min-width:0}
.ah-builder #sandwich-menu .bread-choice{flex:0 0 72px;min-height:64px;padding:4px}
.ah-builder #sandwich-menu .bread-choice .ingredient-art{width:60px;height:52px}
