/* Scoped editor chrome; the generated website keeps its own appearance. */
/* Keep authored z-index values inside the canvas. Editor chrome stays above
   the page and below Ask AI (80/90), without changing fixed/sticky geometry. */
#siteShell{isolation:isolate}
#easyPrototypeOutline{position:fixed;box-sizing:border-box;border:1px dashed #fb805d;border-radius:14px;z-index:72;pointer-events:none}
#easyPrototypeOutline>.element-gear-trigger{position:absolute;right:3px;top:3px;opacity:1;pointer-events:auto;transform:none;z-index:2}
#easyPrototypeMenu{position:fixed;display:grid;z-index:73;max-height:calc(100vh - 16px);overflow:auto;box-sizing:border-box;pointer-events:auto;font-family:Manrope,Inter,system-ui,sans-serif;line-height:1.3}
#easyPrototypeMenu.element-gear-menu{width:200px}
#easyPrototypeMenu button{touch-action:manipulation}
#easyPrototypeMenu .text-style-panel{right:auto;top:auto;width:250px;max-width:calc(100vw - 16px);margin:0;gap:11px;opacity:1;visibility:visible;pointer-events:auto}
#easyPrototypeMenu .text-style-colors{display:flex;flex-wrap:wrap;gap:6px}
#easyPrototypeMenu .text-style-colors button{width:24px;height:24px;border:1px solid #ccc;border-radius:50%;padding:0}
#easyPrototypeMenu .text-style-foot{display:flex;justify-content:space-between;gap:10px}
/* Full browser colour picker and exact HEX, alongside the site swatches. */
#easyPrototypeMenu .text-style-custom{display:grid;gap:6px;margin-top:5px}
#easyPrototypeMenu .text-style-custom>label{font:500 11px/1.4 Manrope,Inter,system-ui,sans-serif;color:#71777d;cursor:pointer}
#easyPrototypeMenu .text-style-custom-row{display:grid;grid-template-columns:34px minmax(0,1fr) 32px;gap:6px;align-items:center}
#easyPrototypeMenu .text-style-custom-row input,#easyPrototypeMenu .text-style-custom-row button{box-sizing:border-box;min-width:0;height:32px;border:1px solid #dfe2e6;border-radius:8px;background:#fff;color:#252a32;font:500 12px/1 Manrope,Inter,system-ui,sans-serif}
#easyPrototypeMenu input[type=color]{width:34px;padding:3px;cursor:pointer}
#easyPrototypeMenu input[type=color]::-webkit-color-swatch-wrapper{padding:0}
#easyPrototypeMenu input[type=color]::-webkit-color-swatch{border:0;border-radius:4px}
#easyPrototypeMenu input[type=color]::-moz-color-swatch{border:0;border-radius:4px}
#easyPrototypeMenu input[data-text-color-hex]{width:100%;padding:0 8px;text-transform:uppercase;letter-spacing:.035em}
#easyPrototypeMenu input[data-text-color-hex][aria-invalid=true]{border-color:#b44b42}
#easyPrototypeMenu .text-style-custom-row button{padding:0;cursor:pointer}
#easyPrototypeMenu .text-style-custom-row :focus-visible{outline:2px solid #2d4579;outline-offset:2px}
#easyPrototypeMenu .text-style-custom-row :disabled{opacity:.45;cursor:wait}
/* The body-hosted toolbar gets left/top from manual(). Clear the legacy
   right anchor so it fits its buttons instead of spanning the viewport. */
