/* ROXY 0.4: always discoverable inside LuckyStudio shell, both editors.
   Compact when closed, never occupies iframe workspace by default. */
body.studio-one .roxy-dock{
 position:fixed;z-index:1300;right:18px;bottom:18px;width:auto;
 font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;pointer-events:none;
}
body.studio-one .roxy-dock[hidden],body.studio-one .roxy-panel[hidden]{display:none!important}
body.studio-one .roxy-dock>*,body.studio-one .roxy-panel>*{pointer-events:auto}
body.studio-one .roxy-launch{
 pointer-events:auto;position:relative;display:flex;align-items:center;gap:9px;
 margin-left:auto;min-height:52px;padding:5px 15px 5px 5px;
 color:#eaffec;background:#092e23;border:1px solid #45d591;
 border-radius:100px;box-shadow:0 12px 34px #00170e88,0 0 0 3px #58f69a19;
 cursor:pointer;font:850 14px/1 Inter,system-ui,sans-serif;letter-spacing:.06em;
 transition:transform .2s ease,box-shadow .2s ease
}
body.studio-one .roxy-launch:hover{transform:translateY(-2px);box-shadow:0 14px 37px #00170eaa,0 0 0 4px #58f69a36}
body.studio-one .roxy-launch.is-open{background:#18543b}
body.studio-one .roxy-avatar{width:40px;height:40px;object-fit:cover;border-radius:50%;display:block}
body.studio-one .roxy-launch-ping{width:7px;height:7px;border-radius:50%;background:#7bffc0;box-shadow:0 0 10px #67ffae}
body.studio-one .roxy-panel{
 pointer-events:auto;display:flex;flex-direction:column;gap:12px;
 width:min(380px,calc(100vw - 24px));max-height:min(74dvh,690px);overflow-y:auto;overscroll-behavior:contain;
 margin-bottom:12px;padding:17px 17px 15px;
 border-radius:20px;background:linear-gradient(145deg,#102e25,#091b17 80%);
 border:1px solid #427d5d;color:#e9fff1;
 box-shadow:0 28px 70px #000d09cc,0 2px 0 #b6ffd125 inset;
 scrollbar-color:#51936e #0b261d;
}
body.studio-one .roxy-head{display:flex;align-items:center;gap:12px}
body.studio-one .roxy-face{width:55px;height:55px;object-fit:cover;border-radius:14px;border:1px solid #64da9c}
body.studio-one .roxy-head-copy{display:grid;gap:3px;min-width:0}
body.studio-one .roxy-head-copy strong{font:900 23px/1 Inter,system-ui,sans-serif;letter-spacing:-.045em;color:#d2ffe3}
body.studio-one .roxy-head-copy span{font:600 11px/1.4 Inter,system-ui,sans-serif;color:#a1ceb1}
body.studio-one .roxy-close{
 margin-left:auto;align-self:start;border:1px solid #426957;background:#1b4435;color:#eaffee;
 width:34px;height:34px;min-width:34px;border-radius:10px;cursor:pointer;
 font:700 22px/1 Inter,system-ui,sans-serif
}
body.studio-one .roxy-welcome,body.studio-one .roxy-context,
body.studio-one .roxy-disclaimer,body.studio-one .roxy-success,body.studio-one .roxy-empty{
 margin:0;color:#d8f7df;font:500 13px/1.55 Inter,system-ui,sans-serif;
}
body.studio-one .roxy-context{
 padding:11px 12px;border-radius:11px;border:1px solid #39684d;
 background:#153b2a;color:#a7ffce;font-weight:740;letter-spacing:.003em
}
body.studio-one .roxy-generate{
 min-height:44px;padding:11px 15px;border:1px solid #61ffc0;border-radius:11px;cursor:pointer;
 background:linear-gradient(120deg,#baffc3,#54ef9e);color:#0b2c20;
 font:850 13px/1.2 Inter,system-ui,sans-serif;box-shadow:0 9px 19px #25ff891b;
}
body.studio-one .roxy-generate:hover:not(:disabled){filter:brightness(1.08)}
body.studio-one :is(.roxy-generate,.roxy-secondary):disabled{opacity:.5;cursor:not-allowed}
body.studio-one .roxy-results{display:grid;gap:10px;min-width:0}
body.studio-one .roxy-results:empty{display:none}
body.studio-one .roxy-results h3{
 margin:4px 0 0;color:#c1ffdf;font:800 15px/1.3 Inter,system-ui,sans-serif
}
body.studio-one .roxy-design-card{
 border:1px solid #315945;border-radius:13px;padding:13px;
 background:#163829;display:grid;gap:6px
}
body.studio-one .roxy-card-role{
 display:inline-flex;width:max-content;padding:4px 8px;
 color:#122b20;background:#c0facd;border-radius:6px;
 text-transform:uppercase;letter-spacing:.08em;font:900 10px/1.2 Inter,system-ui,sans-serif;
}
body.studio-one .roxy-design-card strong{font:800 15px/1.3 Inter,system-ui,sans-serif;color:#f3fff4}
body.studio-one .roxy-design-card p{margin:0;color:#b9d8c8;font:500 12px/1.55 Inter,system-ui,sans-serif}
body.studio-one .roxy-design-card button{
 width:max-content;max-width:100%;min-height:34px;margin-top:2px;padding:7px 10px;
 background:#25553b;color:#e9ffef;border:1px solid #66c88f;border-radius:8px;
 cursor:pointer;font:800 11px Inter,system-ui,sans-serif
}
body.studio-one .roxy-design-card button:hover{background:#387c55}
body.studio-one .roxy-actions{display:flex;gap:7px;flex-wrap:wrap}
body.studio-one .roxy-secondary{
 flex:1 1 130px;min-height:35px;padding:7px 10px;background:#123224;
 color:#d5eedc;border:1px solid #487b5c;border-radius:8px;cursor:pointer;
 font:720 11px/1.2 Inter,system-ui,sans-serif
}
body.studio-one .roxy-disclaimer{
 color:#9cb9a6;font-size:10px;border-top:1px solid #356046;padding-top:10px;
}
body.studio-one :is(.roxy-launch,.roxy-close,.roxy-generate,.roxy-secondary,.roxy-design-card button):focus-visible{
 outline:3px solid #a4ffbd;outline-offset:2px;
}
@media(max-width:680px){
 body.studio-one .roxy-dock{right:9px;bottom:9px}
 body.studio-one .roxy-launch{padding:3px 10px 3px 3px;min-height:45px;font-size:11px;gap:5px}
 body.studio-one .roxy-avatar{width:36px;height:36px}
 body.studio-one .roxy-panel{width:calc(100vw - 18px);max-height:70dvh;margin-bottom:7px;padding:13px}
 body.studio-one .roxy-face{width:47px;height:47px}
}
@media(prefers-reduced-motion:reduce){
 body.studio-one .roxy-launch{transition:none}
 body.studio-one .roxy-launch:hover{transform:none}
}


/* ROXY / LuckyDigital — Studio portrait edition.
   Same approved concept portrait as the public LuckyWeb guide. */
body.studio-one .roxy-dock{
 z-index:1600;right:clamp(10px,1.3vw,22px);bottom:clamp(10px,1.3vw,22px);
 --rx-lime:#a9fab2;--rx-forest:#0d261e;--rx-ink:#e9f6eb;--rx-line:#427b58;
}
body.studio-one .roxy-launch{
 background:linear-gradient(115deg,#112f26,#0a1b18);
 border:1px solid #90eeb2;box-shadow:0 16px 40px #010c08a6,0 0 0 3px #5eff9620;
 min-height:60px;gap:11px;padding:5px 16px 5px 5px;
 font:900 14px/1 Inter,system-ui,sans-serif;letter-spacing:.12em;
}
body.studio-one .roxy-launch .roxy-avatar{
 width:47px;height:47px;border:1px solid #9ff1b1;background:#173b2d;
 object-position:center 32%;
}
body.studio-one .roxy-launch-ping{
 background:transparent;box-shadow:none;width:6px;height:6px;
 border:1px solid #a7edbc;opacity:.85;
}
body.studio-one .roxy-panel{
 position:relative;isolation:isolate;width:min(455px,calc(100vw - 20px));
 max-height:min(81dvh,850px);gap:14px;
 background:linear-gradient(170deg,#132f26 0%,#0a1918 52%,#091b17 100%);
 border:1px solid #518e6b;border-radius:20px 20px 8px 20px;
 padding:0 0 15px;box-shadow:0 30px 80px #000c09ed;
 overscroll-behavior:contain;overflow-y:auto;overflow-x:hidden;
 scrollbar-color:#568b6b #10271f;
}
body.studio-one .roxy-panel:before{
 content:"";position:absolute;inset:0 0 auto;height:200px;pointer-events:none;z-index:-1;
 background:radial-gradient(ellipse at 15% 0%,#54bc7954,transparent 65%),linear-gradient(125deg,#183e2b,#0d211b);
}
body.studio-one .roxy-panel>*:not(.roxy-head){margin-inline:18px}
body.studio-one .roxy-head{
 display:grid;grid-template-columns:92px 1fr 36px;align-items:center;gap:13px;
 padding:15px 16px;background:#0d241e;border-bottom:1px solid #4a785e;
 min-height:128px;margin:0;
}
body.studio-one .roxy-face-box{
 width:92px;height:108px;position:relative;
 background:linear-gradient(135deg,#154c32,#0b1b19);
 border:1px solid #5b936a;border-radius:14px 14px 5px 14px;
 overflow:hidden;box-shadow:0 10px 25px #0008;
}
body.studio-one .roxy-face{
 width:100%;height:100%;border:none;border-radius:0;
 object-fit:cover;object-position:center 19%;
 display:block;filter:saturate(1.04) contrast(1.05);
}
body.studio-one .roxy-face-box:after{
 content:"";position:absolute;inset:auto 0 0;height:3px;
 background:linear-gradient(90deg,#66d88b,#c1ffb9);
}
body.studio-one .roxy-head-copy{gap:6px}
body.studio-one .roxy-kicker{
 color:#a0d7b3;font:850 9px/1.3 Inter,system-ui,sans-serif;
 letter-spacing:.1em;text-transform:uppercase;
}
body.studio-one .roxy-head-copy strong{
 color:#e9ffdf;font:950 34px/.96 Inter,system-ui,sans-serif;letter-spacing:-.055em;
}
body.studio-one .roxy-head-copy .roxy-subline{
 color:#d2e7d5;font:600 12px/1.35 Inter,system-ui,sans-serif;
}
body.studio-one .roxy-close{
 margin:0;align-self:start;background:#1c4433;color:#f0ffed;
 border-radius:8px;width:36px;height:36px;min-width:36px;
}
body.studio-one .roxy-welcome{
 font-size:13px;line-height:1.6;color:#e4f4e4;
}
body.studio-one .roxy-context{
 padding:10px 12px;background:#1c3b2e;border:1px solid #588969;
 color:#e4ffeb;font-size:11px;border-radius:5px;letter-spacing:.01em;
}
body.studio-one .roxy-section-label{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding-top:12px;border-top:1px solid #3e654f;color:#ddf3e2;
}
body.studio-one .roxy-section-label strong{
 font:850 11px/1.3 Inter,system-ui,sans-serif;letter-spacing:.11em;
}
body.studio-one .roxy-section-label small{
 color:#9bcab0;font:600 10px/1.3 Inter,system-ui,sans-serif;
}
body.studio-one .roxy-generate{
 border-radius:6px;background:#c4f7bb;color:#123021;
 box-shadow:none;font-weight:900;letter-spacing:.015em;
}
body.studio-one .roxy-results{
 max-height:350px;overflow:auto;scrollbar-color:#4d8062 #0d291f;
}
body.studio-one .roxy-design-card{
 display:grid;grid-template-columns:90px 1fr;column-gap:13px;row-gap:6px;
 background:#173729;border:1px solid #567b62;border-radius:9px;
 padding:9px;align-items:start;
}
body.studio-one .roxy-card-image{
 grid-column:1;grid-row:1 / span 4;width:90px;height:110px;
 border-radius:5px;object-fit:cover;background:#0e271f;
}
body.studio-one .roxy-design-card :is(.roxy-card-role,strong,p,button){grid-column:2}
body.studio-one .roxy-card-role{
 border-radius:3px;background:#d1f9c3;color:#193726;
 font-size:9px;padding:3px 6px;
}
body.studio-one .roxy-design-card strong{color:#f2fff0;font-size:13px}
body.studio-one .roxy-design-card p{color:#cde2d0}
body.studio-one .roxy-design-card button{
 border-radius:4px;background:#d5f6bd;color:#17311e;border:0;
 font-size:11px;padding:7px 10px;min-height:34px;
}
body.studio-one .roxy-design-card button:hover{background:#f0ffda}
body.studio-one .roxy-actions{margin-top:0}
body.studio-one .roxy-secondary{background:#142b23;color:#e2f7e4;border:1px solid #588e68}
body.studio-one .roxy-chat-log{
 display:flex;flex-direction:column;gap:10px;min-height:88px;
 max-height:230px;overflow:auto;padding:11px;background:#081e19;
 border:1px solid #345d46;border-radius:10px;
 scrollbar-color:#619371 #0d241d;
}
body.studio-one .roxy-chat-line{
 display:grid;gap:5px;max-width:96%;min-width:0;
 padding:10px 12px;border-radius:8px 8px 8px 2px;
 background:#203f2f;border:1px solid #457354;
}
body.studio-one .roxy-chat-visitor{align-self:flex-end;background:#2b4137;border-color:#607d66;border-radius:8px 8px 2px 8px}
body.studio-one .roxy-chat-speaker{
 font:850 9px/1 Inter,system-ui,sans-serif;letter-spacing:.1em;color:#b4f4bd;
}
body.studio-one .roxy-chat-line p{
 margin:0;color:#f1f9ed;font:500 12px/1.55 Inter,system-ui,sans-serif;
 overflow-wrap:anywhere;white-space:pre-wrap;
}
body.studio-one .roxy-chips{
 display:flex;flex-wrap:wrap;gap:7px;
}
body.studio-one .roxy-chip{
 border:1px solid #527b63;background:#19372b;color:#dffce3;
 border-radius:20px;padding:7px 11px;cursor:pointer;
 font:730 11px/1.35 Inter,system-ui,sans-serif;
}
body.studio-one .roxy-chip:hover{border-color:#b5fbc4;background:#315b42}
body.studio-one .roxy-chat-form{
 display:flex;align-items:stretch;gap:6px;
 margin-bottom:0;
}
body.studio-one .roxy-chat-input{
 min-width:0;flex:1;padding:11px 12px;border:1px solid #548767;background:#09251b;
 border-radius:6px;color:#f2fff2;font:500 12px/1.3 Inter,system-ui,sans-serif;
}
body.studio-one .roxy-chat-input::placeholder{color:#a9cbb2}
body.studio-one .roxy-chat-send{
 padding:8px 13px;background:#bff5b9;border:0;border-radius:6px;
 color:#173327;font:850 11px/1.2 Inter,system-ui,sans-serif;cursor:pointer;
}
body.studio-one .roxy-chat-send:disabled{opacity:.5;cursor:wait}
body.studio-one .roxy-ai-toggle{
 display:flex;align-items:flex-start;gap:8px;
 color:#e0f3dc;font:600 11px/1.4 Inter,system-ui,sans-serif;
}
body.studio-one .roxy-ai-toggle input{accent-color:#78d999;width:16px;height:16px;flex:0 0 16px;margin:0}
body.studio-one .roxy-ai-status{
 font:600 11px/1.45 Inter,system-ui,sans-serif;color:#b2dab9;margin-top:-8px!important;
}
body.studio-one .roxy-ai-status.roxy-ai-error{color:#ffd4b1}
body.studio-one .roxy-disclaimer{
 border-top:1px solid #486e53;margin-top:0!important;
 color:#b2cbb7;font:500 10px/1.5 Inter,system-ui,sans-serif;
 padding-top:10px;
}
body.studio-one .roxy-visually-hidden{
 position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
 clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
body.studio-one :is(.roxy-chat-input,.roxy-chip,.roxy-chat-send,.roxy-ai-toggle input):focus-visible{
 outline:2px solid #c6ffc4;outline-offset:2px;
}
@media(max-width:680px){
 body.studio-one .roxy-dock{right:8px;bottom:max(7px,env(safe-area-inset-bottom))}
 body.studio-one .roxy-panel{
  width:calc(100vw - 16px);max-height:min(83dvh,calc(100dvh - 62px));
  border-radius:13px;margin-bottom:8px;
 }
 body.studio-one .roxy-head{grid-template-columns:66px 1fr 34px;gap:10px;min-height:103px;padding:10px}
 body.studio-one .roxy-face-box{width:66px;height:85px}
 body.studio-one .roxy-head-copy strong{font-size:27px}
 body.studio-one .roxy-panel>*:not(.roxy-head){margin-inline:13px}
 body.studio-one .roxy-chat-log{max-height:170px}
 body.studio-one .roxy-design-card{grid-template-columns:75px 1fr}
 body.studio-one .roxy-card-image{width:75px;height:100px}
 body.studio-one .roxy-launch{min-height:50px}
 body.studio-one .roxy-launch .roxy-avatar{width:40px;height:40px}
}
@media(prefers-reduced-motion:reduce){
 body.studio-one .roxy-launch,body.studio-one .roxy-launch:hover,
 body.studio-one .roxy-chip,body.studio-one .roxy-design-card button{
  transition:none;transform:none;
 }
}

/* Wizard help remains visible even while the workspace iframe is hidden. */
body.studio-one .roxy-panel [hidden]{display:none!important}
body.studio-one.studio-start-active:not(.one-working) .roxy-dock{z-index:1600}
body.studio-one .roxy-launch:focus-visible,
body.studio-one .roxy-panel button:focus-visible{outline:3px solid #8eecb3;outline-offset:3px}
@media(max-width:680px){
 body.studio-one.studio-start-active:not(.one-working) .roxy-dock{bottom:max(7px,env(safe-area-inset-bottom))}
}

body.studio-one .roxy-content-audit{
 display:grid;gap:8px;padding:12px;border:1px solid #558968;border-radius:12px;
 background:#16382b;color:#eaf9ed
}
body.studio-one .roxy-content-audit strong{font:800 11px/1.3 Inter,system-ui,sans-serif;letter-spacing:.05em;color:#c3f6cf}
body.studio-one .roxy-content-audit p{margin:0;font:12px/1.55 Inter,system-ui,sans-serif;color:#e7f4e9}
body.studio-one .roxy-content-audit button{margin-top:2px}

/* Roxy supports the canvas instead of covering it: a compact, opt-in helper. */
body.studio-one.one-working .roxy-dock{right:12px;bottom:12px;z-index:950}
body.studio-one.one-working .roxy-launch{min-height:42px;padding:4px 11px 4px 4px;gap:7px;font-size:11px;box-shadow:0 6px 19px #092f1b44}
body.studio-one.one-working .roxy-avatar{height:34px;width:34px}
body.studio-one.one-working .roxy-panel{width:min(330px,calc(100vw - 24px));max-height:62dvh;padding:12px;gap:9px;border-radius:15px;box-shadow:0 15px 45px #00150c88}
body.studio-one.one-working .roxy-face{height:44px;width:44px}
body.studio-one.one-working .roxy-head-copy strong{font-size:19px}
body.studio-one.one-working .roxy-head{gap:8px}
@media(max-width:720px){body.studio-one.one-working .roxy-panel{max-height:55dvh;width:min(310px,calc(100vw - 20px))}body.studio-one.one-working .roxy-dock{right:10px;bottom:max(10px,env(safe-area-inset-bottom))}}

/* Pre-release Roxy transparency + improved hierarchy.
   Changes only the assistant overlay, never customer page designs. */
body.studio-one .roxy-dock .roxy-panel{
 background:linear-gradient(163deg,#2b4745,#1b3034 72%);
 border-color:rgba(180,240,206,.42);
 box-shadow:0 24px 65px rgba(3,18,19,.42);
 scrollbar-color:#6d9b88 #193035;
}
body.studio-one .roxy-dock .roxy-panel::before{
 background:radial-gradient(ellipse at 15% 0%,rgba(169,227,193,.13),transparent 66%);
}
body.studio-one .roxy-panel .roxy-head{
 background:#1c3437;border-color:rgba(180,240,206,.27);
}
body.studio-one .roxy-panel .roxy-chat-log{
 background:#142b2f;border-color:rgba(162,225,199,.24);
}
body.studio-one .roxy-panel .roxy-context,
body.studio-one .roxy-panel .roxy-content-audit{
 background:#27413f;border-color:rgba(171,238,201,.35);
}
body.studio-one .roxy-panel .roxy-mode-explainer{
 padding:12px 13px;margin-block:0;
 border:1px solid rgba(195,246,214,.43);border-radius:12px;
 background:rgba(218,247,231,.1);color:#e6f9ee;
 font:700 12px/1.55 Inter,system-ui,sans-serif;
}
/* In small Studio viewports Roxy becomes a deliberate full-screen assistant
   rather than a window covering the editor, its navigation and purchase CTA. */
@media(max-width:680px){
 body.studio-one .roxy-dock .roxy-panel,
 body.studio-one.one-working .roxy-dock .roxy-panel{
  position:fixed;inset:0;left:0;right:0;top:0;bottom:0;
  box-sizing:border-box;width:100vw;max-width:none;
  height:100dvh;max-height:100dvh;min-height:100svh;
  margin:0;padding:0 0 calc(24px + env(safe-area-inset-bottom));
  border:0;border-radius:0;
  overflow:auto;overscroll-behavior:contain;
  box-shadow:none;
 }
 body.studio-one.one-working .roxy-dock{z-index:1600}
 body.studio-one .roxy-dock .roxy-panel .roxy-head{
  position:sticky;top:0;z-index:3;
  min-height:80px;padding:10px 12px;
  grid-template-columns:57px minmax(0,1fr) 44px;
 }
 body.studio-one .roxy-dock .roxy-panel .roxy-face-box{width:54px;height:64px}
 body.studio-one .roxy-dock .roxy-panel .roxy-face{width:100%;height:100%}
 body.studio-one .roxy-dock .roxy-panel .roxy-close{
  min-width:44px;width:44px;height:44px;font-size:25px
 }
 body.studio-one .roxy-dock .roxy-panel .roxy-chat-log{
  max-height:min(32dvh,270px)
 }
 body.studio-one .roxy-dock .roxy-panel .roxy-mode-explainer{
  font-size:12px;padding:11px
 }
 body.studio-one .roxy-dock .roxy-panel .roxy-chat-input,
 body.studio-one .roxy-dock .roxy-panel .roxy-chat-send{min-height:44px}
}
