/* LuckyStudio V5 -> editor handoff. Only editor view; never wizard/templates. */
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 3px;
  border-radius: 14px;
  border: 1px solid rgba(111,181,141,.23);
  background: rgba(10,38,25,.09);
}
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button {
  cursor: pointer;
  padding: 9px 11px;
  min-height: 36px;
  font: 740 11px/1.2 Inter,system-ui,sans-serif;
  border: 1px solid #a7cdb4;
  border-radius: 10px;
  color: #1d4d32;
  background: #f9fff9;
  white-space: nowrap;
}
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions .lse-v5-primary {
  background: #176241;
  color: #f6fff8;
  border-color: #176241;
}
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button[aria-current="true"] {
  box-shadow: 0 0 0 1px rgba(87,198,131,.6);
}
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button[aria-pressed="true"] {
  background: #dff4e6;
  color: #173e2a;
  border-color: #9ad8ad;
}
body[data-lw-studio-v2][data-studio-screen="editor"] #one-status {
  max-width: 42ch;
  text-wrap: pretty;
  line-height: 1.45;
}
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button:hover {
  filter: brightness(1.08);
}
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button:focus-visible {
  outline: 2px solid #267348;
  outline-offset: 2px;
}
body.studio-start-active.one-working[data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open .one-editor-panel {
  height: calc(100dvh - 175px) !important;
  min-height: 550px !important;
  max-height: none !important;
}
body.studio-start-active.one-working[data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open .one-editor-panel iframe {
  display: block;
  width: 100%;
  height: 100% !important;
}
@media(max-width:1050px) {
 body.studio-start-active.one-working[data-studio-screen="editor"] #one-app.lcw-enabled .one-app-bar {
   flex-wrap: wrap;
   height: auto !important;
   min-height: 53px !important;
   gap: 7px !important;
 }
 body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button {
   min-height: 35px;
   padding: 8px;
 }
}
@media(max-width:650px) {
 body.studio-start-active.one-working[data-studio-screen="editor"] #one-app.lcw-enabled .one-app-bar {
   padding: 6px 8px !important;
 }
 body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions { gap: 3px; }
 body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button {
   font-size: 10px;
   padding: 8px 6px;
 }
 body.studio-start-active.one-working[data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open .one-editor-panel {
   height: 73dvh !important;
   min-height: 470px !important;
 }
}
@media (prefers-reduced-motion: reduce) {
 body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button {transition:none;}
}

/* V5's old workbench imposed a 360px column on the app. The native
   simple editor must use the whole canvas after the wizard handoff. */
body.studio-start-active.one-working[data-studio-screen="editor"]
  #one-app.lcw-enabled.lcw-native-open {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0,1fr) !important;
  height: calc(100dvh - 70px) !important;
  width: 100% !important;
  max-width: none !important;
  overflow: hidden !important;
}

