/* Reuse existing Viewer controls; only the drawing owns touch gestures. */
body.qanta-touch-viewer #app{height:100vh;height:100dvh}
body.qanta-touch-viewer #canvas-area{min-width:0}
body.qanta-touch-viewer #canvas-wrap{touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
body.qanta-touch-viewer #standard-measure-bar,
body.qanta-touch-viewer #easy-measure-bar,
body.qanta-touch-viewer #measure-tools-section,
body.qanta-touch-viewer #standard-entry-controls,
body.qanta-touch-viewer #btn-pdf,
body.qanta-touch-viewer #btn-open,
body.qanta-touch-viewer #btn-cad-open,
body.qanta-touch-viewer #btn-save-qnt,
body.qanta-touch-viewer #btn-save-qnt-as,
body.qanta-touch-viewer #btn-file-menu{display:none!important}
body.qanta-touch-viewer .tool-group:has(#btn-scale),
body.qanta-touch-viewer .tool-group:has(#roundup-preset){display:none!important}
body.qanta-touch-viewer .tbtn{min-width:44px;min-height:48px}
body.qanta-touch-viewer .zoom-btn{min-height:40px;min-width:40px}
body.qanta-touch-viewer .tab-item{min-height:40px;touch-action:pan-x}
body.qanta-touch-viewer #sidebar{width:280px;flex:0 0 280px}
body.qanta-touch-viewer #tabbar,
body.qanta-touch-viewer #toolbar{overscroll-behavior-x:contain}
body.qanta-touch-viewer .qanta-viewer-form:not(.standard-pane-box){max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}
body.qanta-touch-viewer .qanta-viewer-form .btn-cancel{min-height:40px}
body.qanta-touch-viewer .standard-pane-fields{overscroll-behavior-y:contain}
#viewer-touch-hint{position:absolute;bottom:8px;left:8px;max-width:calc(100% - 16px);padding:5px 9px;border:1px solid #d4dbe5;border-radius:6px;background:#ffffffeb;color:#415166;font-size:11px;line-height:1.6;font-family:inherit;pointer-events:none;z-index:150}
#viewer-touch-cursor{position:absolute;width:22px;height:22px;transform:translate(-50%,-50%);border:2px solid #378add;border-radius:50%;box-shadow:0 0 0 1px #fff;pointer-events:none;z-index:151}
#viewer-touch-cursor::before,#viewer-touch-cursor::after{content:'';position:absolute;background:#378add;box-shadow:0 0 0 1px #fff}
#viewer-touch-cursor::before{width:30px;height:1px;left:-6px;top:8px}
#viewer-touch-cursor::after{height:30px;width:1px;top:-6px;left:8px}
#viewer-touch-hint[hidden],#viewer-touch-cursor[hidden]{display:none!important}
@media(max-width:900px){body.qanta-touch-viewer #sidebar{width:250px;flex:0 0 250px}}
