/* T13: physical Galaxy Note8 native WebView acceptance; same one social app.
   Keep the original /app/ and all media rights/guardian backend checks. */
.dg1-social #page-create .dg13-media-picker{
 display:grid;gap:9px;min-width:0;padding:11px 12px;
 background:#f8f5ff;border:1px dashed #c6b5ee;border-radius:16px;
}
.dg1-social #page-create .dg13-media-picker>label{
 font-weight:850;font-size:13px;color:#51408e;
}
.dg1-social #page-create input.dg13-native-file-input{
 position:absolute!important;width:1px!important;height:1px!important;
 overflow:hidden;opacity:0;clip-path:inset(50%);pointer-events:none;
}
.dg1-social #page-create .dg13-media-button{
 min-height:47px;padding:9px 14px;border:0;border-radius:13px;
 background:#6044d4;color:white;font-size:14px;font-weight:900;
 cursor:pointer;touch-action:manipulation;
}
.dg1-social #page-create .dg13-media-button:focus-visible{
 outline:3px solid #1ba28e;outline-offset:3px;
}
.dg1-social #page-create .dg13-file-status{
 font-size:12px;color:#655b83;overflow-wrap:anywhere;text-align:start;
}
@media(max-width:600px){
 /* Bottom-nav is fixed: keep the video frame above it on a real device,
    including Android system bars and dynamic/small browser viewports. */
 body.dg55-social #page-reels #dg4ReelFrame{
  height:calc(100dvh - 220px - env(safe-area-inset-bottom))!important;
  min-height:300px!important;
  max-height:calc(100dvh - 205px - env(safe-area-inset-bottom))!important;
 }
 /* Buttons retain the four original actions; hide text glyphs whose
    pseudo-icons otherwise concatenate and overflow the 37px circle. */
 body.dg55-social #page-reels .dg4-controls{
  left:12px;right:auto;top:53px;width:42px;max-width:42px;gap:7px;
 }
 body.dg55-social #page-reels .dg4-controls button{
  font-size:0!important;line-height:0!important;white-space:nowrap;
  overflow:hidden;position:relative;min-width:41px;width:41px;
  min-height:41px;height:41px;padding:0!important;
  border-radius:50%;touch-action:manipulation;
 }
 body.dg55-social #page-reels .dg4-controls button::before{
  position:absolute;inset:0;display:grid;place-items:center;
  font-size:21px!important;line-height:1!important;
 }
 body.dg55-social #page-reels .dg4-rail{
  right:9px;bottom:33px;gap:5px;
 }
 body.dg55-social #page-reels .dg4-action{
  font-size:23px;min-height:40px;padding:2px;gap:2px;
 }
 body.dg55-social #page-reels .dg4-action span{
  font-size:10px;line-height:1.2;
 }
 body.dg55-social #page-reels .dg4-bottom{
  inset:auto 62px 31px 12px!important;
 }
}

/* Guest practice workbench uses the SAME native HTML file input,
   with a localized button and source-only File change event. */
body.dg57-ready #dg57Workbench .dg57-field input.dg13-native-file-input{
 position:absolute!important;width:1px!important;height:1px!important;
 overflow:hidden;opacity:0;clip-path:inset(50%);pointer-events:none;
 min-height:1px!important;padding:0!important;border:0!important;
}
body.dg57-ready #dg57Workbench .dg57-field .dg13-media-button{
 min-height:47px;padding:9px 12px;border:0;border-radius:12px;
 background:#6246d5;color:#fff;font-size:14px;font-weight:900;
 cursor:pointer;touch-action:manipulation;
}
body.dg57-ready #dg57Workbench .dg57-field .dg13-file-status{
 font-size:12px;color:#625782;text-align:start;overflow-wrap:anywhere;
}
/* The same fixed nav exists at compact tablet widths, so end the reel above it. */
@media(min-width:601px) and (max-width:820px){
 body.dg55-social #page-reels #dg4ReelFrame{
  height:calc(100dvh - 230px - env(safe-area-inset-bottom))!important;
  min-height:360px!important;
  max-height:calc(100dvh - 212px - env(safe-area-inset-bottom))!important;
 }
}
