/* iPad layout. Split View falls back naturally to the unchanged phone UI. */
@media (min-width:768px){
 main{max-width:1180px;padding-left:max(28px,env(safe-area-inset-left));padding-right:max(28px,env(safe-area-inset-right))}
 .topbar{padding-left:max(28px,calc((100% - 1124px)/2),env(safe-area-inset-left));padding-right:max(28px,calc((100% - 1124px)/2),env(safe-area-inset-right))}
 .tabbar{padding-left:max(24px,calc((100% - 1000px)/2),env(safe-area-inset-left));padding-right:max(24px,calc((100% - 1000px)/2),env(safe-area-inset-right))}
 .tab{font-size:12px;min-width:0}
 .screen-head{margin-top:20px;margin-bottom:20px}
 .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
 .item-card .meta{padding:12px 14px 14px}.item-card .nm{font-size:15px}
 .outfits{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .grid>*,.outfits>*{min-width:0}
 .filters{max-width:760px;gap:12px}
 .chips.scroll{flex-wrap:wrap;overflow:visible;margin-left:0;margin-right:0;padding-left:0;padding-right:0}
 .fab{right:max(28px,calc((100% - 1124px)/2),env(safe-area-inset-right))}
 .hero{padding:36px 28px}.hero .stack{max-width:560px;flex-direction:row;justify-content:center}.hero .stack .btn{flex:1;min-width:0}
 .sheet-wrap{padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));align-items:center}
 .sheet{width:100%;max-width:760px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);border-radius:26px}
 .sheet.full{height:calc(100vh - 48px);height:calc(100dvh - 48px)}
 .sheet-body{min-height:0;overscroll-behavior:contain}.sheet-head,.sheet-foot{flex-shrink:0}
 .tl-sheet .tl-hero,.lotw-sheet .lotw-hero{max-height:380px;object-fit:contain;background:var(--cream-2)}
 #profileForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
 #profileForm>*{min-width:0}
 #profileForm>.label,#profileForm>.row,#profileForm>.grid2,#profileForm>.field:last-child{grid-column:1 / -1}
 .cap-outs,.stk-badges{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:900px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1100px){.outfits{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1200px){.grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Keep both unit chips comfortably tappable in phone and tablet size forms. */
.shoe-unit{flex-wrap:wrap}.shoe-unit>*{flex:0 0 auto}.shoe-unit .chip{min-width:52px;justify-content:center}
@media(min-width:768px){#profileForm>.size-fields{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.size-fields>p,.size-fields>.shoe-unit{grid-column:1 / -1}}
