/* Mobile QA fixes: touch targets, bottom story sheet and safe-area spacing. */
@media (max-width:720px){
  .studio-header-nav-group nav.is-open{display:grid!important;max-height:calc(100dvh - var(--studio-shell-clearance,118px) - 10px);overflow-y:auto;overscroll-behavior:contain}
  .studio-header-nav-group nav.is-open .studio-nav-parent{width:100%}
  .studio-header-nav-group nav.is-open .studio-nav-parent>button{min-height:44px}
  .a2-control-drawer>section{width:100%;max-width:100%;padding-bottom:env(safe-area-inset-bottom)}
  .a2-control-drawer>section>header{padding-top:max(14px,env(safe-area-inset-top))}
  .a2-control-tabs{top:70px}
  .a2-command-group a,.a2-alert-grid a,.a2-tool-grid a{min-height:64px}
  html.universal-sheet-open{overflow:hidden}
  .studio-universal-tools{top:8px;left:8px;gap:6px;opacity:1;transform:none;pointer-events:auto}
  .studio-universal-tools button{width:40px;height:40px;border-radius:12px;touch-action:manipulation}
  .studio-universal-tools button svg{width:18px;height:18px}
  .universal-work-sheet{display:grid;align-items:end;padding:0;pointer-events:auto}
  .universal-work-sheet__backdrop{display:block}
  .universal-work-sheet>article{position:relative;inset:auto;grid-template-columns:104px minmax(0,1fr);width:100%;height:min(58vh,500px);min-height:340px;max-height:calc(100dvh - 62px);padding-bottom:env(safe-area-inset-bottom);border-width:1px 0 0;border-radius:24px 24px 0 0;transform:translateY(28px)}
  .universal-work-sheet__art{height:100%;min-height:0}
  .universal-work-sheet__art>img{inset:18px auto 18px 12px;width:78px;height:calc(100% - 36px);border-radius:13px}
  .universal-work-sheet__art>span{background:linear-gradient(90deg,transparent,#071526 95%),linear-gradient(180deg,#07152611,#071526bb)}
  .universal-work-sheet__art>button{right:50%;bottom:18px;transform:translateX(50%)}
  .universal-work-sheet__copy{justify-content:center;min-width:0;padding:46px 17px 22px;overflow:auto;overscroll-behavior:contain}
  .universal-work-sheet__copy h2{margin:8px 0 0;font-size:22px}
  .universal-work-sheet__copy p{margin-top:12px;font-size:11.5px;line-height:1.85;-webkit-line-clamp:6}
  .universal-work-sheet__copy>div{gap:5px;margin-top:12px;max-height:58px;overflow:hidden}
  .universal-work-sheet__copy>div span{padding:5px 7px;font-size:8px}
  .universal-work-sheet__close{top:9px;right:9px;width:38px;height:38px}
  .a2-quick-view>section{bottom:0;width:100%;height:min(58vh,500px);max-height:calc(100dvh - 62px);padding-bottom:env(safe-area-inset-bottom);border-radius:24px 24px 0 0}
  .a2-quick-view .cine-peek-sheet{grid-template-columns:104px minmax(0,1fr);padding:20px 16px}
  .cine-peek-visual img{max-height:calc(58vh - 42px);object-fit:cover}
  .cine-peek-copy{min-width:0;max-height:100%;overflow:auto;overscroll-behavior:contain}
  .cine-peek-copy>p{font-size:11.5px;line-height:1.85;-webkit-line-clamp:6}
  .a2-quick-view .a2-quick-close{width:38px;height:38px}
}
@media (max-width:390px){
  .studio-universal-tools button{width:37px;height:37px}
  .universal-work-sheet>article,.a2-quick-view .cine-peek-sheet{grid-template-columns:90px minmax(0,1fr)}
  .universal-work-sheet__art>img{width:68px}
  .universal-work-sheet__copy h2,.cine-peek-sheet header h2{font-size:20px}
}
