:host,
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    :host,
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }:host,
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    :host,
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }:host {
  /**
  * @prop --divider-width: The width of the visible divider. Default 4px.
  * @prop --divider-hit-area: The width of the hit area for the divider. Default 14px.
  * @prop --min: The minimum size of the split pane. Default 0%.
  * @prop --max: The maximum size of the split pane. Default 100%.
  * @prop --background-color: The background color of the divider. Default var(--nano-color-fill-neutral-weak).
  * @prop --content-color: The text color of the divider. Default var(--nano-color-fill-neutral).
  */
  --divider-width: 4px;
  --divider-hit-area: 14px;
  --min: 0%;
  --max: 100%;
  --background-color: var(--nano-color-fill-neutral-weak);
  --content-color: var(--nano-color-fill-neutral);
  display: grid;
}

.start,
.end {
  overflow: hidden;
}

.divider {
  flex: 0 0 var(--divider-width);
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
  color: var(--content-color);
  z-index: 1;
  font-size: 0.8rem;
}

.divider:focus {
  outline: none;
}

:host(:not([disabled])) .divider:focus-visible {
  background-color: var(--nano-focus-ring-color);
}

:host([disabled]) .divider {
  cursor: not-allowed;
}

/* Horizontal */
:host(:not([vertical], [disabled])) .divider {
  cursor: col-resize;
}

:host(:not([vertical])) .divider::after {
  display: flex;
  content: "";
  position: absolute;
  block-size: 100%;
  inset-inline-start: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
  inline-size: var(--divider-hit-area);
}

/* Vertical */
:host([vertical]) {
  flex-direction: column;
}

:host([vertical]:not([disabled])) .divider {
  cursor: row-resize;
}

:host([vertical]) .divider::after {
  content: "";
  position: absolute;
  inline-size: 100%;
  inset-block-start: calc(var(--divider-hit-area) / -2 + var(--divider-width) / 2);
  block-size: var(--divider-hit-area);
}