/* Expand only the Games workspace. Other accepted page widths remain unchanged. */
html:root .app-shell:has(iframe[data-coach-view="games"]) :is(.showcase,.dashboard-frame,.main-content,.workflow-workspace){max-width:none!important;width:100%;box-sizing:border-box;min-width:0}
html:root .app-shell:has(iframe[data-coach-view="games"]) .workflow-workspace{padding:0!important;margin:0!important}
html:root .app-shell:has(iframe[data-coach-view="games"]) iframe[data-coach-view="games"]{width:100%!important;max-width:none!important}
html:root .app-shell .topbar form.search{margin-left:auto!important;order:20;max-width:280px;min-width:140px}
@media(max-width:680px){html:root .app-shell .topbar form.search{width:100%;max-width:none;flex-basis:100%;order:30;margin-left:0!important}}
/* Games-only approved aquarium shell. Original account and theme handlers stay mounted. */
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]){padding:0!important;margin:0!important;max-width:none!important;width:100%!important;background:#043778!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) :is(.showcase,.dashboard-frame,.main-content,.workflow-workspace){padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;max-width:none!important;width:100%!important;background:transparent!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) :is(.sidebar,.mobile-nav,.bottom-nav,.workflow-back,.workflow-context,.workflow-workspace>button,.workflow-workspace>.section-indicator){display:none!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .dashboard-body{display:block!important;grid-template-columns:minmax(0,1fr)!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar{display:flex!important;gap:clamp(8px,1.2vw,20px)!important;justify-content:space-between!important;align-items:center!important;flex-wrap:nowrap!important;background:linear-gradient(110deg,#11285a,#121136)!important;border:0!important;border-bottom:1px solid #6ec9f8!important;border-radius:0!important;padding:8px 20px!important;min-height:74px!important;color:white!important;box-sizing:border-box;width:100%!important;max-width:none!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar :is(.mobile-menu,.top-links,.search,.bell){display:none!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .brand{width:260px!important;min-width:200px!important;height:60px!important;padding:0!important;margin:0 auto 0 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;position:relative;flex:0 1 260px!important;aspect-ratio:260/60!important;overflow:hidden!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar :is(.theme-toggle,.streak-mini,.plan-badge,.signup-action,.avatar){font:600 15px/1.3 'IBM Plex Sans',sans-serif!important;letter-spacing:0!important;color:#fff!important;white-space:nowrap!important;text-shadow:none!important;min-height:44px!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .theme-toggle{flex:0 0 auto!important;display:flex!important;gap:9px!important;padding:5px 70px 5px 4px!important;background:none!important;border:0!important;box-shadow:none!important;width:auto!important;position:relative!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .theme-toggle::before{content:''!important;position:absolute!important;left:auto!important;right:4px!important;top:10px!important;width:52px!important;height:27px!important;background:#7840d6!important;border:1px solid #b48aff!important;border-radius:22px!important;box-shadow:inset 0 2px 4px #1e1048!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .theme-toggle::after{content:''!important;position:absolute!important;left:auto!important;right:30px!important;top:13px!important;width:21px!important;height:21px!important;background:white!important;border-radius:50%!important;box-shadow:0 2px 4px #132348!important;transform:none!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .theme-toggle[aria-checked="true"]::after{right:7px!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .streak-mini{display:flex!important;gap:8px!important;align-items:center!important;padding:0 12px!important;border:0!important;border-left:1px solid #7b91be!important;background:none!important;box-shadow:none!important;border-radius:0!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .streak-mini small{order:1;color:inherit!important;font-size:14px!important;white-space:nowrap}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .streak-mini strong{order:2;padding:4px 10px;border:1px solid #9ab1df;border-radius:9px;background:#243f6a;color:inherit!important;font-size:20px!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar :is(.plan-badge,.signup-action){padding:10px 16px!important;border:1px solid #e0b7ff!important;border-radius:15px!important;background:linear-gradient(#b45bee,#6127ad 40%,#371672)!important;box-shadow:inset 0 2px 3px #ffffff8a,0 3px 5px #030b2b!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .plan-badge::before{content:'♛';margin-right:6px;color:#ffe67c}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .avatar{display:flex!important;gap:6px;padding:5px 12px!important;border:1px solid #b49fe9!important;border-radius:14px!important;background:#18264e!important;box-shadow:inset 0 1px #ffffff55!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .avatar::before{content:'';width:36px;height:36px;border-radius:50%;background:url('/assets/games-ocean-20261103/approved-aquarium.png') -909px -6px/1024px 1536px no-repeat;border:1px solid #d4a7ff}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) iframe[data-coach-view="games"]{display:block!important;border:0!important;border-radius:0!important;width:100%!important;min-height:650px!important;height:var(--aquarium-content-height,1600px)!important;background:#0494d1!important}
html:root #root#root.acemblex-light .app-shell:has(iframe[data-coach-view="games"]) .topbar{background:linear-gradient(110deg,#e2f5ff,#eee6ff)!important;color:#16274d!important}
html:root #root#root.acemblex-light .app-shell:has(iframe[data-coach-view="games"]) .topbar :is(.theme-toggle,.streak-mini){color:#16274d!important}
@media(max-width:1050px){html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar{flex-wrap:wrap!important;justify-content:center!important;padding:8px 10px!important;gap:10px!important}html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .brand{margin:0!important;flex-basis:260px!important}html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar :is(.plan-badge,.signup-action){padding:8px 12px!important}}
@media(max-width:520px){html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .brand{flex-basis:100%!important;max-width:260px!important;margin:0 25%!important;flex-shrink:0!important}html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .streak-mini{padding:0 6px!important}html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar :is(.theme-toggle,.streak-mini,.plan-badge,.signup-action,.avatar){font-size:13px!important}}

html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .dashboard-frame>.content{margin:0!important;width:100%!important;padding:0!important;border:0!important;grid-column:1/-1!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .workflow-workspace>div:not(:has(iframe)){display:none!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar{border-radius:0!important;min-height:76px!important;padding:8px 20px!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .streak-mini strong{color:white!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar :is(.plan-badge,.signup-action){background:linear-gradient(#b45bee,#6127ad 40%,#371672)!important;color:white!important}


html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) :is(.topbar,.dashboard-frame>.content){position:relative!important;inset:auto!important;left:auto!important;top:auto!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;transform:none!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) :is(.dashboard-frame,.showcase){height:auto!important;max-height:none!important;min-height:100vh!important;overflow:visible!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .content>.section-title{display:none!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .workflow-workspace{height:auto!important;max-height:none!important;overflow:visible!important}

html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .content>.preview-notice{display:none!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .avatar{padding-left:50px!important;background:linear-gradient(to right,transparent 40px,#18264e 40px),url('/assets/games-ocean-20261103/approved-aquarium.png') -911px -6px/1024px 1536px no-repeat!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .avatar::before{display:none!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .mobile-bottom{display:none!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .account-control{display:block!important}
html:root #root#root .app-shell:has(iframe[data-coach-view="games"]) .topbar .theme-toggle>span{display:inline-flex!important;visibility:visible!important;font-size:14px!important}
