/* Mobile controls shared by the workbench and its editing dialogs. */
#mobileModuleSwitch{display:none!important}
@media(max-width:760px){
  html body.workspace-readable #mobileModuleSwitch{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;margin:0;padding:12px 14px;border:1px solid #397398;border-radius:12px;background:#092e49;color:#e8f6ff;text-align:left;cursor:pointer}
  html body.workspace-readable #mobileModuleSwitch strong{font-size:15px;line-height:1.5;color:inherit}
  html body.workspace-readable #mobileModuleSwitch span{flex-shrink:0;font-size:13px;font-weight:700;color:#8ee5f3}
  html body.workspace-readable #mobileModuleSwitch:focus-visible{outline:2px solid #8ee5f3;outline-offset:3px}
  html body.workspace-readable #moduleTabs:not(.mobile-modules-expanded){display:grid!important}
  html body.workspace-readable #moduleTabs.mobile-modules-expanded{margin-top:12px!important;max-height:none!important;overflow:visible!important}
  html body.workspace-readable #moduleTabs .module-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body.workspace-readable #moduleTabs .module-group button{grid-column:auto!important;min-height:46px!important}
  html body.workspace-readable .module-browser>.module-heading,html body.workspace-readable .module-browser>.module-context{display:none!important}
  html body.workspace-readable .inline-template-editor{scroll-margin-top:12px}
  html body.workspace-readable .mobile-dock{border-color:#285470!important;background:#061d30!important;backdrop-filter:none!important;box-shadow:0 -4px 24px #0005!important}
  html body.workspace-readable .mobile-dock button{color:#c3ddea!important;font-size:12px!important;min-height:44px}
  html body.workspace-readable .mobile-dock button.active{background:linear-gradient(135deg,#087ace,#079b9a)!important;color:#fff!important}
  html body.workspace-readable .mobile-dock button>*{color:inherit!important}
  html body.workspace-readable #promptBox textarea,.local-edit-body textarea,.psd-export-workspace textarea{font-size:16px!important}
  .local-edit-modal{padding:6px;overscroll-behavior:contain}
  .local-edit-card{width:100%;max-height:calc(100dvh - 12px);overflow:auto}
  .local-edit-card>header{position:sticky;top:0;z-index:2;padding:12px}
  .local-edit-card header button{flex:0 0 44px;width:44px;height:44px}
  .local-edit-stage{min-height:180px;max-height:42dvh;padding:10px;touch-action:pan-y}
  .local-edit-stage canvas{max-height:38dvh}
  #localEditOverlay{touch-action:none}
  .local-edit-stage-tip{max-width:calc(100% - 20px);padding:6px 9px;white-space:normal;text-align:center;font-size:11px;bottom:12px}
  .local-edit-body aside{min-width:0;padding:14px}
  .local-edit-selection-actions button{min-height:44px}
  .local-edit-submit{min-height:48px;margin-bottom:env(safe-area-inset-bottom)}
  .flow-actions{flex-wrap:wrap}.flow-actions>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
}
