/* One shared glass panel; original controls keep their IDs and event handlers. */
body .topbar.playroom-header .topbar-inner:has(>#progressToggle){grid-template-columns:auto minmax(0,1fr) auto}
body #progressToggle.me-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:72px;height:44px;padding:8px 12px;font:600 14px/20px 'Mind Playroom Nunito Sans',Arial,sans-serif;color:#244b3b;background:linear-gradient(145deg,#ffffffdc,#edf6edb8);border:1px solid #ffffffbd;border-radius:15px;box-shadow:inset 0 1px 0 #fff,0 3px 10px #143d2910}
body #progressToggle.me-toggle::before{display:none}
body #progressToggle.me-toggle svg{flex:none}
#progressDialog.playroom-center,.playroom-break{box-sizing:border-box;width:min(580px,calc(100vw - 28px));max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid #ffffffdf;border-radius:28px;background:linear-gradient(135deg,#ffffffed,#eef6eef2);color:#244736;font:15px/1.55 'Mind Playroom Nunito Sans',Arial,Helvetica,sans-serif;box-shadow:0 20px 80px #173f3440,inset 0 1px 0 #fff;backdrop-filter:blur(26px);overflow:auto;overscroll-behavior:contain}
#progressDialog.playroom-center::backdrop,.playroom-break::backdrop{background:#17382b55;backdrop-filter:blur(5px)}
#progressDialog.playroom-center header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
#progressDialog.playroom-center h2,.playroom-break h2{font:650 28px/1.2 'Mind Playroom Nunito Sans',Arial,sans-serif;letter-spacing:-.6px;color:#244736;margin:0}
.playroom-kicker{font-size:12px;line-height:1.4;color:#61796b;margin:0 0 5px}
#progressDialog.playroom-center #progressClose{flex:none;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #b9cdbb;border-radius:50%;background:#ffffffa6;color:#365744;font:24px/1 Arial,sans-serif}
.playroom-section{padding:18px 0;border-top:1px solid #bacfbd80}
.playroom-section:last-child{padding-bottom:0}
#progressDialog .playroom-section h3{margin:0 0 12px;font-size:16px;font-weight:700;color:#244736}
.playroom-overview{display:grid;gap:10px}
.playroom-overview>div{padding:12px 14px;background:#ffffff80;border:1px solid #d0dfd2;border-radius:16px}
.playroom-overview strong{font-size:14px;font-weight:650}
.playroom-overview p,.playroom-note{font-size:13px;line-height:1.6;color:#5b7063;margin:4px 0 0}
#playroomProgressDetails{margin-top:12px}#playroomProgressDetails>summary{min-height:44px;cursor:pointer;font-size:14px;color:#315f49;padding:10px 0}
#progressDialog #progressGames{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#progressDialog #progressGames .progress-game{padding:12px;min-width:0;background:#ffffff85;border-radius:14px}
#progressDialog #progressGames p,#progressDialog #progressGames li{overflow-wrap:anywhere}
.playroom-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}
.playroom-setting>label{font-size:14px;flex:1;min-width:0}
#progressDialog .language-bar{display:contents;color:inherit;font-size:14px}
#progressDialog .language-bar label{flex:1}
#progressDialog :is(#soundToggle,#languageSelect,#breakReminderInterval,#usageSettings,#usageAllow,#usageDecline),.playroom-break button{box-sizing:border-box;font:600 14px/1.4 'Mind Playroom Nunito Sans',Arial,Helvetica,sans-serif;color:#315b44;min-height:44px;padding:9px 12px;border:1px solid #b7cbb8;border-radius:12px;background:#ffffffb8}
#progressDialog :is(#languageSelect,#breakReminderInterval){width:152px;max-width:48%;padding-right:20px}
#progressDialog #soundToggle[aria-pressed=true]{background:#dceee1;border-color:#6d9b7d}
#progressDialog #usagePreferences{max-width:100%;padding:12px;margin-top:10px;border-color:#c7d8ca;border-radius:14px;background:#ffffff70}
.playroom-break{width:min(440px,calc(100vw - 28px));padding:28px}
.playroom-break>p{margin-top:14px}.playroom-break-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.playroom-break #breakReminderTake{color:#fff;background:#35674c;border-color:#35674c}
#progressDialog :is(button,select,a,summary):focus-visible,.playroom-break button:focus-visible{outline:3px solid #47785d;outline-offset:3px}
@media(max-width:650px){body .topbar.playroom-header .topbar-inner:has(>#progressToggle){grid-template-columns:40px minmax(0,1fr) auto;gap:8px}body #progressToggle.me-toggle{min-width:66px;padding-inline:10px;font-size:13px}#progressDialog.playroom-center{padding:20px;border-radius:24px}#progressDialog.playroom-center h2,.playroom-break h2{font-size:25px}#progressDialog #progressGames{grid-template-columns:1fr}.playroom-setting{gap:10px}}
@media(prefers-reduced-transparency:reduce){#progressDialog.playroom-center,.playroom-break{background:#f4f8f2;backdrop-filter:none}}
@media(forced-colors:active){#progressDialog.playroom-center,.playroom-break,body #progressToggle.me-toggle{border:1px solid CanvasText;background:Canvas;color:CanvasText}}

body .topbar.playroom-header .topbar-inner:has(>#progressToggle) :is(.home-game-picker,.mobile-game-picker){grid-column:2;grid-row:1}
body .topbar.playroom-header .topbar-inner:has(>#progressToggle)>.brand{grid-column:1;grid-row:1}
body #progressToggle.me-toggle{grid-column:3;grid-row:1}
body .topbar.playroom-header .topbar-inner:has(>#progressToggle){padding:10px 20px;min-height:64px;row-gap:0}
body .topbar.playroom-header .topbar-inner:has(>#progressToggle) :is(.home-game-picker,.mobile-game-picker) select{font-size:20px;font-weight:600;line-height:26px;height:48px;min-height:48px;padding:8px 30px 8px 14px}
@media(max-width:650px){body .topbar.playroom-header .topbar-inner:has(>#progressToggle){padding:6px 8px;min-height:56px}body .topbar.playroom-header .topbar-inner:has(>#progressToggle) :is(.home-game-picker,.mobile-game-picker) select{font-size:16px;padding-inline:7px 22px}}
#progressDialog #soundToggle{position:static;inset:auto;align-self:center;margin:0;width:auto;max-width:55%;flex:none;white-space:nowrap}
#progressDialog a{color:#315f49;text-underline-offset:3px}
