@media(min-width:1024px){
 /* Games: keep each server-controlled play area and fullscreen behaviour intact. */
 body.app-shell:not(.gf-active) .qz-page{max-width:1120px!important;margin:auto;padding:24px!important;background:var(--desktop-panel);border:1px solid var(--desktop-border);border-radius:18px}
 body.app-shell .dg-reference-grid,body.app-shell .dg-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}
 body.app-shell .dg-reference-center{max-width:none!important}
 body.app-shell .dg-game-tile,body.app-shell .dg-game-tile.dg-reference-tile{min-height:240px;padding:22px!important;border-radius:16px}
 body.app-shell .dg-game-tile h3{font-size:18px!important;line-height:1.25}
 body.app-shell .dg-game-tile p{font-size:14px!important;line-height:1.5}
 body.app-shell .qz-tabs{max-width:820px;margin:24px auto!important}
 body.app-shell:not(.gf-active) :is([data-qz-panel],[data-game-panel]){max-width:820px;margin-left:auto;margin-right:auto}
 body.app-shell:not(.gf-active) .qz-head{margin-bottom:24px}
 body.app-shell .dg-maze{max-width:480px}
 body.gf-active>.desktop-shell-nav{display:none!important}
 /* Messaging and notifications keep their original per-record links and forms. */
 body.app-shell :is(.messages-v1,.chat-v1,.notifications-v1){max-width:1000px!important;padding:28px!important;background:var(--desktop-panel)!important;color:var(--desktop-text)!important;border:1px solid var(--desktop-border);border-radius:18px}
 body.app-shell .messages-v1__row{min-height:88px;border-color:var(--desktop-border)}
 body.app-shell .messages-v1__search{max-width:720px}.messages-v1__body small{max-width:720px}
 body.app-shell .chat-v1{display:flex;flex-direction:column;min-height:640px}
 body.app-shell .chat-v1__messages{min-height:360px;max-height:580px;flex:1;overflow-y:auto;padding:24px;background:var(--desktop-bg);border-radius:12px}
 body.app-shell .chat-v1__bubble{max-width:72%;font-size:14px}
 body.app-shell .chat-v1__composer{position:relative!important;bottom:auto!important;padding:16px 0 0!important;background:var(--desktop-panel)!important}
 body.app-shell .notifications-v1__tabs{max-width:760px;margin-bottom:22px}
 body.app-shell .notification-swipe{border-bottom:1px solid var(--desktop-border)}
 body.app-shell .notifications-v1__item{min-height:86px}
 /* Every settings subroute uses the same genuine form and existing save action. */
 body.app-shell .settings-v1{max-width:960px!important;margin:auto;padding:28px!important;background:var(--desktop-panel);border:1px solid var(--desktop-border);border-radius:18px;color:var(--desktop-text)}
 body.app-shell .settings-v1__head{padding-bottom:24px;border-bottom:1px solid var(--desktop-border)}
 body.app-shell .settings-v1--main .settings-v1__group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
 body.app-shell .settings-v1__form{max-width:700px;margin:24px auto;gap:18px}
 body.app-shell .settings-v1__form label{font-size:14px}
 body.app-shell .settings-v1__form :is(input:not([type=checkbox]):not([type=radio]),select){min-height:46px}
 body.app-shell .settings-notifications-v1{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 body.app-shell .settings-notifications-v1>p,body.app-shell .settings-notifications-v1>button{grid-column:1 / -1}
 /* Points, invitation, leaderboard and both reward shops. */
 body.app-shell .loyalty-app{max-width:1040px!important;padding:28px!important;margin:auto;background:var(--desktop-panel);border:1px solid var(--desktop-border);border-radius:18px}
 body.app-shell .loyalty-app__rewards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
 body.app-shell .loyalty-app__stats{gap:20px}.loyalty-app__card{padding:24px}
 body.app-shell .loyalty-app__head{margin-bottom:26px}
 body.app-shell .loyalty-app__tabs{max-width:820px;margin:20px auto}
 body.app-shell .loyalty-app__invite-link{overflow-wrap:anywhere}
 /* Business/organization lists, profiles, forms and advertising surfaces. */
 body.app-shell .business-v3{max-width:1120px!important;padding:0!important}
 body.app-shell .business-v3-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 body.app-shell :is(.business-form,.business-list,.business-management-head,.business-content,.organization-manage,.organization-page,.advertising-v1){max-width:1040px;margin-left:auto;margin-right:auto}
 body.app-shell :is(.business-form,.organization-manage){padding:28px;border-radius:16px;background:var(--desktop-panel);border-color:var(--desktop-border)}
 body.app-shell .business-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 body.app-shell .business-list>form{min-width:0}.business-list .identity-option{width:100%}
 body.app-shell .business-content__create{max-width:960px;margin:auto}
 body.app-shell :is(.business-profile-v1,.organization-profile-v1,.organization-directory-v1,.org-manage,.ads-page,.firm-rewards){max-width:1040px!important;margin-left:auto;margin-right:auto;padding:28px!important;background:var(--desktop-panel);border:1px solid var(--desktop-border);border-radius:18px;color:var(--desktop-text)}
 body.app-shell :is(.business-profile-v1__products,.organization-profile-v1__events){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
 body.app-shell .org-manage__tabs{display:flex;flex-wrap:wrap;gap:12px}
 body.app-shell .org-manage__card{max-width:820px;margin:24px auto}
 body.app-shell .org-manage__menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 body.app-shell :is(.ads-panel,.firm-rewards__card){padding:24px;border-color:var(--desktop-border)}
 body.app-shell .sp-card{overflow-wrap:anywhere}
 body.app-shell .sp-empty{padding:64px 24px;min-height:260px}
 body.app-shell .sp-empty h2{font-size:24px!important}
}
