/* Inline height grip anchored to the BOTTOM EDGE of the preview.
 * Same glass/cyan visual language as V4's vertical column splitter grips.
 * Drag up/down to resize. Double click or keyboard Home resets/minimizes.
 */
html:not(.v4-arcade-mode) #v4-character .canvaswrap{
 height:var(--v4-preview-height,clamp(330px,47dvh,550px))!important;
 min-height:0!important;max-height:none!important;
 flex:0 0 auto!important;
}
#v4-character .v4-preview-size-handle{
 box-sizing:border-box!important;
 display:flex!important;align-items:center;justify-content:center;
 position:relative;z-index:55;
 align-self:center!important;
 width:96px!important;height:30px!important;
 min-width:96px!important;min-height:30px!important;
 flex:0 0 30px!important;
 margin:-13px auto -6px!important;
 padding:0!important;
 border:0!important;border-radius:15px!important;
 background:transparent!important;
 color:#d6f1ff!important;
 box-shadow:none!important;
 touch-action:none!important;
 cursor:ns-resize!important;
 user-select:none!important;-webkit-user-select:none!important;
 outline-offset:2px!important;
}
#v4-character .v4-preview-size-grip-track{
 box-sizing:border-box;
 width:79px;height:14px;
 display:flex;align-items:center;justify-content:center;gap:7px;
 border:1px solid rgba(160,214,255,.44);
 border-radius:999px;
 background:linear-gradient(170deg,rgba(87,148,211,.46),rgba(16,48,87,.89));
 box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 4px 13px rgba(0,12,35,.39);
 opacity:.85;
 transition:border-color .16s,background .16s,opacity .16s,box-shadow .16s;
 pointer-events:none;
}
#v4-character .v4-preview-size-grip-mark{
 display:block;flex:0 0 3px;
 width:3px;height:7px;border-radius:5px;
 background:rgba(200,237,255,.91);
 box-shadow:0 1px 2px rgba(6,35,67,.34);
}
#v4-character .v4-preview-size-handle:hover .v4-preview-size-grip-track,
#v4-character .v4-preview-size-handle:focus-visible .v4-preview-size-grip-track,
#v4-character .v4-preview-size-handle.v4-preview-size-dragging .v4-preview-size-grip-track{
 opacity:1;
 border-color:rgba(216,247,255,.89);
 background:linear-gradient(165deg,rgba(91,187,251,.61),rgba(23,81,142,.92));
 box-shadow:inset 0 1px 0 rgba(255,255,255,.41),
  0 0 0 3px rgba(85,188,241,.14),0 5px 17px rgba(0,23,52,.42);
}
#v4-character .v4-preview-size-handle:focus-visible{
 outline:2px solid #c5efff!important;
}
body.v4-preview-height-dragging,
body.v4-preview-height-dragging *{
 cursor:ns-resize!important;
 user-select:none!important;-webkit-user-select:none!important;
}
html.v4-arcade-mode #v4-character .v4-preview-size-handle{
 display:none!important;
}
@media(max-width:550px){
 #v4-character .v4-preview-size-handle{
  width:110px!important;min-width:110px!important;
  height:34px!important;min-height:34px!important;
  flex-basis:34px!important;
  margin:-15px auto -8px!important;
 }
 #v4-character .v4-preview-size-grip-track{width:82px;height:17px}
 #v4-character .v4-preview-size-grip-mark{height:9px}
}
@media(prefers-reduced-motion:reduce){
 #v4-character .v4-preview-size-grip-track{transition:none!important}
}
