/* R5: page-first editing. Editor only; no effect on the public site. */
body.editing-site .editor-shell{grid-template-columns:minmax(0,1fr);min-height:420px;height:calc(100dvh - 174px)}
body.editing-site .editor-left,body.editing-site .editor-right{display:none;position:absolute;top:var(--editor-controls-height,44px);bottom:0;z-index:21;max-width:calc(100% - 36px);box-shadow:0 10px 30px #183c3225}
body.editing-site .editor-left{left:0;width:260px;background:#fafcfb}
body.editing-site .editor-right{right:0;width:310px;background:white}
body.editing-site.editor-left-open .editor-left,body.editing-site.editor-inspector-open .editor-right{display:block}
body.editing-site .drawer-title{display:flex;justify-content:space-between;align-items:center;margin:8px 10px 12px;padding:5px 0 10px;border-bottom:1px solid #d5e2dc}
body.editing-site .drawer-title button{min-height:34px;font-size:22px;padding:0 10px}
body.editing-site #toggle-library,body.editing-site #toggle-inspector{display:inline-block}
body.editing-site .canvas-controls{min-height:44px;position:relative;z-index:22}
body.editing-site .easy-breadcrumbs{min-height:27px;padding:3px 10px;background:#f8faf9}
.r5-modes{display:inline-flex!important;gap:0!important;border:1px solid #bacdc6;border-radius:3px;overflow:hidden;flex-wrap:nowrap!important}
.r5-modes button{border:0;border-radius:0;min-width:86px;font-size:13px;min-height:36px;white-space:nowrap}
.r5-modes button.active{background:#045f56;color:white}
.r4-writing-bar{padding:7px 10px;min-height:48px;justify-content:space-between}
#r4-edit-text{display:none!important}
#r4-done-text{font-size:12px;color:#385b50;background:#f1f6f3}
#r4-interaction-hint{font-size:12px;max-width:420px}
#r4-format-tools button{min-height:34px;min-width:34px}
body.r5-writing-active .gjs-toolbar{display:none!important}
body.r5-writing-active .gjs-resizer-h{display:none!important}
body.editing-site .canvas-footer{min-height:40px}
body.editing-site .editor-primary-actions #save-page{background:#f5f9f6}
body.editing-site .editor-savebar{font-size:12px;line-height:1.5}
body.studio-focus .editor-shell{height:calc(100dvh - 106px)}
body.editing-site .gjs-rte-toolbar{border:1px solid #aac3b6;background:#fff;color:#244b3f;box-shadow:0 4px 16px #17372a20}
@media(max-width:950px){body.editing-site .editor-shell{height:calc(100dvh - 205px)}#r4-interaction-hint{display:none}.r4-writing-bar{justify-content:flex-start}.r5-modes button{font-size:12px;min-width:72px}}
@media(max-width:620px){body.editing-site .editor-shell{height:calc(100dvh - 235px);min-height:330px}.r4-writing-bar>div{gap:4px}.r5-modes button{min-width:60px;font-size:11px}.r4-writing-bar button{padding:7px;font-size:11px}.editor-savebar{font-size:11px!important}body.studio-focus .editor-shell{height:calc(100dvh - 164px)}}

/* Minimal local fallbacks for the few legacy FontAwesome controls.
   Main GrapesJS controls already use SVG. No font/CDN dependency. */
.fa{display:inline-block;font-style:normal;font-family:system-ui,sans-serif;line-height:1}
.fa-caret-down::before{content:"▾"}.fa-caret-right::before{content:"▸"}
.fa-eye::before{content:"◉"}.fa-eye-slash::before{content:"○"}
.fa-pencil::before{content:"✎"}.fa-bars::before{content:"☰"}
.fa-cog::before{content:"⚙"}.fa-arrows-alt::before{content:"⛶"}
.fa-code::before{content:"</>"}.fa-square-o::before{content:"□"}
.fa-paint-brush::before{content:"▨"}.fa-th-large::before{content:"▦"}
