html.shared-editor-loading #appRoot,html.shared-editor-loading #authModal,html.shared-editor-readonly #loginGate{visibility:hidden!important;}
html.shared-editor-readonly #screenplayPage{cursor:text;user-select:text;-webkit-user-select:text;}
html.shared-editor-readonly .resize-handle,html.shared-editor-readonly .scene-duration-handle{display:none!important;}
html.shared-editor-readonly button:disabled{cursor:default;}
.shared-editor-error{position:fixed;inset:0;z-index:100000;background:#f2f3f4;padding:40px;font:14px/1.8 system-ui;color:#555;}

html.shared-editor-readonly:not(.shared-admin-readonly) #projectAIButton,html.shared-editor-readonly:not(.shared-admin-readonly) #projectAIChat{display:none!important;}

html.shared-admin-readonly #projectAIChat :is(.ai-chat-chips,.ai-chat-input,.ai-chat-input-wrap,.ai-chat-composer,#aiSelectionContext){display:none!important;}
