@mixin tab($darkmode: false) {

  display: flex;
  flex-direction: column;

  .meta-data {
    flex: 0;
    height: unset;
    columns: 2;
    gap: 0 16px;


    div {
      break-inside: avoid;
    }

    .meta-line {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 0 8px;
      padding-bottom: 8px;
    }

    .double {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-areas: 'label label' 'left right';
      gap: 0 8px;

      label {
        grid-area: label;
      }
    }

    & + .meta-data {
      flex: 1;
    }
  }

  .meta-data.html {
    height: unset;
    display: flex;
    flex-direction: row;
    gap: 0 8px;
    flex: 1;

    & > div {
      flex: 1;
      display: flex;
      flex-direction: column;
      height: 100%;

      label {
        flex: 0;
      }

      .editor, textarea {
        flex: 1;
        resize: none;
      }
    }

  }

}
