.mobile-sheet-bar,.mobile-topic-nav,.mobile-sheet-grip{display:none}
@media(max-width:650px){
  body.ac-home{padding-bottom:142px}
  #poster-studio .studio-sidebar{position:fixed;left:0;right:0;bottom:0;width:100%;height:calc(126px + env(safe-area-inset-bottom));z-index:1000;background:#fffbf2;box-shadow:0 -5px 28px #32152917;padding:10px 14px calc(10px + env(safe-area-inset-bottom));box-sizing:border-box}
  #poster-studio .studio-step-tabs{display:flex;gap:8px;margin:0;height:46px}
  #poster-studio .studio-step-tabs button{flex:1;border-radius:12px;font-size:14px;justify-content:center;padding:10px 4px}
  #poster-studio .studio-step-tabs button>span{display:none}
  #poster-studio .studio-controls{display:contents}
  #poster-studio .studio-cta{position:absolute;left:14px;right:14px;bottom:calc(10px + env(safe-area-inset-bottom));height:46px;margin:0;padding:0;border:0;display:grid;grid-template-columns:1fr 1.5fr;gap:8px}
  #poster-studio .studio-cta .studio-note,#poster-studio .studio-step-navigation{display:none}
  #poster-studio .studio-cta button{margin:0;font-size:12px;padding:10px 6px;border-radius:12px;white-space:nowrap}
  #poster-studio .studio-cta .studio-preview{grid-column:1;grid-row:1}
  #poster-studio .studio-cta .studio-add{grid-column:2;grid-row:1}
  #poster-studio .studio-status:not(:empty){position:absolute;bottom:54px;left:0;right:0;background:#fff;padding:8px 12px;border-radius:8px;box-shadow:0 2px 15px #0001}
  #poster-studio .mobile-sheet-bar,#poster-studio .studio-config-panels{display:none}
  #poster-studio.mobile-sheet-open .studio-controls{display:block;position:absolute;bottom:100%;left:0;right:0;width:100%;padding:18px 20px 22px;border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -12px 40px #32152926;animation:ac-sheet-rise 240ms cubic-bezier(.2,.75,.25,1);box-sizing:border-box}
  #poster-studio.mobile-sheet-open .mobile-sheet-bar{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px;color:#5e1f56}
  .mobile-sheet-bar strong{font-size:19px;font-weight:500}
  .mobile-sheet-bar button{border:0;background:#f4edf2;color:#5e1f56;border-radius:20px;padding:9px 13px;font:inherit;font-size:13px}
  #poster-studio.mobile-sheet-open .studio-config-panels{display:block}
  #poster-studio .studio-config-panel>.studio-step{display:none}
  .mobile-topic-nav{display:flex;gap:7px;margin-bottom:15px}
  .mobile-topic-nav button{flex:1;border:1px solid #5e1f5624;background:#fff;color:#5e1f56;border-radius:20px;padding:9px 5px;font-size:12px}
  .mobile-topic-nav button[aria-pressed=true]{background:#5e1f56;color:#fff}
  .mobile-topic-hidden{display:none!important}
  #poster-studio .mobile-topic-page label{margin:9px 0;font-size:13px}
  #poster-studio .mobile-topic-page input:not([type=checkbox]):not([type=color]):not([type=range]),#poster-studio .mobile-topic-page select{font-size:16px;padding:10px}
  #poster-studio .studio-colors{gap:8px}
  #poster-studio .studio-presets{margin:0;grid-template-columns:repeat(3,1fr);gap:8px}
  #poster-studio .studio-presets span{height:38px}
  #poster-studio .studio-results{position:static;max-height:none;overflow:visible;box-shadow:none}
  #poster-studio .studio-results button{font-size:13px;padding:9px}
  #poster-studio .studio-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  #poster-studio .studio-colors label{display:block;min-width:0;font-size:12px}
  #poster-studio .studio-colors label>span{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin-top:6px}
  #poster-studio .studio-colors input[type=color]{width:100%;height:32px;padding:0;border:0}
  #poster-studio .studio-colors input[data-hex]{width:100%!important;min-width:0;font-size:12px!important;padding:7px 4px!important;box-sizing:border-box;text-align:center}
}
@media(max-width:650px) and (max-height:700px){
  #poster-studio.mobile-sheet-open .studio-controls{padding:12px 16px 14px}
  #poster-studio.mobile-sheet-open .mobile-sheet-bar{margin-bottom:10px}
  .mobile-topic-nav{margin-bottom:8px}
}
@keyframes ac-sheet-rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){
  #poster-studio .studio-sidebar{background:transparent;box-shadow:0 -4px 24px #32152912}
  #poster-studio .studio-sidebar::before{content:'';position:absolute;inset:0;z-index:-1;background:rgba(255,251,245,.72);-webkit-backdrop-filter:blur(24px) saturate(155%);backdrop-filter:blur(24px) saturate(155%);border-top:1px solid #ffffffa8;box-shadow:inset 0 1px 0 #fff8}
  #poster-studio.mobile-sheet-open .studio-controls{background:rgba(255,253,249,.7);-webkit-backdrop-filter:blur(26px) saturate(155%);backdrop-filter:blur(26px) saturate(155%);border:1px solid #ffffffb3;border-bottom:0;box-shadow:0 -10px 36px #39222c1c,inset 0 1px 0 #ffffffb3;padding-top:4px}
  #poster-studio.mobile-sheet-open .mobile-sheet-grip{display:flex;align-items:center;justify-content:center;width:100%;height:30px;padding:0;margin:0 0 2px;border:0;background:transparent;cursor:grab;touch-action:none;-webkit-tap-highlight-color:transparent}
  .mobile-sheet-grip::before{content:'';width:38px;height:5px;border-radius:9px;background:#5e1f5640;box-shadow:0 1px 0 #fff8}
  .mobile-sheet-grip:focus-visible{outline:2px solid #5e1f56;outline-offset:-3px;border-radius:12px}
  .mobile-sheet-grip:active{cursor:grabbing}
  #poster-studio.mobile-sheet-open .studio-controls.is-sheet-dragging{animation:none;transform:translateY(var(--sheet-drag,0px));will-change:transform}
  #poster-studio .studio-step-tabs button:not([aria-selected=true]),#poster-studio .mobile-topic-nav button:not([aria-pressed=true]),#poster-studio .studio-preview{background:#ffffff59;border-color:#ffffffa8;box-shadow:inset 0 1px 0 #ffffff8c}
  #poster-studio .mobile-topic-page input:not([type=checkbox]):not([type=color]):not([type=range]),#poster-studio .mobile-topic-page select{background:#ffffff70;border-color:#5e1f5626}
  .mobile-sheet-bar button{background:#ffffff70;box-shadow:inset 0 1px 0 #fff9}
  @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){#poster-studio .studio-sidebar::before,#poster-studio.mobile-sheet-open .studio-controls{background:#fffbf2f5}}
}
#poster-studio .studio-add{background:#1db954;color:#fff}
#poster-studio .studio-add:hover{background:#19a64b}
#poster-studio .studio-preview{display:flex;align-items:center;justify-content:center}
#poster-studio .studio-preview svg{width:23px;height:23px;flex-shrink:0}
@media(max-width:650px){
  #poster-studio.mobile-sheet-open .studio-controls{background:rgb(255 253 249 / 35%);-webkit-backdrop-filter:blur(10px) saturate(155%);backdrop-filter:blur(10px) saturate(155%)}
  #poster-studio .studio-cta{grid-template-columns:48px 1fr}
  #poster-studio #studio-panel-2 label{margin:9px 0;font-size:13px}
  #poster-studio #studio-panel-2 select{font-size:16px;padding:10px;background:#ffffff70}
}
@media(prefers-reduced-motion:reduce){#poster-studio.mobile-sheet-open .studio-controls{animation:none}}
.mobile-floating-menu{display:contents}
.studio-step-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.studio-detail-toggles{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}
.studio-detail-toggles .studio-check{min-height:40px;line-height:1.3}
@media(max-width:650px){
  .ac-header{padding-top:80px}
  .ac-header>.ac-navigation{position:fixed;left:0;right:0;top:0;height:80px;z-index:31}
  .ac-header .ac-navigation nav{display:none}
  #poster-studio .mobile-floating-menu{display:flex;align-items:center;gap:4px;padding:5px;box-sizing:border-box;height:54px;width:100%;border:1px solid #ffffffb3;border-radius:12px;background:#fffdf94d;box-shadow:0 5px 20px #32152917,inset 0 1px 0 #fff9;-webkit-backdrop-filter:blur(10px) saturate(155%);backdrop-filter:blur(10px) saturate(155%)}
  #poster-studio .mobile-floating-menu .studio-step-tabs{flex:1;min-width:0;height:42px;margin:0;gap:2px}
  #poster-studio .mobile-floating-menu .studio-step-tabs button{padding:8px 4px;border:0;border-radius:7px;background:transparent;box-shadow:none;font-size:13px}
  #poster-studio .mobile-floating-menu .studio-step-tabs button[aria-selected=true]{background:#5e1f561a;color:#5e1f56;box-shadow:inset 0 0 0 1px #5e1f560a}
  #poster-studio .mobile-floating-menu .studio-preview{flex:0 0 45px;width:45px;height:32px;border:0;border-left:1px solid #5e1f5624;border-radius:0;background:transparent;box-shadow:none;padding:4px;margin:0;color:#5e1f56}
  #poster-studio .studio-cta{grid-template-columns:1fr}
  #poster-studio .studio-cta .studio-add{grid-column:1}
  #poster-studio .studio-preview-area{padding:48px 44px 6px!important}
  body .poster-corner-seal{width:96px;height:96px}
}
@media(max-width:650px){
  #poster-studio .mobile-floating-menu .studio-step-tabs button{font-size:11px;padding:8px 2px}
  #poster-studio .mobile-floating-menu .studio-preview{flex-basis:36px;width:36px}
  #poster-studio .studio-detail-toggles{gap:0 10px}
  #poster-studio .studio-detail-toggles .studio-check{font-size:12px!important;gap:7px!important;margin:4px 0;min-height:39px}
  #poster-studio #studio-panel-3 label{margin:9px 0;font-size:13px}
  #poster-studio #studio-panel-3 select{font-size:16px;padding:10px;background:#ffffff70}
}
/* One shared glass surface for the dock and its expanded settings. */
@media(max-width:650px){
  #poster-studio .studio-sidebar{height:auto;min-height:calc(126px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:0;box-shadow:none;background:transparent}
  #poster-studio .studio-sidebar::before{inset:0;border:0;border-radius:20px 20px 0 0;background:rgb(255 253 249 / 35%);-webkit-backdrop-filter:blur(10px) saturate(155%);backdrop-filter:blur(10px) saturate(155%);box-shadow:none}
  #poster-studio.mobile-sheet-open .studio-sidebar{padding-top:0}
  #poster-studio.mobile-sheet-open .studio-sidebar::before{border-radius:22px 22px 0 0}
  #poster-studio.mobile-sheet-open .studio-controls{order:-1;position:relative;bottom:auto;left:auto;right:auto;width:calc(100% + 28px);margin:0 -14px;padding-bottom:14px;border:0;border-radius:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
  #poster-studio .mobile-floating-menu{flex-shrink:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border-color:transparent;box-shadow:none}
  #poster-studio .studio-cta{position:relative;left:auto;right:auto;bottom:auto;flex-shrink:0;margin-top:8px;min-height:46px}
  #poster-studio .studio-status:not(:empty){position:fixed;top:88px;bottom:auto;left:18px;right:18px;margin:0;padding:10px 14px;background:#fffbf2e6;box-shadow:none;border:1px solid #5e1f5620;pointer-events:none;z-index:1}
}
