/* Every rule belongs to the mobile editor; the desktop presentation is untouched. */
.mobile-editor-sheet[hidden],.mobile-editor-launcher[hidden],.mobile-editor-pane[hidden]{display:none!important}
.mobile-editor-sheet,.mobile-editor-launcher{display:none}
body.mobile-portrait .mobile-editor{--me-top:var(--safe-top,env(safe-area-inset-top,0px));--me-bottom:var(--safe-bottom,env(safe-area-inset-bottom,0px));--me-left:var(--safe-left,env(safe-area-inset-left,0px));--me-right:var(--safe-right,env(safe-area-inset-right,0px));height:100dvh;max-height:100%;overflow:hidden;box-sizing:border-box}
body.mobile-portrait .mobile-editor :is(.editor-toolbar,.community-toolbar){display:grid;grid-template-columns:1fr;gap:4px;flex:none;min-height:0;padding:calc(10px + var(--me-top)) calc(12px + var(--me-right)) 7px calc(12px + var(--me-left));background:#142d38fa}
body.mobile-portrait .mobile-editor :is(.editor-identity,.community-toolbar>.eyebrow){display:none}
body.mobile-portrait .mobile-editor :is(.editor-draft-title,#community-title){display:block;width:100%;max-width:none;min-width:0;flex:none;font-size:13px;line-height:20px;margin:0;padding:0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:24px;box-sizing:border-box}
body.mobile-portrait .mobile-editor :is(.editor-actions,.community-toolbar>nav){display:grid;grid-template-columns:44px 44px 1fr 1fr 54px;gap:5px;width:100%;min-width:0}
body.mobile-portrait .mobile-editor :is(.editor-actions,.community-toolbar>nav)>button{display:none}
body.mobile-portrait .mobile-editor :is(.editor-actions,.community-toolbar>nav)>button[data-mobile-label]{display:block;min-width:0;width:auto;min-height:44px;height:44px;padding:4px;font-size:0;box-sizing:border-box}
body.mobile-portrait .mobile-editor [data-mobile-label]::after{content:attr(data-mobile-label);font-size:11px}
body.mobile-portrait .mobile-editor :is(.editor-workspace,.community-workspace){display:flex;flex:1;min-height:0;min-width:0;overflow:hidden;margin-bottom:0}
body.mobile-portrait .mobile-editor :is(.editor-library,.editor-inspector,.community-palette,.community-properties){display:none}
body.mobile-portrait .mobile-editor :is(.editor-viewport,.community-viewport){display:block;flex:1;width:100%;min-width:0;min-height:0;touch-action:none}
body.mobile-portrait .mobile-editor :is(.editor-camera-help,.community-camera-note){display:none}
body.mobile-portrait .mobile-editor :is(.editor-view-tools,.community-camera-tools){left:calc(12px + var(--me-left));top:8px;gap:5px;display:flex;max-width:calc(100% - 24px);flex-wrap:wrap}
body.mobile-portrait .mobile-editor :is(.editor-view-tools,.community-camera-tools)>button{min-height:44px;min-width:44px;padding:7px 10px;font-size:11px}
body.mobile-portrait .mobile-editor :is(#editor-zoom-in,#editor-zoom-out,#editor-face,#editor-profile){display:none}
body.mobile-portrait .mobile-editor #editor-fit{font-size:0}
body.mobile-portrait .mobile-editor #editor-fit::after{content:'Tout voir';font-size:11px}
body.mobile-portrait .mobile-editor :is(.editor-footer,.community-footer){flex:none;height:30px;min-height:30px;max-height:30px;padding:5px calc(12px + var(--me-right)) 5px calc(12px + var(--me-left));font-size:10px;overflow:auto;margin-bottom:calc(56px + var(--me-bottom));box-sizing:border-box}
body.mobile-portrait .mobile-editor-launcher{display:block;position:absolute;bottom:calc(8px + var(--me-bottom));left:calc(12px + var(--me-left));right:calc(12px + var(--me-right));height:44px;font-size:13px;background:#254451;border:1px solid #cfb98788;border-radius:10px;z-index:8}
body.mobile-portrait .mobile-editor-sheet{display:flex;flex-direction:column;position:absolute;bottom:calc(56px + var(--me-bottom));left:var(--me-left);right:var(--me-right);height:min(36dvh,320px);max-height:calc(100% - var(--me-top) - var(--me-bottom) - 150px);z-index:7;background:#19313dfc;border:1px solid #9aada54d;border-radius:18px 18px 0 0;box-shadow:0 -8px 24px #08162066;overflow:hidden}
body.mobile-portrait .mobile-editor[data-sheet=partial] :is(.editor-workspace,.community-workspace){margin-bottom:min(36dvh,320px)}
body.mobile-portrait .mobile-editor[data-sheet=full] .mobile-editor-sheet{height:calc(100% - var(--me-top) - var(--me-bottom) - 150px)}
body.mobile-portrait .mobile-editor[data-sheet=full] :is(.editor-workspace,.community-workspace){margin-bottom:0}
body.mobile-portrait .mobile-editor-handle{display:flex;justify-content:space-between;align-items:center;position:relative;padding:8px 12px 2px;min-height:44px;touch-action:none}
body.mobile-portrait .mobile-editor-handle::before{content:'';position:absolute;top:5px;left:calc(50% - 16px);width:32px;height:3px;border-radius:2px;background:#9cafa7}
body.mobile-portrait .mobile-editor-handle button{min-height:44px;font-size:11px;padding:5px 9px;background:transparent}
body.mobile-portrait .mobile-editor-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:0 8px 6px}
body.mobile-portrait .mobile-editor-tabs button{min-height:44px;padding:5px 2px;font-size:10px;min-width:0}
body.mobile-portrait .mobile-editor-tabs [aria-selected=true]{border-color:#d6bc8b;background:#38545e;color:#ffe5b5}
body.mobile-portrait .mobile-editor-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:10px 12px 18px;touch-action:pan-y}
body.mobile-portrait .mobile-editor-pane{display:grid;gap:10px;min-width:0}
body.mobile-portrait .mobile-editor-pane :is(.editor-properties,.community-properties){display:flex;position:static;overflow:visible;padding:0;border:0;background:transparent}
body.mobile-portrait .mobile-editor-pane :is(button,input,select){min-height:44px;max-width:100%;box-sizing:border-box}
body.mobile-portrait .mobile-editor-pane input:not([type=checkbox]),body.mobile-portrait .mobile-editor-pane select{font-size:16px}
body.mobile-portrait .mobile-editor-pane :is(pre,p,output){overflow-wrap:anywhere;white-space:pre-wrap}
body.mobile-portrait .mobile-editor-pane :is(.community-categories,.community-tools,.mobile-campaign-categories,.mobile-campaign-palette){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}
body.mobile-portrait .mobile-editor-pane .community-categories{grid-template-columns:repeat(3,minmax(0,1fr))}
body.mobile-portrait .mobile-editor-pane .community-tools button{min-height:50px;font-size:12px;padding:8px}
body.mobile-portrait .mobile-editor-pane .community-selection-tools{padding:0;border:0}
body.mobile-portrait .mobile-editor .community-tutorial{left:12px;right:12px;bottom:calc(65px + var(--me-bottom));width:auto;max-width:none;padding:12px;z-index:9}
body.mobile-portrait .mobile-editor .community-help-panel{inset:calc(105px + var(--me-top)) 12px calc(65px + var(--me-bottom));max-height:none;padding:18px;z-index:10}
body.mobile-portrait.testing-level .editor-testbar{top:calc(env(safe-area-inset-top,0px) + 8px);left:calc(env(safe-area-inset-left,0px) + 12px);right:calc(env(safe-area-inset-right,0px) + 12px);max-width:none;padding:6px;font-size:10px;display:flex;gap:5px;flex-wrap:wrap}
body.mobile-portrait.testing-level .editor-testbar button{min-height:44px;font-size:11px}
@media(max-height:650px){body.mobile-portrait .mobile-editor-sheet{height:46dvh}body.mobile-portrait .mobile-editor[data-sheet=partial] :is(.editor-workspace,.community-workspace){margin-bottom:46dvh}}
