.drawer {
  @apply absolute h-full w-9 bg-document-background top-0 transition-all right-0 overflow-hidden text-text-primary p-1 shadow -mr-5 ml-0;
  header {
    @apply rotate-90 grid gap-2 justify-items-end;
    grid-template-columns: 1fr auto;
    .toggle {
      @apply cursor-pointer;
    }
    .title {
      @apply text-nowrap;
    }
  }
  .inner {
    @apply p-1 flex flex-col gap-3;
  }
  &.left {
    @apply left-0 right-auto -ml-5 mr-0;
  }
  &:not([open]) {
    .inner {
      @apply hidden;
    }
  }
  &[open] {
    @apply w-lg;
    header {
      @apply rotate-none;
      .toggle {
        @apply rotate-45;
      }
      .title {
        @apply hidden;
      }
    }
  }
}
