.preview {
  @keyframes blink {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }
  .code-cursor {
    display: inline-block;
    width: 2px;
    height: 12px;
    background-color: #53a6e9;
    animation: blink 1.5s infinite;
  }
  .code-completions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    top: 22px;
    padding: 4px;
    width: 50px;
    background-color: var(--bg);
    border-radius: 2px;
    font-family: monospace;
    > .code-completion {
      width: 100%;
      height: 10px;
      background-color: var(--fg);
      border-radius: 2px;
    }
  }
  .code-block-line {
    position: relative;
    display: flex;
    align-items: center;
    height: 12px;
    &.highlight {
      background-color: color-mix(in srgb, var(--bg), var(--fg) 50%);
    }
  }
  .code-block {
    display: inline-block;
    margin: 0 4px 0 0;
    line-height: 8px;
  }
}
