/* RC3.2.1 — clear touch selection without enlarging the rendered worksheet */
/* The invisible 44px line-hit area remains interactive, but must not draw a
   giant dashed rectangle over nearby worksheet artwork. */
@media (pointer: coarse), (max-width:700px){
  .paper-element.selected:not(.is-line){
    outline:2px solid #2563eb!important;
    outline-offset:1px!important;
  }
  .paper-element.is-line.selected{
    outline:none!important;
  }
  .paper-element.is-line.selected .sw-line-hit{
    background:transparent!important;
    outline:none!important;
    box-shadow:none!important;
  }
  .paper-element.is-line.selected::after{
    content:"";position:absolute;left:0;right:0;top:-1px;
    border-top:2px solid rgba(37,99,235,.88);
    pointer-events:none;z-index:4;
  }
  .paper-element.is-line[data-vertical="true"].selected::after{
    left:-1px;right:auto;top:0;bottom:0;border-top:0;
    border-left:2px solid rgba(37,99,235,.88);
  }
}
/* Phone line controls are kept off the artwork: the full line hit target moves
   the line and the end handle changes its length. Rotation stays in More. */
@media (max-width:700px){
  .paper-element.is-line.selected>.drag-handle,
  .paper-element.is-line.selected>.rotate-handle,
  .paper-element.is-text.selected>.rotate-handle{display:none!important}
}
@media print{
  .paper-element.is-line.selected::after{display:none!important}
}
