/* One editor layout owner. The preview and tools have separate grid cells;
   only the tools scroll, on every breakpoint. */
#workspaceToolbar{display:none}
body.editor-v45:not(.has-media) #siteAppRoot #mobileFrameStudio{display:none!important}
body.editor-v45.has-media{overflow:hidden!important;height:100dvh!important}
body.editor-v45.has-media #siteAppRoot{height:100%!important;min-height:0!important;overflow:hidden!important}
body.editor-v45.has-media #siteAppRoot .app-header{position:relative!important;top:auto!important;flex:none!important}
body.editor-v45.has-media #siteAppRoot .app-main{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(350px,420px)!important;
  grid-template-rows:48px minmax(0,1fr)!important;
  gap:10px!important;
  width:calc(100% - 24px)!important;max-width:1560px!important;
  height:calc(var(--editor-visual-height,100dvh) - var(--editor-header-height,60px) - 20px)!important;
  min-height:0!important;
  margin:8px auto 12px!important;padding:0!important;
  align-items:stretch!important;overflow:hidden!important;
}
body.editor-v45.has-media #siteAppRoot #workspaceToolbar{
  display:flex!important;grid-column:1/-1!important;grid-row:1!important;
  align-items:center!important;gap:12px!important;min-width:0!important;
  padding:0 10px!important;background:#fff!important;border:1px solid #e1e5e8!important;border-radius:12px!important;
}
body.editor-v45.has-media #siteAppRoot #sidebarFileBar{
  display:flex!important;flex:1!important;min-width:0!important;width:auto!important;
  height:auto!important;min-height:0!important;border:0!important;margin:0!important;padding:0!important;background:transparent!important;
}
body.editor-v45.has-media #siteAppRoot .sidebar-file-info{flex:1!important;min-width:0!important}
body.editor-v45.has-media #siteAppRoot #sidebarFileName{font-size:12px!important;max-width:none!important}
body.editor-v45.has-media #siteAppRoot #sidebarUploadBtn{min-height:34px!important;font-size:11px!important;margin-left:8px!important;padding:6px 9px!important}
body.editor-v45.has-media #siteAppRoot #editorActionHeader{
  display:block!important;position:static!important;flex:0 0 auto!important;min-width:0!important;
  width:140px!important;margin:0!important;padding:0!important;border:0!important;
}
body.editor-v45.has-media #siteAppRoot #sidebarDownloadBtn{width:100%!important;min-height:34px!important;height:34px!important;border-radius:8px!important;font-size:12px!important;padding:0 12px!important}
body.editor-v45.has-media #siteAppRoot #toggleCustomiseBtn,
body.editor-v45.has-media #siteAppRoot #drawerTogglePill,
body.editor-v45.has-media #siteAppRoot #closeCustomiseBtn{display:none!important}
body.editor-v45.has-media #siteAppRoot .media-column{
  display:block!important;grid-column:1!important;grid-row:2!important;
  position:relative!important;top:auto!important;min-width:0!important;min-height:0!important;
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;overflow:hidden!important;
}
body.editor-v45.has-media #siteAppRoot #previewCard{display:none!important}
body.editor-v45.has-media #siteAppRoot #mobileFrameStudio{
  display:block!important;position:relative!important;top:auto!important;z-index:1!important;
  width:100%!important;height:100%!important;min-height:0!important;
  margin:0!important;padding:0!important;border:1px solid #dfe4e7!important;border-radius:14px!important;
  box-sizing:border-box!important;box-shadow:none!important;background:#eef0f1!important;overflow:hidden!important;
}
body.editor-v45.has-media #siteAppRoot #mobileFrameStudio .mobile-preview-pane{
  display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;
  min-height:0!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
}
body.editor-v45.has-media #siteAppRoot .mobile-frame-browser{display:none!important}
body.editor-v45.has-media #siteAppRoot .mobile-preview-head{
  display:flex!important;align-items:center!important;gap:6px!important;flex:0 0 38px!important;
  min-height:38px!important;height:38px!important;box-sizing:border-box!important;
  padding:0 12px!important;background:#fff!important;border-bottom:1px solid #e3e7e9!important;
}
body.editor-v45.has-media #siteAppRoot .mobile-preview-head b{font-size:12px!important}
body.editor-v45.has-media #siteAppRoot .mobile-preview-head>span{font-size:9px!important;color:#468367!important}
body.editor-v45.has-media #siteAppRoot #mobileOutputRatio{margin-left:auto!important;color:#727b84!important;font-size:10px!important}
.workspace-enlarge{border:1px solid #dce1e5;border-radius:6px;background:#fff;min-height:26px;padding:0 7px;color:#343b42;font-size:10px;cursor:pointer}
body.editor-v45.has-media #siteAppRoot #editorLivePreview{
  position:relative!important;top:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;
  flex:1 1 0!important;width:100%!important;height:0!important;min-width:0!important;min-height:0!important;
  box-sizing:border-box!important;padding:12px!important;margin:0!important;border:0!important;border-radius:0!important;
  overflow:hidden!important;background:#edf0f2!important;box-shadow:none!important;touch-action:pan-y!important;
}
body.editor-v45.has-media #siteAppRoot #editorLivePreview>span{display:none!important}
body.editor-v45.has-media #siteAppRoot #editorLiveCanvas{
  display:block!important;position:static!important;flex:0 0 auto!important;
  width:var(--live-canvas-width,1px)!important;height:var(--live-canvas-height,1px)!important;
  max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;
  object-fit:contain!important;transform:none!important;border-radius:0!important;
  box-shadow:0 3px 12px #1927351c!important;
}
body.editor-v45.has-media[data-editor-tab='text'] #siteAppRoot #editorLiveCanvas{touch-action:none!important}
body.editor-v45.has-media #siteAppRoot #mobileVideoControls:not(.hidden){
  display:flex!important;flex:0 0 40px!important;min-height:40px!important;height:40px!important;box-sizing:border-box!important;
  margin:0!important;padding:5px 10px!important;background:#fff!important;
}
body.editor-v45.has-media #siteAppRoot .editor-card{
  grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:column!important;
  position:relative!important;top:auto!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;
  border:1px solid #dfe4e7!important;border-radius:14px!important;box-shadow:none!important;overflow:hidden!important;
}
body.editor-v45.has-media #siteAppRoot .editor-tabs{
  position:static!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-flow:row!important;gap:3px!important;flex:0 0 48px!important;
  min-height:48px!important;height:48px!important;box-sizing:border-box!important;
  margin:0!important;padding:5px!important;background:#fff!important;border-bottom:1px solid #e4e8eb!important;
}
body.editor-v45.has-media #siteAppRoot .editor-tab{height:37px!important;min-width:0!important;padding:0 4px!important;font-size:12px!important;gap:0!important;border-radius:8px!important}
body.editor-v45.has-media #siteAppRoot .editor-tab>span{display:none!important}
body.editor-v45.has-media #siteAppRoot .editor-tab.active{background:#20272e!important;color:#fff!important}
body.editor-v45.has-media #siteAppRoot .editor-content{
  flex:1 1 0!important;min-height:0!important;min-width:0!important;height:0!important;max-height:none!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  scrollbar-gutter:stable;scroll-padding:12px;touch-action:pan-y!important;-webkit-overflow-scrolling:touch;
}
body.editor-v45.has-media #siteAppRoot .editor-panel{display:none!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:14px!important}
body.editor-v45.has-media #siteAppRoot .editor-panel.active{display:block!important}
body.editor-v45.has-media #siteAppRoot .editor-panel>.section-heading{display:flex!important}
body.editor-v45.has-media #siteAppRoot .section-heading h2{font-size:15px!important}
body.editor-v45.has-media #siteAppRoot .section-note{font-size:12px!important;line-height:1.5!important}
body.editor-v45.has-media #siteAppRoot #presetGrid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-flow:row!important;gap:9px!important;padding:0!important;overflow:visible!important;
}
body.editor-v45.has-media #siteAppRoot #presetGrid .preset{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;padding:6px!important;border-radius:10px!important}
body.editor-v45.has-media #siteAppRoot #presetGrid .preset-thumb{
  position:relative!important;display:block!important;flex:none!important;min-height:0!important;
  height:152px!important;width:100%!important;aspect-ratio:auto!important;padding:0!important;overflow:hidden!important;background:#f0f2f3!important;
}
body.editor-v45.has-media #siteAppRoot #presetGrid canvas{
  position:absolute!important;inset:7px!important;width:calc(100% - 14px)!important;height:calc(100% - 14px)!important;
  max-width:none!important;max-height:none!important;object-fit:contain!important;display:block!important;background:transparent!important;box-shadow:none!important;
}
body.editor-v45.has-media #siteAppRoot #presetGrid .preset>span{display:flex!important;min-height:28px!important;align-items:center!important;gap:4px!important}
body.editor-v45.has-media #siteAppRoot #presetGrid .preset>span b{font-size:11px!important;line-height:1.3!important;white-space:normal!important;overflow:visible!important}
body.editor-v45.has-media #siteAppRoot #presetGrid .preset>span small{font-size:9px!important}
body.editor-v45.has-media #siteAppRoot #presetGrid .preset-more{grid-column:1/-1!important;min-height:44px!important;justify-content:center!important}
body.editor-v45.has-media #siteAppRoot #presetGrid .preset-more>span{justify-content:center!important}
body.editor-v45.has-media #siteAppRoot .quick-ratio-section{margin:0 0 9px!important;padding:9px!important;border-radius:10px!important}
body.editor-v45.has-media #siteAppRoot .quick-ratio-heading{margin-bottom:7px!important}
body.editor-v45.has-media #siteAppRoot .quick-ratio-heading>div>span,
body.editor-v45.has-media #siteAppRoot .quick-ratio-heading>small{display:none!important}
body.editor-v45.has-media #siteAppRoot #ratioGrid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:4px!important;padding:0!important;overflow:visible!important;
}
body.editor-v45.has-media #siteAppRoot #ratioGrid .ratio-btn{min-width:0!important;min-height:32px!important;height:32px!important;padding:0 3px!important;font-size:11px!important;border-radius:6px!important}
body.editor-v45.has-media #siteAppRoot #ratioGrid .ratio-btn small{display:none!important}
.workspace-crop{border:1px solid #e1e5e8;border-radius:9px;padding:0 10px;margin-bottom:14px}
.workspace-crop>summary{cursor:pointer;padding:10px 0;font-size:12px;font-weight:600}
body.editor-v45.has-media #siteAppRoot #customiseDrawer{display:block!important;max-height:none!important;opacity:1!important;visibility:visible!important;overflow:visible!important;margin:0!important}
body.editor-v45.has-media #siteAppRoot .customise-drawer-inner{padding:0!important}
body.editor-v45.has-media #siteAppRoot #frameMetaControls{margin:0!important;padding:0!important;background:#fff!important;border:0!important}
.metadata-source-notice{display:flex;align-items:flex-start;gap:10px;padding:13px;margin:0 0 12px;border:1px solid #dce6e1;border-radius:10px;background:#f4f8f6;color:#285c47}
.metadata-source-notice>svg{flex:0 0 18px;margin-top:2px}
.metadata-source-notice>span{display:flex;min-width:0;flex-direction:column;gap:4px}
.metadata-source-notice b{font-size:14px;line-height:1.4}
.metadata-source-notice small{font-size:13px;line-height:1.5;color:#52675e}
body.editor-v45.has-media #siteAppRoot .metadata-fallback-notice{grid-template-columns:1fr;margin:0 0 12px;padding:12px}
body.editor-v45.has-media #siteAppRoot .metadata-fallback-notice b{font-size:14px;line-height:1.4}
body.editor-v45.has-media #siteAppRoot .metadata-fallback-notice small{font-size:13px;line-height:1.5}
body.editor-v45.has-media #siteAppRoot .brand-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.editor-v45.has-media #siteAppRoot .field input,
body.editor-v45.has-media #siteAppRoot .field select,
body.editor-v45.has-media #siteAppRoot .field textarea{min-width:0!important;width:100%!important;font-size:14px!important;min-height:40px!important;box-sizing:border-box!important}
body.editor-v45.has-media #siteAppRoot .field>span{font-size:12px!important}
body.editor-v45.has-media #siteAppRoot #videoClipEditor{position:static!important;margin:16px 0 0!important;padding:12px!important;border:1px solid #dfe4e8!important;border-radius:10px!important}
body.editor-v45.has-media #siteAppRoot #downloadOriginalBtn{display:flex!important;width:100%!important;margin-top:12px!important;min-height:42px!important}
body.editor-v45.has-media #siteAppRoot .app-footer{display:none!important}
body.editor-v45.has-media #siteAppRoot .story-template-rail{display:flex!important;overflow-x:auto!important;gap:8px!important;padding:2px 2px 8px!important}
body.editor-v45.has-media #siteAppRoot .story-template-button{flex:0 0 172px!important}
body.editor-v45.has-media #siteAppRoot .quick-template-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row!important;overflow:visible!important}
body.editor-v45.has-media #siteAppRoot #phraseSuggestions{grid-template-columns:1fr!important}

@media(min-width:1400px){
  body.editor-v45.has-media #siteAppRoot .app-main{grid-template-columns:minmax(0,1fr) 460px!important}
}
@media(max-width:759px){
  body.editor-v45.has-media #siteAppRoot .app-main{
    width:calc(100% - 12px)!important;
    height:calc(var(--editor-visual-height,100dvh) - var(--editor-header-height,60px) - 10px)!important;
    margin:4px auto 6px!important;gap:6px!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:42px minmax(0,.78fr) minmax(0,1.22fr)!important;
  }
  body.editor-v45.has-media #siteAppRoot #workspaceToolbar{padding:0 6px!important;gap:6px!important;border-radius:9px!important}
  body.editor-v45.has-media #siteAppRoot #editorActionHeader{width:78px!important}
  body.editor-v45.has-media #siteAppRoot #sidebarDownloadBtn{font-size:11px!important;padding:0 7px!important;gap:5px!important}
  body.editor-v45.has-media #siteAppRoot #sidebarDownloadBtn svg{width:14px!important}
  body.editor-v45.has-media #siteAppRoot #sidebarFileName{font-size:10px!important}
  body.editor-v45.has-media #siteAppRoot #sidebarFileBadge{font-size:8px!important;padding:3px!important}
  body.editor-v45.has-media #siteAppRoot #sidebarUploadBtn{font-size:10px!important;padding:4px 6px!important;min-height:30px!important}
  body.editor-v45.has-media #siteAppRoot #sidebarUploadBtn svg{display:none!important}
  body.editor-v45.has-media #siteAppRoot .media-column{grid-column:1!important;grid-row:2!important}
  body.editor-v45.has-media #siteAppRoot .editor-card{grid-column:1!important;grid-row:3!important;border-radius:11px!important}
  body.editor-v45.has-media #siteAppRoot .mobile-preview-head{flex-basis:30px!important;min-height:30px!important;height:30px!important;padding:0 8px!important}
  body.editor-v45.has-media #siteAppRoot #editorLivePreview{padding:7px!important}
  body.editor-v45.has-media #siteAppRoot #mobileVideoControls:not(.hidden){flex-basis:32px!important;min-height:32px!important;height:32px!important;padding:3px 7px!important}
  body.editor-v45.has-media #siteAppRoot .editor-tabs{height:44px!important;min-height:44px!important;flex-basis:44px!important}
  body.editor-v45.has-media #siteAppRoot .editor-tab{height:33px!important;font-size:11px!important}
  body.editor-v45.has-media #siteAppRoot .editor-panel{padding:10px!important}
  body.editor-v45.has-media #siteAppRoot #presetGrid .preset-thumb{height:124px!important}
  body.editor-v45.has-media #siteAppRoot .field input,
  body.editor-v45.has-media #siteAppRoot .field select,
  body.editor-v45.has-media #siteAppRoot .field textarea{font-size:16px!important}
  body.editor-v45.has-media #siteAppRoot #textLayerEditor{margin-top:10px!important}
  body.editor-v45.has-media.editor-keyboard-open #siteAppRoot .app-main{grid-template-rows:36px minmax(70px,.55fr) minmax(0,1.45fr)!important}
  body.editor-v45.has-media.editor-keyboard-open #siteAppRoot .mobile-preview-head{display:none!important}
}
@media(min-width:760px) and (max-width:1050px){
  body.editor-v45.has-media #siteAppRoot .app-main{grid-template-columns:minmax(0,1fr) minmax(330px,45%)!important}
  body.editor-v45.has-media #siteAppRoot #presetGrid .preset-thumb{height:130px!important}
}
@media(min-width:600px) and (max-width:759px) and (max-height:520px){
  body.editor-v45.has-media #siteAppRoot .app-main{grid-template-columns:minmax(0,1fr) minmax(290px,48%)!important;grid-template-rows:38px minmax(0,1fr)!important}
  body.editor-v45.has-media #siteAppRoot .editor-card{grid-column:2!important;grid-row:2!important}
}