body[data-studio-screen="editor"] #lse-v5-actions{flex-wrap:wrap}
body[data-studio-screen="editor"] #lse-v5-actions button{min-height:44px!important}
body[data-studio-screen="editor"] #lse-v5-actions .vx-consent-settings{font-size:11px;padding:8px;border-color:#6e967d}
body[data-studio-screen="editor"] #one-exit{display:none!important}
body[data-studio-screen="editor"] #one-app.lcw-native-open .one-app-bar{background:linear-gradient(125deg,#071c15,#123326)!important;color:#e5f7e9!important;border-bottom:1px solid #3b7352}
body[data-studio-screen="editor"] #one-app.lcw-native-open .one-app-bar button{border-color:#4a7e5b!important}
body[data-lw-studio-v2].studio-start-active.one-working[data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open .one-app-bar{background:linear-gradient(125deg,#071c15,#123326)!important;color:#e5f7e9!important}
body.studio-one.studio-start-active.one-working[data-lw-studio-v2][data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open .one-app-heading strong{color:#eefbf1!important}
body.studio-one.studio-start-active.one-working[data-lw-studio-v2][data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open .one-app-heading strong span{color:#9af57b!important}
body.studio-one.studio-start-active.one-working[data-lw-studio-v2][data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open .one-switch{background:#102c20!important;border-color:#447857!important}
body.studio-one.studio-start-active.one-working[data-lw-studio-v2][data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open .one-switch button{color:#d7eddd!important;background:transparent!important}
body.studio-one.studio-start-active.one-working[data-lw-studio-v2][data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open .one-switch button[aria-pressed="true"]{background:#21623e!important;color:#fff!important}
@media(max-width:650px){
 body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
 body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button{font-size:12px!important}
}
body.studio-start-active.one-working[data-studio-screen="editor"]
  #one-app.lcw-enabled.lcw-native-open .one-app-bar {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
}
body.studio-start-active.one-working[data-studio-screen="editor"]
  #one-app.lcw-enabled.lcw-native-open .one-editor-panel:not([hidden]) {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.studio-start-active.one-working[data-studio-screen="editor"]
  #one-app.lcw-enabled.lcw-native-open #lcw-workbench {
  display: none !important;
}
@media(max-width:750px) {
 body.studio-start-active.one-working[data-studio-screen="editor"]
  #one-app.lcw-enabled.lcw-native-open {
   height: calc(100dvh - 66px) !important;
   grid-template-rows: auto minmax(0,1fr) !important;
 }
 body.studio-start-active.one-working[data-studio-screen="editor"]
  #one-app.lcw-enabled.lcw-native-open .one-editor-panel:not([hidden]) {
   min-height: 0 !important;
   max-height: none !important;
 }
}

/* Editor chrome keeps primary and selected actions legible in every state. */
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button{transition:border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease}
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button[aria-current="true"]{box-shadow:inset 0 0 0 1px #71d399,0 5px 15px -10px #70df9e}
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button:disabled{opacity:.55;cursor:not-allowed;transform:none!important}
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button:focus-visible{outline:3px solid #b9ffcc!important;outline-offset:3px}
@media(hover:hover) and (pointer:fine){body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button:not(:disabled):hover{box-shadow:0 8px 18px -13px #84f2a9;transform:translateY(-1px)}}
body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button:not(:disabled):active{transform:translateY(1px)}
@media(prefers-reduced-motion:reduce){body[data-lw-studio-v2][data-studio-screen="editor"] #lse-v5-actions button{transition:none!important;transform:none!important}}
/* Give the workbench a clear primary action and quieter secondary controls. */
body.studio-one.studio-start-active.one-working[data-lw-studio-v2][data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open #lse-v5-actions{background:#0a241a!important;border:1px solid #356b50!important;box-shadow:inset 0 1px #c4ffdb12,0 10px 24px -20px #000b}
body.studio-one.studio-start-active.one-working[data-lw-studio-v2][data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open #lse-v5-actions button{background:#143a29!important;color:#e6f9eb!important;border-color:#47785a!important;box-shadow:inset 0 1px #d6ffe216!important}
body.studio-one.studio-start-active.one-working[data-lw-studio-v2][data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open #lse-v5-actions button.lse-v5-primary{background:#a5edbe!important;color:#102b1c!important;border-color:#bcf7cd!important;box-shadow:inset 0 1px #ffffff99,0 7px 20px -13px #a1ffc2!important}
body.studio-one.studio-start-active.one-working[data-lw-studio-v2][data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open #lse-v5-actions button[aria-current="true"]{border-color:#b4ffd0!important;box-shadow:inset 0 0 0 1px #b4ffd0!important}
@media(hover:hover) and (pointer:fine){body.studio-one.studio-start-active.one-working[data-lw-studio-v2][data-studio-screen="editor"] #one-app.lcw-enabled.lcw-native-open #lse-v5-actions button:not(:disabled):hover{border-color:#c1ffd3!important;filter:brightness(1.12)}}
