/* LuckyStudio V5 mobile rescue | 2026-11-12
   Scope: public six-step wizard only. Do not modify desktop, templates or editor.
   On handhelds, one actionable panel replaces a horizontally scrolling row of
   six cards whose tallest member formerly stretched all the others. */
@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 {
    width:calc(100% - 24px)!important;
    max-width:520px!important;
    min-height:0!important;
    margin:10px auto 32px!important;
    padding:0 0 calc(26px + env(safe-area-inset-bottom,0px))!important;
    gap:12px!important;
    overflow-x:clip;
  }
  /* A six-step progress indicator remains visible and navigable. */
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start > .start-progress {
    order:1!important;
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    width:100%!important;
    margin:0!important;
    padding:6px 4px!important;
    gap:1px!important;
    border-radius:13px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-progress li {
    min-width:0!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-progress button {
    min-width:0!important;
    min-height:53px!important;
    padding:5px 0!important;
    font-size:10px!important;
    gap:3px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-progress .start-step-name {
    font-size:clamp(8px,2.45vw,11px)!important;
    line-height:1.15!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-progress .start-step-number {
    min-width:25px!important;
    width:25px!important;
    height:25px!important;
  }
  /* The deck itself is a single, naturally sized panel, never a sideways carousel. */
  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-v5-overview {
    order:2!important;
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:none!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    align-items:stretch!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    overflow:visible!important;
    scroll-snap-type:none!important;
  }
  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-v5-overview-card {
    display:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    scroll-snap-align:none!important;
    flex:0 0 auto!important;
  }
  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-v5-overview-card[aria-current="step"] {
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:16px!important;
    gap:12px!important;
    border-radius:18px!important;
    border-color:#97fa8c!important;
    box-shadow:inset 0 0 0 1px #9bff7540,0 10px 28px -18px #75ff8177!important;
  }
  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-v5-overview-card::after {
    display:none!important;
  }
  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-deck-title {
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:36px!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
    color:#f0fff4!important;
    font-size:clamp(20px,5.5vw,26px)!important;
    line-height:1.22!important;
    letter-spacing:-.025em!important;
  }
  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-v5-overview-meta {
    margin:0!important;
    padding:0 0 10px!important;
    border-bottom:1px solid #79bd8a33!important;
  }
  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-v5-overview-detail {
    margin:0!important;
    min-height:0!important;
    color:#b9d7c3!important;
    font-size:12px!important;
    line-height:1.4!important;
  }
  /* The wizard already has headings in its cards; remove the duplicate cinema
     scene and unrelated large sample on phones. Roxy stays accessible below. */
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start > :is(.start-scene,.start-wizard-roxy,.start-v5-sample) {
    display:none!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start > .start-roxy-guide {
    order:4!important;
    display:flex!important;
    min-height:0!important;
    padding:10px 12px!important;
    margin:0!important;
    gap:8px!important;
    border-radius:12px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start > .start-roxy-guide :is(p,strong) {
    font-size:11px!important;
    line-height:1.35!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start > .start-trial-notice {
    order:5!important;
    margin:0!important;
    padding:2px 4px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start > .start-step {
    order:6!important;
    margin:0!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start > .start-achievement-slot {
    order:7!important;
    margin:0!important;
  }
  /* Type: the two real thumbnails are first-class touch controls. */
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-types {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-types .start-deck-choice {
    min-height:0!important;
    padding:0 0 12px!important;
    gap:10px!important;
    border-radius:12px!important;
    overflow:hidden!important;
    font-size:16px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-type-preview {
    width:100%!important;
    height:clamp(108px,31vw,146px)!important;
    object-fit:cover!important;
    object-position:top!important;
  }
  /* Industry: two readable, image-led columns, not six miniature tiles. */
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-sectors {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-sectors .start-deck-choice {
    min-width:0!important;
    min-height:90px!important;
    padding:0 0 9px!important;
    gap:7px!important;
    font-size:12px!important;
    overflow-wrap:anywhere!important;
    border-radius:10px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-sectors .start-deck-photo {
    height:62px!important;
    width:100%!important;
  }
  /* Four authored styles, but in an economical, legible 2x2 gallery. */
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-styles-visual {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-style-tile {
    min-width:0!important;
    grid-template-rows:auto auto auto!important;
    border-radius:12px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-style-browser-bar {
    gap:6px!important;
    height:22px!important;
    padding:0 7px!important;
    font-size:8px!important;
    letter-spacing:.04em!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-style-viewport {
    height:118px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-style-tile > .start-deck-choice {
    min-height:76px!important;
    padding:10px 9px!important;
    align-items:flex-start!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-style-copy strong {
    font-size:13px!important;
    line-height:1.25!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-style-copy small {
    font-size:10px!important;
    line-height:1.35!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-style-tile > .start-style-inspect {
    min-height:39px!important;
    width:calc(100% - 14px)!important;
    margin:4px 7px 9px!important;
    padding:8px 5px!important;
    font-size:10px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-style-roxy-tag {
    top:26px!important;
    right:4px!important;
    padding:4px!important;
    font-size:8px!important;
  }
  /* Basic/Premium: equal real previews, prominent selection and distinct labels. */
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-designs {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-design-option {
    height:168px!important;
    min-height:168px!important;
    border:1px solid #4d8d66!important;
    border-radius:12px!important;
    overflow:hidden!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-design-option:has(> .start-deck-choice[aria-pressed="true"]) {
    border-color:#aeff7b!important;
    box-shadow:0 0 0 2px #9cff7544,0 9px 24px -15px #79ff8d!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-design-option > .start-deck-preview {
    height:166px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-design-option > .start-deck-choice {
    padding:9px!important;
    font-size:15px!important;
    text-align:left!important;
    color:#fff!important;
    background:linear-gradient(0deg,#03150de8,transparent 64%)!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-design-option > .start-deck-full {
    min-height:34px!important;
    padding:6px 8px!important;
    top:6px!important;
    right:6px!important;
    font-size:10px!important;
    border-radius:8px!important;
  }
  /* Editor: full-width preview and immediate CTA instead of an empty column. */
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-editor > .start-deck-preview {
    height:190px!important;
    border-radius:10px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-editor [data-deck-action="editor"] {
    min-height:48px!important;
    border:1px solid #84d69c!important;
    border-radius:10px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-footer {
    display:flex!important;
    gap:9px!important;
    align-items:stretch!important;
    margin:8px 0 0!important;
    padding:0!important;
    position:static!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-footer button {
    flex:1 1 0!important;
    min-width:0!important;
    min-height:48px!important;
    padding:10px 12px!important;
    font-size:14px!important;
    border-radius:10px!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-footer button:only-child {
    flex:1 1 auto!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-footer button:disabled {
    opacity:.48!important;
  }
  /* Keep mandatory touch targets and focus rings usable. */
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start :is(.start-deck-choice,.start-deck-full,.start-style-inspect,.start-deck-footer button):focus-visible {
    outline:3px solid #c9ff9a!important;
    outline-offset:2px!important;
  }
}
@media(max-width:359px) {
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-deck-styles-visual {
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-lw-studio-v2].studio-start-active.studio-wizard-navigation:not(.one-working)[data-studio-screen="wizard"] #studio-start.studio-start .start-style-viewport {
    height:150px!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  body[data-lw-studio-v2].studio-wizard-navigation #studio-start .start-v5-overview-card,
  body[data-lw-studio-v2].studio-wizard-navigation #studio-start .start-style-tile {
    transition:none!important;
    animation:none!important;
  }
}

/* Summary handoff: Safari previously showed a white-on-pale, oversized block.
   Scope stays on the public summary, never inside customer Web/Shop iframes. */
@media(max-width:699px){
 html body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"]{
  background:#081e15!important;color:#effff3!important;
  min-height:100dvh!important;
 }
 html body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start.studio-start{
  display:block!important;min-height:0!important;
  width:calc(100% - 24px)!important;max-width:520px!important;
  margin:0 auto!important;padding:22px 0 calc(44px + env(safe-area-inset-bottom,0px))!important;
  background:transparent!important;align-self:start!important;
 }
 html body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start > .lsfr-summary{
  --lsfr-ink:#f1fff5!important;
  --lsfr-muted:#c7dfcf!important;
  --lsfr-accent:#b0fb8d!important;
  --lsfr-line:rgba(170,231,185,.28)!important;
  --lsfr-card:linear-gradient(145deg,#153a2a,#0e2b21)!important;
  color:#f1fff5!important;background:#082117!important;
  margin:0!important;padding:18px 16px 25px!important;
  width:100%!important;min-height:0!important;
  border:1px solid #396c50!important;border-radius:20px!important;
  box-shadow:0 14px 35px -24px #000c!important;
 }
 html body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-summary :is(h1,h2){
  color:#f1fff5!important;
 }
 html body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-summary h1{
  font-size:clamp(28px,7.5vw,36px)!important;
  line-height:1.13!important;margin:10px 0 12px!important;
 }
 html body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-summary :is(.lsfr-lead,.lsfr-rental-picker,.lsfr-extra){
  color:#c7dfcf!important;
 }
 html body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-summary .lsfr-eyebrow{
  font-size:10px!important;line-height:1.35!important;color:#a7f588!important;
 }
 html body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-panel{
  border:1px solid rgba(154,219,171,.3)!important;
  background:linear-gradient(140deg,#194432,#113126)!important;
 }
 html body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-rental-picker select{
  background:#193f2e!important;color:#f1fff5!important;
 }
 html body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-actions{
  margin-top:18px!important;gap:10px!important;
 }
 html body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-action{
  min-height:50px!important;padding:11px 12px!important;
  font-size:14px!important;
 }
 /* Light mode must not end up with bright text on a white background either. */
 html[data-lw-theme="light"] body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"]{
  background:#eff6f0!important;color:#153e29!important;
 }
 html[data-lw-theme="light"] body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start > .lsfr-summary{
  --lsfr-ink:#173e2a!important;--lsfr-muted:#426a51!important;
  --lsfr-accent:#166c3a!important;--lsfr-card:#fff!important;
  --lsfr-line:rgba(20,105,58,.26)!important;
  background:#f8fcf8!important;color:#173e2a!important;
  border-color:#b8d6c0!important;
 }
 html[data-lw-theme="light"] body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-summary :is(h1,h2){color:#173e2a!important;}
 html[data-lw-theme="light"] body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-summary :is(.lsfr-lead,.lsfr-rental-picker,.lsfr-extra){color:#426a51!important;}
 html[data-lw-theme="light"] body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-summary .lsfr-eyebrow{color:#166c3a!important;}
 html[data-lw-theme="light"] body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-panel{background:#fff!important;border-color:#bad7c1!important;}
 html[data-lw-theme="light"] body[data-lw-studio-v2].studio-summary[data-studio-screen="summary"] #studio-start .lsfr-rental-picker select{
  background:#fff!important;color:#173e2a!important;border-color:#7aa88b!important;
 }
}
