
  @layer PretComponent {
    /* A hit strip wider than the painted line, which only shows while
       the handle is pointed at, dragged or focused. The caller places
       the strip on the pane's edge. */
    .pretui-resize-handle[data-scopedcss-b9bea11158-8635c46f7d] {
      --pretui-resize-handle-size: 0.5rem;
      --pretui-resize-handle-outset: 0rem;
      --_pretui-resize-handle-dur: 180ms;
      position: relative;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      touch-action: none;
      user-select: none;
      -webkit-user-select: none;
    }
    .pretui-resize-handle[data-orientation='vertical'][data-scopedcss-b9bea11158-8635c46f7d] {
      inline-size: var(--pretui-resize-handle-size);
      block-size: 100%;
      cursor: col-resize;
    }
    .pretui-resize-handle[data-orientation='horizontal'][data-scopedcss-b9bea11158-8635c46f7d] {
      inline-size: 100%;
      block-size: var(--pretui-resize-handle-size);
      cursor: row-resize;
    }
    .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
      border-radius: var(--boxel-border-radius-2xs);
      background-color: transparent;
      transition: background-color var(--_pretui-resize-handle-dur) ease;
    }
    [data-orientation='vertical'] > .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
      inline-size: 2px;
      block-size: 100%;
    }
    [data-orientation='horizontal'] > .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
      inline-size: 100%;
      block-size: 2px;
    }
    /* The line runs along the pane's edge, on the side of the strip the
       handle's placement names. */
    [data-orientation='vertical'][data-line-edge='start']
      > .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
      justify-self: start;
    }
    [data-orientation='vertical'][data-line-edge='end']
      > .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
      justify-self: end;
    }
    [data-line-edge='left'] > .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
      justify-self: left;
    }
    [data-line-edge='right'] > .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
      justify-self: right;
    }
    [data-orientation='horizontal'][data-line-edge='start']
      > .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
      align-self: start;
    }
    [data-orientation='horizontal'][data-line-edge='end']
      > .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
      align-self: end;
    }
    /* The hit area reaches past the pane's edge by the outset, over a
       neighbor's gutter, without widening the strip the pane sets
       aside. */
    .pretui-resize-handle[data-scopedcss-b9bea11158-8635c46f7d]::before {
      content: '';
      position: absolute;
      inset: 0;
    }
    [data-orientation='vertical'][data-line-edge='start'][data-scopedcss-b9bea11158-8635c46f7d]::before {
      inset-inline-start: calc(-1 * var(--pretui-resize-handle-outset));
    }
    [data-orientation='vertical'][data-line-edge='end'][data-scopedcss-b9bea11158-8635c46f7d]::before {
      inset-inline-end: calc(-1 * var(--pretui-resize-handle-outset));
    }
    [data-line-edge='left'][data-scopedcss-b9bea11158-8635c46f7d]::before {
      left: calc(-1 * var(--pretui-resize-handle-outset));
    }
    [data-line-edge='right'][data-scopedcss-b9bea11158-8635c46f7d]::before {
      right: calc(-1 * var(--pretui-resize-handle-outset));
    }
    [data-orientation='horizontal'][data-line-edge='start'][data-scopedcss-b9bea11158-8635c46f7d]::before {
      inset-block-start: calc(-1 * var(--pretui-resize-handle-outset));
    }
    [data-orientation='horizontal'][data-line-edge='end'][data-scopedcss-b9bea11158-8635c46f7d]::before {
      inset-block-end: calc(-1 * var(--pretui-resize-handle-outset));
    }
    /* A stroke on a neutral surface takes the ink; the fill would all but
       vanish on a light one. */
    .pretui-resize-handle[data-dragging='true']
      > .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
      background-color: var(--primary-ink);
    }
    /* A tap on a touch screen leaves :hover stuck until the next tap. */
    @media (hover: hover) {
      .pretui-resize-handle:hover > .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
        background-color: var(--primary-ink);
      }
    }
    .pretui-resize-handle[data-scopedcss-b9bea11158-8635c46f7d]:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
      border-radius: var(--boxel-border-radius-sm);
    }
    /* Coarse pointers get a target a finger can find. */
    @media (any-pointer: coarse) {
      .pretui-resize-handle[data-scopedcss-b9bea11158-8635c46f7d] {
        --pretui-resize-handle-size: 1rem;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .pretui-resize-handle-line[data-scopedcss-b9bea11158-8635c46f7d] {
        transition: none;
      }
    }
  }
