/* ClosePDF Edit PDF 2.0 - touch and responsive controls v221. */
@media (max-width:1099px), (hover:none) and (pointer:coarse) {
  #workspace, #workspace .workspace-left, #workspace .workspace-right,
  #workspace #editor-panel, #workspace .preview-stage {max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
  #workspace .preview-toolbar {box-sizing:border-box!important;max-width:100%!important;min-width:0!important;align-items:center!important;gap:5px!important;}
  #workspace .preview-toolbar.page-arrows {display:flex!important;flex-wrap:wrap!important;gap:6px!important;}
  #workspace #pdfi-v305-actions {display:flex!important;align-items:center!important;flex-wrap:wrap!important;min-width:0!important;max-width:100%!important;gap:6px!important;}
  #workspace #pdfi-v305-actions button, #workspace .page-arrows .nav-btn,
  #workspace .page-meta button, #workspace .zoom-bar button {min-height:38px!important;min-width:38px!important;box-sizing:border-box!important;touch-action:manipulation!important;}
  #workspace #pdfi-v305-paragraph {display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:5px 9px!important;min-width:86px!important;width:auto!important;height:auto!important;white-space:nowrap!important;}
  #workspace #pdfi-v305-paragraph .cp221-paragraph-label {font-size:11px!important;font-weight:750!important;line-height:1.2!important;}
  #workspace #pdfi-v305-paragraph[aria-pressed=true] {border-color:#16a34a!important;background:#ecfdf5!important;color:#166534!important;}
  #workspace #pdfi-v305-paragraph:focus-visible {outline:2px solid #7c3aed!important;outline-offset:2px!important;}
  #workspace .page-meta, #workspace .zoom-bar {flex-wrap:wrap!important;gap:6px!important;}
  #workspace .tool-modes, #workspace .side-actions {display:flex!important;gap:7px!important;flex-wrap:wrap!important;min-width:0!important;}
  #workspace .tool-modes button, #workspace .side-actions button {min-height:39px!important;max-width:100%!important;}
  #workspace input:not([type=checkbox]):not([type=radio]), #workspace select,
  #workspace textarea {box-sizing:border-box!important;max-width:100%!important;}
  #workspace .preview-stage {overscroll-behavior:contain;}
  #workspace #pdfi-paragraph-mark-surface:not([hidden]) {touch-action:none!important;overscroll-behavior:none!important;}
  #workspace #text-layer.pdfi-area-mode .text-box {pointer-events:none!important;}
  #workspace #pdfi-area-mobile-note {display:block!important;max-width:100%!important;overflow-wrap:anywhere!important;}
  #workspace .pdfi-width-controls, #workspace .pdfi-mask-pad-row {flex-wrap:wrap!important;}
}
@media (max-width:360px) {
  #workspace #pdfi-v305-paragraph {min-width:77px!important;padding-inline:6px!important;}
  #workspace #pdfi-v305-paragraph .cp221-paragraph-label {font-size:10px!important;}
  #workspace #pdfi-v305-actions {gap:4px!important;}
}

@media (max-width:1099px), (hover:none) and (pointer:coarse) {
 html body #workspace .workspace-left>.page-arrows{grid-column:1/-1!important;}
 html body #workspace .page-arrows{display:flex!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:6px!important;width:100%!important;max-width:100%!important;flex:0 0 100%!important;}
 html body #workspace .page-arrows .nav-btn{width:38px!important;min-width:38px!important;max-width:38px!important;height:40px!important;min-height:40px!important;max-height:40px!important;}
 html body #workspace .page-arrows #pdfi-v305-actions{gap:5px!important;flex-wrap:nowrap!important;margin-left:0!important;padding-left:5px!important;}
 html body #workspace .page-arrows #pdfi-v305-actions .pdfi-v305-history{width:38px!important;min-width:38px!important;max-width:38px!important;height:40px!important;min-height:40px!important;max-height:40px!important;}
 html body #workspace .page-arrows #pdfi-v305-actions #pdfi-v305-paragraph{width:112px!important;min-width:112px!important;max-width:112px!important;height:40px!important;min-height:40px!important;max-height:40px!important;margin:0!important;padding:4px 7px!important;gap:4px!important;}
 html body #workspace .page-arrows #pdfi-v305-actions #pdfi-v305-paragraph .pdfi-v305-p-icon{display:none!important;}
 html body #workspace .page-arrows #pdfi-v305-actions #pdfi-v305-paragraph .cp221-paragraph-label{display:inline!important;white-space:nowrap!important;font:700 11px/1 Arial,sans-serif!important;}
}
