.pose-sketch-panel{padding:0 0 12px;border-bottom:1px solid #e5e8ef;text-align:left;min-width:0}
.pose-sketch-panel[hidden],.pose-sketch-panel [hidden]{display:none!important}
.pose-sketch-status{margin:0 0 10px;font-size:14px;line-height:1.65;color:#526075;overflow-wrap:anywhere}
.pose-sketch-status.is-error{color:#a94650}
.pose-sketch-actions{display:flex;flex-wrap:wrap;gap:8px}
.pose-sketch-actions .btn{white-space:normal;min-height:40px}
.pose-sketch-note{display:block;margin-top:10px;color:#778195;font-size:12px;line-height:1.65}
.pose-sketch-actions button:disabled{opacity:.55;cursor:default}
@media(max-width:600px){.pose-sketch-actions .btn{flex:1 1 auto}}

/* Full-frame reference images: one scroll container, no clipped media rows. */
#poseResultModal .pose-modal-card{overflow-y:auto!important;max-height:calc(100dvh - 36px)!important;min-height:0!important}
#poseResultModal #poseResultBody{flex:0 0 auto!important;overflow:visible!important;align-items:start!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
#poseResultModal #poseResultBody .pose-result-media{display:block!important;position:relative!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;overflow:visible!important;min-width:0!important;align-self:start!important}
#poseResultModal #poseResultImage{display:block!important;position:static!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0!important}
#poseResultModal #poseResultBody .pose-result-copy{overflow:visible!important;max-height:none!important}
@media(max-width:980px){#poseResultModal #poseResultBody{grid-template-columns:minmax(0,1fr)!important}}

.pose-sketch-variant{display:block;max-width:100%;margin:0 0 12px;padding:10px 12px;border:1px solid #d8dce5;border-radius:10px;background:#fff;color:#202530;font:inherit}

/* v2.06.28: each narrow-screen page owns its vertical scroll. */
#poseResultModal .pose-photo-page{min-width:0}
#poseResultModal .pose-page-nav{display:none}
#poseResultModal .pose-page-nav[hidden]{display:none!important}
#poseResultModal .pose-title-language-group{flex-wrap:wrap}
@media(max-width:980px){
  #poseResultModal .pose-modal-card{height:calc(100dvh - 36px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
  #poseResultModal .edit-panel-head{flex:0 0 auto!important;margin-bottom:12px!important}
  #poseResultModal .pose-page-nav{display:flex;gap:8px;flex:0 0 auto;margin:0 0 12px}
  #poseResultModal .pose-page-nav button{flex:1;min-height:40px}
  #poseResultModal .pose-page-nav button[aria-pressed="true"]{background:#ecebff;border-color:#7772dc;color:#39347d}
  #poseResultModal #poseResultBody{display:flex!important;flex:1 1 0!important;min-height:0!important;gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;align-items:stretch!important}
  #poseResultModal #poseResultBody[hidden]{display:none!important}
  #poseResultModal #poseResultBody>.pose-photo-page,
  #poseResultModal #poseResultBody>.pose-result-copy{box-sizing:border-box!important;flex:0 0 100%!important;width:100%!important;min-width:0!important;min-height:0!important;height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;scroll-snap-align:start;scroll-snap-stop:always;padding:0 4px 16px!important;overscroll-behavior-y:contain}
  #poseResultModal .pose-photo-page .pose-sketch-panel{margin-top:16px;border-bottom:0}
}
