/* SwiftWorksheets RC3.2.9: accurate tablet/phone single-object resize target.
   52px hit area surrounds a 32px blue visual grip; never scales with worksheet zoom.
   Native desktop selection handles remain unchanged. */
@media (any-pointer: coarse){
  /* Hide the old 13px handle inside a transformed object on touch screens. */
  .paper-element.selected > .resize-handle{display:none!important}
  #sw323ResizeGrip:not([hidden]){
    display:flex!important;position:fixed!important;z-index:77;
    width:52px!important;height:52px!important;
    padding:0!important;border:0!important;border-radius:0!important;
    align-items:center;justify-content:center;
    background:transparent!important;box-shadow:none!important;
    color:white;font-size:18px;font-weight:800;line-height:1;
    touch-action:none!important;-webkit-user-select:none;user-select:none;
    -webkit-touch-callout:none;isolation:isolate;transform:none!important;
    cursor:nwse-resize;
  }
  #sw323ResizeGrip:not([hidden])::before{
    content:"";position:absolute;inset:10px;z-index:-1;
    background:#2563eb;border:3px solid white;border-radius:9px;
    box-shadow:0 2px 6px rgba(15,23,42,.3);
  }
  #sw323ResizeGrip:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
}
/* Tablet already has its own object outline; only the fixed grip is needed. */
@media (any-pointer: coarse) and (min-width:701px){
  #sw323ResizeOutline{display:none!important}
}
/* Equivalent for iPadOS in desktop-site mode when it reports hover:none. */
@media (hover:none) and (min-width:701px){
  .paper-element.selected > .resize-handle{display:none!important}
  #sw323ResizeGrip:not([hidden]){
    display:flex!important;position:fixed!important;z-index:77;
    width:52px!important;height:52px!important;padding:0!important;
    border:0!important;box-shadow:none!important;border-radius:0!important;
    align-items:center;justify-content:center;background:transparent!important;
    color:white;font-size:18px;font-weight:800;touch-action:none!important;
    user-select:none;-webkit-user-select:none;isolation:isolate;transform:none!important;
  }
  #sw323ResizeGrip:not([hidden])::before{
    content:"";position:absolute;inset:10px;z-index:-1;background:#2563eb;
    border:3px solid white;border-radius:9px;box-shadow:0 2px 6px rgba(15,23,42,.3);
  }
  #sw323ResizeOutline{display:none!important}
}
@media print{#sw323ResizeGrip,#sw323ResizeOutline{display:none!important}}
