/* Short landscape screens use parallel columns; portrait/tablet/desktop keep their layouts. */
@media (min-width:600px) and (max-width:1100px) and (max-height:500px) and (orientation:landscape){
 html[data-view=hero],html[data-view=shop],html body.pc-redesign[data-layout=sidebar]:is([data-view=hero],[data-view=shop]){height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}
 html body.pc-redesign[data-layout=sidebar]:is([data-view=hero],[data-view=shop]) #app{height:100dvh!important;min-height:0!important;max-height:100dvh!important;grid-template-rows:46px minmax(0,1fr)!important;overflow:hidden!important}
 html body.pc-redesign[data-layout=sidebar]:is([data-view=hero],[data-view=shop]) .layout-footer{display:none!important}
 html body.pc-redesign[data-layout=sidebar]:is([data-view=hero],[data-view=shop]) .main-content{height:100%!important;max-height:100%!important;min-height:0!important;padding:4px 7px!important;overflow:hidden!important}
 html body.pc-redesign[data-layout=sidebar]:is([data-view=hero],[data-view=shop]) .view-content{display:flex!important;flex-direction:column!important;gap:3px!important;height:100%!important;max-height:100%!important;min-height:0!important;padding:0!important;overflow:hidden!important}
 html body.pc-redesign[data-layout=sidebar] .view-content>.extra-equipment-launch{display:none!important}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] .current-hero.smith-design{display:grid!important;flex:1 1 0!important;width:100%!important;max-width:none!important;height:0!important;min-height:0!important;grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr)!important;grid-template-rows:24px 32px 43px minmax(0,1fr)!important;gap:3px!important;overflow:hidden!important}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] .current-hero>.current-title{grid-column:1/-1!important;grid-row:1!important}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] .current-hero>.current-tabs{grid-column:1/-1!important;grid-row:2!important;margin:0!important}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] .current-hero>.current-summary{grid-column:2!important;grid-row:3!important;padding:4px 7px!important;min-height:0!important;font-size:12px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] .current-summary>div{margin-top:3px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] .current-hero>.current-portrait{grid-column:1!important;grid-row:3/5!important;height:100%!important;min-height:0!important}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] .current-portrait>.current-tag{display:none!important}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] .current-hero>.current-bag{grid-column:2!important;grid-row:4!important;min-height:0!important;padding:4px!important;display:grid!important;grid-template-rows:20px minmax(0,1fr) 30px!important;gap:3px!important;overflow:hidden!important}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] .current-bag>.current-cells{margin:0!important;min-height:0!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:3px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] .current-hero.smith-design .current-cells>.current-cell{height:100%!important;min-height:0!important;padding:2px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] .current-bag>nav{margin:0!important;min-height:0!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .growth-screen.smith-design.approved-market{flex:1 1 0!important;height:0!important;min-height:0!important;display:grid!important;grid-template-rows:28px minmax(0,1fr) 28px!important;gap:3px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-market-title{height:28px!important;min-height:0!important;margin:0!important;padding:0!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-market-title h1{font-size:20px!important;line-height:24px!important;margin:0!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-market-title>div>small{display:none!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-market-layout{min-height:0!important;overflow:hidden!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-market-panel{grid-template-rows:30px 28px minmax(0,1fr) 30px!important;gap:2px!important;padding:3px!important;min-height:0!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-stock-heading h2{font-size:14px!important;margin:0!important;line-height:16px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-stock-note{font-size:10px!important;line-height:12px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-merchants{padding:0!important;min-height:0!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-merchants button,html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-market button.approved-building{height:28px!important;min-height:28px!important;padding:3px 7px!important;margin:0!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .growth-screen.smith-design.approved-market .approved-stock{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;grid-auto-rows:minmax(0,1fr)!important;min-height:0!important;height:100%!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .offer.approved-offer{display:flex!important;flex-direction:column!important;min-height:0!important;height:100%!important;padding:3px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-inspect{display:grid!important;grid-template-columns:minmax(80px,.42fr) minmax(0,.58fr)!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important;justify-content:stretch!important;min-height:0!important;flex:1 1 0!important;width:100%!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-art{height:100%!important;min-height:0!important;min-width:0!important;width:100%!important;flex:none!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-caption{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:stretch!important;height:auto!important;min-height:0!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;flex:none!important;padding:7px!important;overflow:hidden!important;text-align:left!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-caption>strong{height:auto!important;min-height:30px!important;max-height:45px!important;font:12px/15px Georgia!important;white-space:normal!important;margin:0!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-comparison{display:flex!important;font-size:11px!important;line-height:15px!important;min-height:15px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-card-stats{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:4px!important;font:12px/16px Georgia!important;min-height:36px!important;margin-top:3px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-price{display:flex!important;font-size:12px!important;line-height:18px!important;min-height:18px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-tier,html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-level{font-size:10px!important;line-height:14px!important;top:5px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-tier{left:11px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-level{right:7px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-market button.approved-buy{height:30px!important;min-height:30px!important;max-height:30px!important;flex:0 0 30px!important;padding:3px!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-market-bottom>small{display:none!important}
 html body.pc-redesign[data-layout=sidebar][data-view=shop] .approved-market-bottom{justify-content:center!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop[open]{gap:5px!important;padding:8px!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop:has(>.pc-workshop-tabs>[data-tab=garden][aria-pressed=true]) .pc-workshop-main{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(190px,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;gap:6px!important;overflow:hidden!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop:has(>.pc-workshop-tabs>[data-tab=garden][aria-pressed=true]) .pc-workshop-main>p:first-child{grid-column:1/-1!important;margin:0!important;font-size:12px!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop:has(>.pc-workshop-tabs>[data-tab=garden][aria-pressed=true]) .pc-workshop-grid{grid-column:1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;min-height:0!important;margin:0!important;gap:5px!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop:has(>.pc-workshop-tabs>[data-tab=garden][aria-pressed=true]) .pc-workshop-main>.pc-workshop-card{grid-column:2!important;grid-row:2!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop .pc-workshop-card{padding:7px!important;margin:0!important;min-height:0!important;font-size:12px!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop .pc-workshop-card h3{font-size:15px!important;margin:0 0 6px!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop .pc-workshop-card p{margin:5px 0!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop .pc-workshop-row{padding:3px 0!important;gap:4px!important;font-size:12px!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop .pc-workshop-row strong{font-size:11px!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop button{min-height:30px!important;padding:3px 8px!important;font-size:12px!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop select{padding:6px!important;margin:5px 0!important;min-height:32px!important;font-size:12px!important}
}
/* A planted garden needs four equal tiles on portrait tablets as well. */
@media (min-width:700px) and (max-width:950px) and (orientation:portrait){
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop:has(>.pc-workshop-tabs>[data-tab=garden][aria-pressed=true]) .pc-workshop-main{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto repeat(2,minmax(0,1fr))!important;gap:10px!important;min-height:0!important;overflow:hidden!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop:has(>.pc-workshop-tabs>[data-tab=garden][aria-pressed=true]) .pc-workshop-main>p:first-child{grid-column:1/-1!important;margin:0!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop:has(>.pc-workshop-tabs>[data-tab=garden][aria-pressed=true]) .pc-workshop-grid{display:contents!important}
 html body.pc-redesign[data-layout=sidebar] dialog.pc-workshop:has(>.pc-workshop-tabs>[data-tab=garden][aria-pressed=true]) .pc-workshop-card{min-height:0!important;margin:0!important}
}


/* Desktop legacy chrome also needs the phone drawer at short landscape sizes. */
@media(min-width:901px) and (max-width:1100px) and (max-height:500px) and (orientation:landscape){
 html body.pc-redesign[data-layout=sidebar] .layout-topbar{display:flex!important;height:46px!important;grid-column:1!important;grid-row:1!important;align-items:center!important;justify-content:flex-start!important}
 html body.pc-redesign[data-layout=sidebar] .layout-header-context{display:flex!important;position:relative!important;z-index:10!important;order:0!important}
 html body.pc-redesign[data-layout=sidebar] .layout-menu-open{display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important;z-index:10!important;margin:0 8px!important;width:44px!important;height:44px!important;min-height:44px!important}
 html body.pc-redesign[data-layout=sidebar] .citadel-brand{position:absolute!important;left:68px!important;top:2px!important;height:42px!important;width:calc(100vw - 85px)!important;justify-content:flex-start!important}
 html body.pc-redesign[data-layout=sidebar] .citadel-brand .citadel-full{display:none!important}
 html body.pc-redesign[data-layout=sidebar] .citadel-brand .citadel-compact{display:flex!important}
 html body.pc-redesign[data-layout=sidebar] .layout-navigation{top:8px!important;bottom:8px!important;gap:5px!important;overflow:auto!important}
 html body.pc-redesign[data-layout=sidebar] .layout-navigation>button:not([data-pc-more-item]){min-height:44px!important;height:44px!important;flex-shrink:0!important}
 html body.pc-redesign[data-layout=sidebar] .top-actions{position:static!important;visibility:inherit!important;transform:none!important;width:100%!important;flex-shrink:0!important}
}
