/* LuckyQuest V3 · Wizard/editor/summary badges. Scoped: never changes rendered customer templates. */
body.studio-start-active:is([data-studio-screen="wizard"],[data-studio-screen="summary"],[data-studio-screen="editor"]) #lw-explorer{display:none!important}
#studio-start .lq3-shell,.one-app .lq3-shell{
 --lq3-gold:#e8c88b;--lq3-mint:#bcf2d4;--lq3-edge:rgba(177,233,201,.2);
 width:100%;min-width:0;max-width:100%;box-sizing:border-box;
 position:relative;z-index:4;isolation:isolate;border-radius:18px;
 border:1px solid var(--lq3-edge);color:#f1faf3;
 background:linear-gradient(145deg,#12392f 0%,#0a251f 57%,#092a22 100%);
 box-shadow:0 12px 36px rgba(5,28,23,.17),inset 0 1px rgba(255,255,255,.05);
 font:500 13px/1.5 Inter,Manrope,system-ui,sans-serif;overflow:hidden;
}
#studio-start .start-achievement-slot{min-width:0;max-width:100%;align-self:stretch}
#studio-start .start-achievement-slot>.lq3-shell{margin:0}
body.studio-summary #studio-start>.lq3-shell{max-width:1100px;margin:0 auto 18px}
.one-app .lq3-shell[data-context="editor"]{max-width:900px;margin:10px auto 12px}
.lq3-shell *{box-sizing:border-box}
.lq3-shell .lq3-toggle{appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:67px;text-align:left;
 padding:12px 15px 11px;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit}
