/* SuperQR.codes studio on phones, v3: step 3 full screen, the code as big as it fits (works with superqr-studio-mobile.js). */
.sqm-bar,.sqm-panel,.sqm-fix,.sqm-hand{display:none}
@media (max-width:809.98px){
  body.sqm-full{overflow:hidden;overscroll-behavior:none}
  body.sqm-full::before{content:"";position:fixed;inset:0;z-index:40;background:#F4F2EE}
  body.sqm-full section.studio-tool{z-index:41!important}
  body.sqm-full aside.controls{display:none!important}

  /* top bar */
  body.sqm-full .sqm-bar{position:fixed;left:0;right:0;top:0;z-index:43;height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#F4F2EE}
  .sqm-bar b{font-size:17px;font-weight:700;letter-spacing:-.02em;color:#141414}
  .sqm-bar .sqm-cancel{min-width:64px;height:40px;padding:0;border:0;background:none;text-align:left;font:inherit;font-size:15px;font-weight:600;color:#7A7A7A;cursor:pointer}
  .sqm-bar .sqm-done{min-width:64px;height:38px;padding:0 18px;border:0;border-radius:999px;background:var(--sq-orange,#FF4F1F);color:#FFFFFF;font:inherit;font-size:15px;font-weight:700;cursor:pointer}

  /* the code, edge to edge between the bar and the panel; the studio's hint and move pill are not shown here */
  body.sqm-full section.stage{position:fixed!important;left:0!important;right:0!important;top:60px!important;bottom:var(--sqm-panel,200px)!important;z-index:41;margin:0!important;padding:0 8px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible}
  body.sqm-full section.stage .canvaswrap{flex:0 0 auto;width:var(--sqm-size,300px)!important;max-width:var(--sqm-size,300px)!important;padding:8px!important;touch-action:none}
  body.sqm-full .vqr-show-video-only .sq-layer{display:none}
  body.sqm-full section.stage .sq-tools,
  body.sqm-full section.stage .sq-hint{display:none!important}

  /* "Hard to scan" chip on the code's corner */
  body.sqm-full .sqm-fix{position:fixed;z-index:44;display:flex;align-items:center;gap:6px;padding:3px 3px 3px 10px;border-radius:999px;background:#FFECE8;color:#7A1F12;font-size:12px;font-weight:700;box-shadow:0 4px 12px rgba(20,20,20,.14)}
  body.sqm-full .sqm-fix[hidden]{display:none}
  .sqm-fixb{height:24px;padding:0 10px;border:0;border-radius:999px;background:#141414;color:#FFFFFF;font:inherit;font-size:12px;font-weight:700;cursor:pointer}

  /* one-time hand: a finger dot that drags once across the code */
  body.sqm-full .sqm-hand{position:fixed;z-index:44;display:block;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:rgba(20,20,20,.2);border:2px solid rgba(255,255,255,.95);box-shadow:0 4px 14px rgba(20,20,20,.2);pointer-events:none;animation:sqm-hand 2.4s ease-in-out infinite}
  body.sqm-full .sqm-hand[hidden]{display:none}
  @keyframes sqm-hand{0%,100%{transform:translate(0,0)}50%{transform:translate(-60px,-30px)}}
  @media (prefers-reduced-motion:reduce){body.sqm-full .sqm-hand{animation:none}}

  /* bottom panel: wheel picks what, scale sets how much */
  body.sqm-full .sqm-panel{position:fixed;left:0;right:0;bottom:0;z-index:43;display:flex;flex-direction:column;gap:8px;padding:4px 16px calc(14px + env(safe-area-inset-bottom));background:#F4F2EE}

  .sqm-cut:not(:has(.vqr-video-cut:not([hidden]))){display:none}
  .sqm-cut .vqr-video-cut{margin:0!important}
  .sqm-cut.vqr .vqr-video-cut-footer{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-size:12px}
  .sqm-cut.vqr .vqr-video-cut-footer .vqr-video-preview-control{min-width:60px;height:30px;padding-inline:8px;font-size:12px}
  .sqm-shapes{display:none;gap:4px;padding:3px;background:#E8E6E3;border-radius:12px}
  body.sqm-hl .sqm-shapes{display:flex}
  .sqm-shapes button{flex:1 1 0;min-width:0;border:0;border-radius:9px;height:32px;padding:0 3px;background:none;color:#141414;font:inherit;font-size:12px;cursor:pointer}
  .sqm-shapes button[aria-pressed="true"]{background:#fff;box-shadow:0 1px 3px #0002}
  .sqm-shapes button:focus-visible{outline:2px solid #141414}

  .sqm-wheel{position:relative;height:102px;overflow:hidden;touch-action:none;cursor:ns-resize;outline:none;-webkit-mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent);mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent)}
  .sqm-wheel::before{content:"";position:absolute;left:0;right:0;top:34px;height:34px;border-radius:12px;background:#FFFFFF}
  .sqm-list{position:absolute;left:0;right:0;top:34px;transition:transform .28s cubic-bezier(.34,1.56,.64,1)}
  .sqm-opt{position:relative;height:34px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;color:#7A7A7A;transition:opacity .2s,font-size .2s}
  .sqm-opt.cur{font-size:18px;font-weight:700;color:#141414}

  .sqm-ruler{position:relative;height:66px;border-radius:16px;background:#FFFFFF;overflow:hidden;touch-action:none;cursor:ew-resize;outline:none}
  .sqm-ticks{position:absolute;left:50%;top:34px;width:280px;height:22px;background:repeating-linear-gradient(90deg,#BDBDBD 0 1px,transparent 1px 14px),repeating-linear-gradient(90deg,#141414 0 2px,transparent 2px 70px);background-size:auto 12px,auto 22px;background-repeat:repeat-x;background-position:0 bottom,0 bottom;transition:transform .08s linear}
  .sqm-ruler.on .sqm-ticks{transition:none}
  .sqm-def{position:absolute;top:-7px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:#141414}
  .sqm-mark{position:absolute;left:50%;top:28px;width:3px;height:32px;margin-left:-1px;border-radius:2px;background:var(--sq-orange,#FF4F1F)}
  .sqm-val{position:absolute;left:0;right:0;top:7px;text-align:center;font-family:"Geist Mono",ui-monospace,monospace;font-size:15px;font-weight:600;color:#141414}
}
