/* MD Not Aware v10.37 — participant desktop reading workspace and consistent controls. */
#gsOverlay .gsModeTool{border:1px solid #9cbae28a;border-radius:10px;background:#1a324f;color:#f3f8ff;font:700 13px/1.2 system-ui,sans-serif;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 11px;min-height:34px;white-space:nowrap;cursor:pointer}
#gsOverlay .gsModeTool:hover,#gsOverlay .gsModeTool:focus-visible{background:#294b72;outline-color:#a9d9ff}
#gsOverlay .gsThemeMenuBackdrop{position:fixed;inset:0;z-index:10500;display:grid;place-items:center;background:#071525ad;padding:12px}
#gsOverlay .gsThemeMenu{width:min(450px,95vw);max-height:85dvh;overflow:auto;background:#11253c;color:#f0f8ff;border:1px solid #7493b7;border-radius:17px;padding:15px;box-shadow:0 30px 70px #000a;font:14px/1.45 system-ui}
#gsOverlay .gsThemeMenuTitle{display:flex;align-items:center;justify-content:space-between;font-weight:800;font-size:17px;margin-bottom:12px}
#gsOverlay .gsThemeMenuTitle button{background:#243e5a;color:white;border:1px solid #607fa0;border-radius:9px;min-width:32px;min-height:32px}
#gsOverlay .gsThemeOptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#gsOverlay .gsThemeOptions button{background:#213d5b;color:#f0f8ff;border:1px solid #486a90;border-radius:10px;font-size:13px;min-height:42px;padding:8px;text-align:left;cursor:pointer}
#gsOverlay .gsThemeOptions button.selected{background:#365f8f;border-color:#dfd48a}
#gsOverlay .gsThemeMenu p{font-size:12px;color:#b5cbe3;margin:12px 0 0}
#gsOverlay .gsHeaderControls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
/* Guest's join screen remains narrow; active Group Study is a full desktop app. */
@media(min-width:860px){
 body[data-mdna-guest] #gsOverlay .gsWrap.gsStudyLayout,
 #gsOverlay .gsWrap.gsStudyLayout{box-sizing:border-box!important;max-width:none!important;width:100%!important;min-width:0!important;margin:0!important;padding:14px clamp(18px,2vw,40px) 45px!important;}
 body[data-mdna-guest] #gsOverlay .gsWrap.gsStudyLayout .gsCompactTop{display:flex!important;}
 #gsOverlay .gsStudyLayout .gsStudyPage{width:100%!important;max-width:none!important;min-width:0!important}
 #gsOverlay .gsStudyLayout .gsStudyColumns{display:grid!important;grid-template-columns:minmax(165px,205px) minmax(0,1fr) minmax(180px,215px)!important;gap:clamp(12px,1.1vw,22px)!important;width:100%!important;min-width:0!important;align-items:start!important}
 #gsOverlay .gsStudyLayout .gsStudyColumns > *{grid-column:auto!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important}
 #gsOverlay .gsStudyLayout .gsStudyMain{width:100%!important;padding:clamp(19px,2vw,30px)!important;overflow:visible!important}
 #gsOverlay .gsStudyLayout .gsStudyStem{font-size:clamp(20px,1.42vw,24px)!important;line-height:1.52!important;font-weight:630!important}
 #gsOverlay .gsStudyLayout .gsStudyAnswers .gsChoice{font-size:clamp(16px,1.08vw,18px)!important;line-height:1.48!important;min-height:58px!important}
 #gsOverlay .gsStudyLayout .gsStudyIndex h3,#gsOverlay .gsStudyLayout .gsStudySide h3{font-size:17px!important}
 #gsOverlay .gsStudyLayout .gsStudyIndexTile span{font-size:15px!important}
 #gsOverlay .gsStudyLayout .gsStudyMemberName{font-size:13px!important}
 #gsOverlay .gsStudyLayout .gsStudyMemberName small{font-size:11px!important}
}
@media(min-width:860px) and (max-width:1199px){
 #gsOverlay .gsStudyLayout .gsStudyColumns{grid-template-columns:minmax(150px,190px) minmax(0,1fr)!important}
 #gsOverlay .gsStudyLayout .gsStudySide{grid-column:1/-1!important}
 #gsOverlay .gsStudyLayout .gsStudyMembers{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));max-height:165px}
}
@media(max-width:859px){
 body[data-mdna-guest] #gsOverlay .gsWrap.gsStudyLayout{max-width:none!important;width:100%!important;padding:12px!important}
 body[data-mdna-guest] #gsOverlay .gsWrap.gsStudyLayout .gsCompactTop{display:flex!important}
 #gsOverlay .gsStudyLayout .gsStudyColumns{display:flex!important;flex-direction:column;gap:12px}
 #gsOverlay .gsStudyLayout .gsStudyColumns>*{width:100%!important;min-width:0!important}
 #gsOverlay .gsStudyLayout .gsStudyIndexGrid{display:flex;overflow-x:auto;gap:5px;max-height:none}
 #gsOverlay .gsStudyLayout .gsStudyIndexTile{flex:0 0 54px}
 #gsOverlay .gsStudyLayout .gsStudyMain{padding:16px!important}
 #gsOverlay .gsStudyLayout .gsStudyStem{font-size:19px!important;line-height:1.5!important}
 #gsOverlay .gsStudyLayout .gsStudyAnswers .gsChoice{font-size:15px!important;line-height:1.46!important}
}
@media(max-width:440px){#gsOverlay .gsModeTool{font-size:11px;padding:7px;min-height:31px}#gsOverlay .gsThemeOptions{grid-template-columns:1fr 1fr}#gsOverlay .gsThemeOptions button{font-size:12px}}

/* Sound panel is appended to the document body; it must be above the modal room overlay. */
#mdnaSoundPanel{z-index:12500!important;}

/* Classroom guests also need access to theme and music once in the room. */
body[data-mdna-guest] #gsOverlay .gsWrap.gsActiveRoom .gsCompactTop{display:flex!important;}