.easy-prototype-inline.text-inline-actions{position:fixed;right:auto;bottom:auto;width:max-content;min-width:0;max-width:calc(100vw - 16px);box-sizing:border-box;display:flex;align-items:center;flex-wrap:nowrap;z-index:74;gap:6px;padding:5px;background:#fff;border:1px solid #ddd;border-radius:10px;box-shadow:0 8px 25px #0002}
.easy-prototype-inline.text-inline-actions>button{flex:0 0 auto;height:32px;font:500 9px/1.2 Manrope,Inter,system-ui,sans-serif;white-space:nowrap}
#easyPrototypeAdvancedToggle{display:flex!important;justify-content:space-between!important;gap:24px!important;align-items:center}
#easyPrototypeAdvancedToggle>span{font-size:18px;line-height:1}
/* The body-hosted outline is also the manual-edit focus indicator. Only the
   temporary manual target suppresses its native outline; authored borders stay. */
body.easy-creator-edit-on #website .creator-page [contenteditable=true][data-easy-prototype-manual="true"]{outline:none!important;cursor:text}
#easyPrototypeOutline[data-manual="true"]>.element-gear-trigger{display:none}
body.easy-creator-edit-on #website .easy-media-edit-icon,body.easy-creator-edit-on #website .easy-section-edit-badge{display:none!important}
.easy-creator-modal{background:rgba(13,14,17,.14)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.easy-ai-work-dots i{width:4px!important;height:4px!important}
.turn.ai .easy-ai-thinking-bubble{padding:10px 10px!important;min-height:17px!important}
@media(prefers-reduced-motion:reduce){#easyPrototypeOutline .element-gear-trigger{transition:none}}

#utilityMoreWrap #openAdvancedCode{display:none!important}

/* Preserve the prototype label contrast when the conversation uses night mode. */
body.studio-theme-night .turn.ai .bubble small{color:#aaa69f!important}

/* Editing has a visible canvas around the authored page. The preview uses
   the full desktop width; fixed 390/834px device previews keep their contract. */
/* Keep the stage behind both modes so the closing gutters never flash dark.
   Transition on the shared selector: both directions and interrupted toggles
   ease from the current width without scaling the authored page or its text. */
#siteShell:not(.tablet-preview):not(.mobile-preview){
  background-color:#f6f6f4!important;
  background-image:radial-gradient(circle,rgba(29,32,35,.12) .8px,transparent .8px)!important;
  background-size:16px 16px!important;
  transition:padding-left 900ms cubic-bezier(.65,0,.35,1),padding-right 900ms cubic-bezier(.65,0,.35,1);
}
body.easy-creator-edit-on #siteShell:not(.tablet-preview):not(.mobile-preview){
  padding-left:clamp(16px,5vw,104px)!important;
  padding-right:clamp(16px,5vw,104px)!important;
}
body:not(.easy-creator-edit-on) #siteShell:not(.tablet-preview):not(.mobile-preview){
  padding-left:0!important;
  padding-right:0!important;
}
@media(max-width:640px){
  body.easy-creator-edit-on #siteShell:not(.tablet-preview):not(.mobile-preview){padding-left:16px!important;padding-right:16px!important}
}
@media(prefers-reduced-motion:reduce){
  #siteShell:not(.tablet-preview):not(.mobile-preview){transition:none}
}

/* R1.7.11: compact Edit / Preview selector in the existing system bar.
   The former ON/OFF slide control is retained in the release rollback archive. */
#studioUtility .system-mode-control{
  position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;
  flex:0 0 140px;width:140px;height:28px;box-sizing:border-box;padding:2px;
  border:1px solid rgba(255,255,255,.14);border-radius:6px;background:transparent;
}
#studioUtility .system-mode-control::before{
  content:"";position:absolute;top:2px;bottom:2px;left:2px;
  width:calc((100% - 4px)/2);border-radius:4px;background:#39393c;
  pointer-events:none;transform:translateX(0);
  transition:transform 220ms cubic-bezier(.4,0,.2,1);
}
#studioUtility .system-mode-control[data-mode="preview"]::before{transform:translateX(100%)}
#studioUtility .system-mode-control>.system-mode-option{
  position:relative;z-index:1;display:flex;align-items:center;justify-content:center;
  min-width:0;height:100%;padding:0 8px;border:0;border-radius:4px;
  background:transparent!important;color:#aaaab0!important;
  font:400 9px/1 Manrope,Inter,system-ui,sans-serif;letter-spacing:0;white-space:nowrap;
  cursor:pointer;transition:color 160ms ease;touch-action:manipulation;
}
#studioUtility .system-mode-control>.system-mode-option:hover,
#studioUtility .system-mode-control>.system-mode-option[aria-pressed="true"]{color:#fff!important}
#studioUtility .system-mode-control>.system-mode-option:focus-visible{outline:1px solid #fff;outline-offset:3px}
/* Keep every control reachable on narrow screens without shrinking labels. */
@media(max-width:600px){
  #studioUtility.studio-system-bar{height:76px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr 1fr}
  #studioUtility>.system-bar-left{grid-row:1;grid-column:1}
  #studioUtility>.system-bar-view{grid-row:1;grid-column:2;justify-self:end}
  #studioUtility>.system-bar-right{grid-row:2;grid-column:1 / -1;justify-self:end}
  #siteShell.with-system-bar{height:calc(100% - 76px)!important}
  #chatMini{bottom:90px}
  #regenerationVeil{bottom:76px}
  html body.composition-v1-system-bar-active.wireframe-lab-preproject-active .wireframe-lab-standalone{bottom:76px!important}
}
@media(prefers-reduced-motion:reduce){
  #studioUtility .system-mode-control::before,
  #studioUtility .system-mode-control>.system-mode-option{transition:none}
}
