html, body { overscroll-behavior: none; overflow: clip; }
.studio-autosave{border-top:1px solid #d9dee5;padding:12px 16px;color:#354552;max-width:260px;white-space:normal}
.studio-autosave label{display:flex;align-items:center;gap:9px;font-size:14px;cursor:pointer;min-height:32px}
.studio-autosave input{width:18px;height:18px;accent-color:#35883e}
.studio-autosave small{display:block;font-size:11px;line-height:1.5;margin-top:4px}
.studio-autosave [role=status]{font-weight:bold}
#file_menu{max-height:calc(100vh - 56px);overflow-y:auto;overscroll-behavior:contain}
.studio-function-running > .blocklyPath{fill:#48d66b!important;stroke:#159b37!important;stroke-width:4px!important;stroke-opacity:1!important;filter:drop-shadow(0 0 3px #19c943)!important}
/* Toolbox scrolling must leave room for the fixed collapse switch. */
.blockly_wrapper .injectionDiv > .blocklyToolboxDiv{height:calc(100% - 50px)!important;box-sizing:border-box}
.modal_wrapper{position:fixed}
@media(min-width:701px) and (max-height:500px){
 .topmenu{flex-wrap:nowrap!important;min-height:48px!important;height:48px!important;font-size:12px}
 .topmenu>#topmenu_right_group{width:auto!important;border-top:0!important;flex:1;justify-content:flex-end}
 .project_name_wrapper .project_name_ticker{width:80px}
 .studio-home{font-size:12px;padding:0 6px}
 .topmenu .toolbar_btn{padding-left:5px!important;padding-right:5px!important;min-width:32px!important}
 .studio-toolbar-actions{gap:3px;margin-left:3px;padding:0 3px}
 .studio-toolbar-button{padding:4px;font-size:10px}
}
@media(max-width:700px),(max-height:500px){
 .window{box-sizing:border-box;max-width:calc(100vw - 20px)!important;min-width:0!important;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);overflow:auto}
 .window .content{box-sizing:border-box;min-width:0;max-width:100%;padding-left:16px;padding-right:16px}
 .window .controls{padding:12px 16px;flex-shrink:0}
 .window input{max-width:100%;box-sizing:border-box;font-size:16px}
 .prompt_window .make-block{width:calc(100vw - 24px);min-height:300px;padding:0}
 .prompt_window .make-block .top-div{padding:0 12px;height:45%}
 .prompt_window .make-block .middle-div{gap:6px;margin:0 10px;height:40%;justify-content:space-between}
 .prompt_window .make-block .middle-div button{min-width:0;width:31%;height:100px;margin:0;font-size:10px}
}
@media(max-width:700px){
  .topmenu{flex-wrap:wrap;height:auto;min-height:94px;align-content:start;font-size:13px;padding:0!important;}
  .topmenu>.group{height:46px;min-width:0;}
  .topmenu>.group:first-child{flex:1;}
  .topmenu #workbook_name_group{flex:0 1 auto;}
  .topmenu #topmenu_right_group{width:100%;height:44px;justify-content:flex-end;border-top:1px solid #ffffff35;}
  .topmenu .toolbar_btn{min-height:40px;}
  .project_name_wrapper .project_name_ticker{width:95px;}
  .project_name_wrapper .project_icon_wrapper{width:18px;}
  .topmenu .toolbar_btn.app_logo.GO_color .icon_wrapper{width:35px;}
  .topmenu .toolbar_btn.tool_tutorial,.topmenu .toolbar_btn.tool_activity{padding:0 3px;}
  .tutorial_window{left:8px!important;top:110px!important;width:calc(100vw - 16px)!important;max-height:calc(100dvh - 125px);}
  .tutorial_window iframe{width:100%;height:auto;aspect-ratio:16/9;}
  .tutorial_window .handle{height:48px;}
  .window{max-width:calc(100vw - 20px)!important;min-width:0!important;max-height:calc(100dvh - 20px);overflow:auto;}
  .whatsnew_image{max-width:45px;}
  .body_wrapper{min-height:0;min-width:0;}
}
@media(max-width:360px){.project_name_wrapper .project_name_ticker{width:65px}.topmenu .toolbar_btn.tool_file{padding:0 7px}}
/* A single editor toolbar also hosts the Next.js shell actions. */
.topmenu .app_logo{display:none!important}
.studio-home{display:inline-flex;align-items:center;align-self:stretch;padding:0 12px;color:white!important;text-decoration:none;font-family:Arial,sans-serif;font-size:15px;font-weight:700;white-space:nowrap}
.studio-toolbar-actions{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:0 8px;border-left:1px solid #ffffff45}
.studio-toolbar-button{background:#ffffff15;border:1px solid #ffffff60;border-radius:5px;color:white;min-height:36px;padding:6px 9px;font-size:12px;white-space:nowrap;cursor:pointer}
.studio-toolbar-button:hover,.studio-toolbar-button[aria-expanded=true]{background:#ffffff35}
.studio-toolbar-button:focus-visible,.studio-home:focus-visible{outline:2px solid white;outline-offset:2px}
@media(max-width:1150px){.topmenu{flex-wrap:wrap;height:auto;min-height:94px;align-content:start}.topmenu>.group{min-width:0;height:46px}.topmenu>#topmenu_right_group{width:100%;justify-content:flex-end;border-top:1px solid #ffffff35}}
@media(max-width:700px){.studio-home{padding:0 6px;font-size:12px}.studio-toolbar-actions{gap:3px;padding:0 4px;margin-left:4px}.studio-toolbar-button{font-size:11px;padding:5px;min-height:36px}.topmenu #topmenu_right_group{height:auto;min-height:44px;flex-wrap:wrap}.topmenu #topmenu_right_group .toolbar_btn{min-width:35px!important;padding-left:3px!important;padding-right:3px!important}.topmenu #topmenu_right_group .icon_caption{font-size:8px}.topmenu #topmenu_right_group .bar_divider{margin:0 3px}}
@media(max-width:700px){
 .topmenu #topmenu_right_group{flex-wrap:nowrap;justify-content:space-between;height:48px;min-height:48px}
 .topmenu #topmenu_right_group>.input_container{flex-shrink:0}
 .topmenu #topmenu_right_group .toolbar_btn{min-width:27px!important;width:27px;padding:0!important}
 .topmenu #topmenu_right_group .toolbar_btn .icon_wrapper{min-width:0;width:26px}
 .topmenu #topmenu_right_group .toolbar_btn .icon{height:16px!important}
 .topmenu #topmenu_right_group .icon_caption{font-size:7px}
 .topmenu #topmenu_right_group .bar_divider{margin:0 1px}
 .studio-toolbar-actions{margin-left:2px;padding:0 3px;gap:2px;flex-shrink:0}
 .studio-toolbar-button{font-size:10px;padding:4px;min-height:34px}
}
.editor-mindx-logo{display:inline-block;width:92px;height:29px;overflow:hidden;position:relative;vertical-align:middle}.editor-mindx-logo img{position:absolute;width:211%;height:auto;max-width:none;left:-56%;top:-71%}.studio-home{display:flex!important;align-items:center!important;gap:5px!important}.studio-home b{font-size:10px;letter-spacing:1px}
.editor-mindx-logo img{inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important}
/* Homework submissions run from when started; controller-shell actions are not hosted here. */
html[data-homework="true"] .studio-toolbar-actions{display:none!important}
