#pdfObjectSelection{transform-origin:center center}
#pdfObjectSelection[data-kind=text]::before{content:'';position:absolute;left:50%;top:-25px;height:24px;border-left:1.5px solid #a44069;pointer-events:none}
.pdfRotationHandle{position:absolute!important;left:50%;top:-30px;width:24px!important;height:24px!important;min-height:24px!important;padding:3px!important;transform:translate(-50%,-50%);border:1.5px solid #873759!important;background:#fff!important;color:#873759!important;border-radius:50%!important;touch-action:none;cursor:grab;display:flex;align-items:center;justify-content:center}
.pdfRotationHandle svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#pdfObjectSelection[data-kind=image] .pdfRotationHandle{display:none}
.dockFrameHistory{display:flex;align-items:center;gap:4px;margin-right:5px;padding-right:7px;border-right:1px solid #b99a5b55}
#toolsPage .dockFrameHistory button{width:32px!important;height:32px!important;min-height:32px!important;padding:5px!important}
.dockFrameHistory svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#toolsPage #dockToolsScroll .objectRotationLabel{font-size:13px}
#pdfReader{height:98dvh;max-height:98dvh;overflow:hidden}
#pdfReader #readerViewport,#floatingCanvasHost #readerViewport{min-height:0!important;max-height:none!important;flex:1;overflow:auto;overscroll-behavior:contain}
@media(max-width:650px){#toolsPage .dockZoom{flex-wrap:wrap;justify-content:flex-end;row-gap:5px}.dockFrameHistory{flex:0 0 100%;justify-content:flex-end;border-right:0;padding-right:0;margin-right:0}#toolsPage .dockFrameHistory button{width:28px!important;height:28px!important;min-height:28px!important}.pdfRotationHandle{width:28px!important;height:28px!important;min-height:28px!important;top:-32px}}

#pdfObjectSelection.rotationBelow::before{top:100%;height:24px}#pdfObjectSelection.rotationBelow .pdfRotationHandle{top:calc(100% + 30px)}

/* Eight text resize points; images retain their six resize points. */
#pdfObjectSelection[data-kind=text] .pdfResizeHandle{width:9px!important;height:9px!important;min-height:9px!important;border-width:1.5px!important}
#pdfObjectSelection[data-kind=text] .pdfResizeHandle{display:block}
#pdfObjectSelection[data-kind=text] .pdfResizeHandle:is([data-handle=n],[data-handle=s],[data-handle=w],[data-handle=e]){width:11px!important;height:11px!important;min-height:11px!important}
#pdfObjectSelection[data-kind=text] .pdfResizeHandle::after{content:"";position:absolute;inset:-6px;border-radius:50%}
@media(pointer:coarse){#pdfObjectSelection[data-kind=text] .pdfResizeHandle,#pdfObjectSelection[data-kind=text] .pdfResizeHandle:is([data-handle=n],[data-handle=s],[data-handle=w],[data-handle=e]){width:14px!important;height:14px!important;min-height:14px!important}}