.lq3-shell .lq3-toggle:hover{background:rgba(205,250,217,.055)}
.lq3-shell .lq3-toggle:focus-visible,.lq3-shell :is(button,a,summary):focus-visible{outline:3px solid #d8f7a8;outline-offset:-3px}
.lq3-crown{flex:0 0 42px;display:grid;place-items:center;height:42px;border-radius:13px;
 background:linear-gradient(135deg,#e8d7a5,#ba8e4e);box-shadow:0 4px 13px rgba(234,181,99,.16);
 font-size:23px;color:#27351b}
.lq3-toggle-copy{min-width:0;flex:1;display:grid;gap:2px}
.lq3-toggle-copy strong{font:800 13px/1.25 Inter,Manrope,system-ui,sans-serif;letter-spacing:-.012em;color:#f5fff8}
.lq3-toggle-copy small{font:650 10px/1.4 Inter,Manrope,system-ui,sans-serif;color:#b3d6c2}
.lq3-score{display:grid;place-items:center;flex:none;padding:5px 8px;min-width:40px;border:1px solid rgba(239,208,155,.36);border-radius:99px;
 color:var(--lq3-gold);font-size:11px;font-weight:850;letter-spacing:.02em}
.lq3-chevron{color:#b6d9c4;font-size:17px;line-height:1}
.lq3-progress{height:3px;background:rgba(198,236,211,.15);overflow:hidden}
.lq3-progress-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#80dbad,#eac785);border-radius:0 3px 3px 0;transition:width .45s ease}
.lq3-details{padding:14px;border-top:1px solid rgba(190,227,208,.11);background:rgba(0,0,0,.07)}
.lq3-details[hidden]{display:none!important}
.lq3-intro{margin:0 0 12px!important;color:#d6e9db!important;font-size:12px!important;line-height:1.5!important}
.lq3-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.lq3-card{display:grid;grid-template-columns:35px minmax(0,1fr);position:relative;align-items:start;gap:8px;min-width:0;min-height:108px;padding:12px 10px;
 border:1px solid rgba(204,237,212,.11);border-radius:12px;background:rgba(255,255,255,.038)}
.lq3-card.is-earned{background:linear-gradient(145deg,rgba(68,132,93,.26),rgba(222,177,99,.09));border-color:rgba(228,200,139,.33)}
.lq3-symbol{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:rgba(217,245,224,.1);color:#d7e8dd;font-size:19px}
.lq3-card.is-earned .lq3-symbol{background:rgba(234,206,146,.16);color:var(--lq3-gold)}
.lq3-card-copy{min-width:0;display:grid;gap:4px;padding:0 5px 12px 0}
.lq3-card-copy strong{font:800 12px/1.3 Inter,Manrope,system-ui,sans-serif;color:#f2faef}
.lq3-card-copy small{font:500 10px/1.45 Inter,Manrope,system-ui,sans-serif;color:#aecbbd}
.lq3-card.is-pending{opacity:.75}
.lq3-state{position:absolute;right:9px;bottom:7px;font:800 10px/1.2 system-ui,sans-serif;letter-spacing:.04em;color:#a7bcb0}
.lq3-card.is-earned .lq3-state{color:var(--lq3-gold)}
.lq3-next{margin:12px 0 0!important;font-size:11px!important;line-height:1.5!important;color:#e6d2a3!important}
.lq3-bonus{border:1px solid rgba(219,195,139,.3);margin:14px 0 0;padding:10px 12px;background:rgba(215,179,100,.08);border-radius:12px}
.lq3-bonus summary{cursor:pointer;color:#f2dbac;font-weight:800;min-height:30px;display:list-item;list-style-position:inside}
.lq3-bonus ul{margin:8px 0 0;padding-left:23px;color:#dcf1e2;font-size:12px;line-height:1.65}
.lq3-share{display:inline-flex;align-items:center;min-height:41px;margin-top:10px;padding:9px 14px;border-radius:10px;
 background:#e8cf94;border:1px solid rgba(255,241,191,.5);color:#14382b;font:800 12px/1.3 Inter,system-ui,sans-serif;cursor:pointer}
.lq3-share:hover{background:#f2dda9}
.lq3-mission{margin-top:13px;padding:12px 14px;display:grid;gap:5px;border:1px solid rgba(156,218,183,.21);border-radius:13px;background:rgba(37,96,70,.25)}
.lq3-mission-kicker{color:var(--lq3-gold);letter-spacing:.12em;font-weight:850;font-size:10px;text-transform:uppercase}
.lq3-mission strong{font-size:13px;line-height:1.35;color:#f8fdf9}
.lq3-mission p{margin:0!important;font-size:11px!important;color:#bad9c6!important}
.lq3-mission-link{justify-self:start;display:inline-flex;align-items:center;min-height:36px;padding:6px 0;margin-top:3px;color:#c0efcc!important;text-decoration:underline!important;font-weight:800;font-size:12px}
.lq3-disclaimer{margin:11px 0 0!important;font-size:10px!important;color:#b7c7bc!important;line-height:1.5!important}
.lq3-toast{position:fixed;right:18px;top:calc(env(safe-area-inset-top) + 90px);z-index:220;max-width:min(380px,calc(100vw - 36px));
 display:flex;gap:11px;align-items:center;background:#0b2b23;border:1px solid rgba(234,199,137,.62);color:#f1ffe8;
 border-radius:15px;padding:12px 15px;box-shadow:0 15px 48px rgba(3,25,14,.35);font:750 12px/1.45 Inter,system-ui,sans-serif;
 animation:lq3-enter .28s ease-out}
.lq3-toast[hidden]{display:none!important}
.lq3-toast-mark{color:#e8ce95;font-size:24px}
@keyframes lq3-enter{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1099px){.lq3-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:699px){
 #studio-start .lq3-shell,.one-app .lq3-shell{border-radius:14px}
 .lq3-shell .lq3-toggle{gap:9px;padding:10px;min-height:62px}
 .lq3-crown{flex-basis:37px;height:37px;font-size:21px}
 .lq3-toggle-copy strong{font-size:12px}
 .lq3-toggle-copy small{font-size:9px}
 .lq3-score{font-size:10px;padding:5px}
 .lq3-chevron{font-size:14px}
 .lq3-details{padding:10px}
 .lq3-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .lq3-card{min-height:107px;padding:9px 7px;grid-template-columns:27px minmax(0,1fr);gap:6px}
 .lq3-symbol{width:27px;height:27px;font-size:15px}
 .lq3-card-copy strong{font-size:11px}
 .lq3-card-copy small{font-size:9px;line-height:1.4}
 .lq3-toast{top:calc(env(safe-area-inset-top) + 75px);right:10px}
}
@media(max-width:360px){.lq3-grid{grid-template-columns:1fr}.lq3-card{min-height:76px}}
@media(prefers-reduced-motion:reduce){.lq3-progress-fill{transition:none}.lq3-toast{animation:none}}

/* V29 desktop's achievements mount into a narrow 176px wizard sidebar.
 * Keep the collapsed card compact and the opened gallery readable there. */
@media(min-width:1100px){
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-toggle{
  gap:5px;min-height:58px;padding:8px 7px;
 }
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-crown{
  flex:0 0 27px;width:27px;height:27px;border-radius:9px;font-size:17px;
 }
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-toggle-copy strong{
  font-size:10px;line-height:1.3;overflow-wrap:anywhere;
 }
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-toggle-copy small{display:none}
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-score{
  min-width:27px;font-size:9px;padding:4px 3px;
 }
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-chevron{display:none}
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-details{
  max-height:min(420px,58dvh);overflow-y:auto;overscroll-behavior:contain;padding:8px;
 }
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-grid{grid-template-columns:minmax(0,1fr)}
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-card{
  grid-template-columns:23px minmax(0,1fr);gap:5px;padding:8px 6px;min-height:72px;
 }
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-symbol{width:23px;height:23px;font-size:14px}
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-card-copy strong{font-size:10px}
 body.studio-wizard-navigation[data-studio-screen="wizard"] #studio-start > .start-achievement-slot .lq3-card-copy small{font-size:9px}
}

/* The original V29 sidebar parked achievements in grid row 8 (below the fold).
 * Move the compact milestone card immediately below the progress rail,
 * alongside the design overview in row 3, without moving wizard controls. */
@media(min-width:1100px){
 body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"][data-wizard-step] #studio-start.studio-start > .start-achievement-slot{
  grid-column:1!important;grid-row:3!important;align-self:start!important;
 }
}

/* In the phone layout the old badge shelf sat after a 477px-wide overview.
 * Show the progress reward directly after the six-step tracker instead. */
@media(max-width:699px){
 body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"][data-wizard-step] #studio-start.studio-start > .start-achievement-slot{
  order:2!important;align-self:stretch!important;min-height:0!important;margin:0!important;
 }
}

/* LuckyQuest V3.1: do not turn the editor's canvas into a trophy shelf.
 * The wizard/summary badge appearance above remains unchanged. */
body[data-lw-studio-v2][data-studio-screen="editor"] #one-app .one-app-actions>.lq3-editor-launch{
 display:inline-flex!important;align-items:center;justify-content:center;
 flex:0 0 auto;min-width:48px;height:40px;min-height:40px;
 padding:8px 9px;margin:0;border:1px solid #618e6b;border-radius:10px;
 background:#113627;color:#f4e2b2;white-space:nowrap;cursor:pointer;
 font:800 11px/1 Inter,Manrope,system-ui,sans-serif;
}
body[data-lw-studio-v2][data-studio-screen="editor"] #one-app .one-app-actions>.lq3-editor-launch:hover,
body[data-lw-studio-v2][data-studio-screen="editor"] #one-app .one-app-actions>.lq3-editor-launch[aria-expanded="true"]{
 background:#20553a;border-color:#b4dca5;
}
body[data-lw-studio-v2][data-studio-screen="editor"] #one-app .lq3-editor-launch:focus-visible,
body[data-lw-studio-v2][data-studio-screen="editor"] #one-app .lq3-mobile-launch:focus-visible{
 outline:3px solid #d4f6a6;outline-offset:2px;
}
body[data-studio-screen="editor"] #one-app .lq3-shell[data-context="editor"]{
 position:fixed!important;inset:var(--lq3-editor-top,95px) 12px auto auto!important;
 margin:0!important;padding:0!important;
 width:min(440px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;
 max-height:min(68dvh,calc(100dvh - var(--lq3-editor-top,95px) - 12px))!important;
 display:block!important;overflow:auto!important;overscroll-behavior:contain;
 border-radius:16px!important;z-index:1700!important;
 box-shadow:0 28px 75px rgba(1,13,8,.68)!important;
}
body[data-studio-screen="editor"] #one-app .lq3-shell[data-context="editor"][hidden]{
 display:none!important;
}
body[data-studio-screen="editor"] #one-app .lq3-shell[data-context="editor"] .lq3-toggle{
 min-height:58px!important;gap:10px!important;padding:9px 12px!important;
}
body[data-studio-screen="editor"] #one-app .lq3-shell[data-context="editor"] .lq3-crown{
 flex:0 0 35px!important;width:35px!important;height:35px!important;font-size:19px!important;
}
body[data-studio-screen="editor"] #one-app .lq3-shell[data-context="editor"] .lq3-grid{
 grid-template-columns:repeat(2,minmax(0,1fr));
}
body[data-studio-screen="editor"] #one-app .lq3-shell[data-context="editor"] .lq3-details{
 padding:12px!important;
}
body[data-studio-screen="editor"] #one-app .lq3-shell[data-context="editor"] .lq3-card{
 min-height:90px;
}
@media(max-width:699px){
 body[data-studio-screen="editor"] #one-app .lq3-editor-launch{display:none!important}
 body[data-studio-screen="editor"] #one-app #lse-mobile-menu>.lq3-mobile-launch{
  width:100%;display:flex!important;align-items:center;justify-content:flex-start;
  font-weight:800!important;color:#f3d99d!important;
  background:#173a2d!important;min-height:46px!important;
  border:1px solid #56785e!important;
 }
 body[data-studio-screen="editor"] #one-app .lq3-shell[data-context="editor"]{
  right:8px!important;width:calc(100vw - 16px)!important;
  max-width:calc(100vw - 16px)!important;
  max-height:calc(100dvh - var(--lq3-editor-top,95px) - 8px)!important;
  border-radius:14px!important;
 }
 body[data-studio-screen="editor"] #one-app .lq3-shell[data-context="editor"] .lq3-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body[data-studio-screen="editor"] #one-app[data-lse-mobile-fullscreen="true"] .lq3-shell[data-context="editor"]{
  display:none!important;
 }
}
@media(max-width:360px){
 body[data-studio-screen="editor"] #one-app .lq3-shell[data-context="editor"] .lq3-grid{grid-template-columns:1fr}
}
