@layer components {
  html {
    font-size: 0.9em;
    font: -apple-system-body;
  }

  .field_with_errors {
    background-color: oklch(97.1% 0.013 17.38);
    border-color: oklch(97.1% 0.013 17.38);
    border-width: 1px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 1;
  }

  .trix-content a {
    text-decoration: underline;
    font-weight: bold;
    text-align: left;
  }

  .trix-content ol li {
    list-style: decimal none outside;
  }

  .trix-content ul li {
    list-style: square none outside;
  }

  .trix-content h1 {
    font-size: 1.4rem;
    font-weight: bold;
  }

  .trix-content h2 {
    font-size: 1.3rem;
    font-weight: bold;
  }

  .trix-content h3 {
    font-size: 1.2rem;
    font-weight: bold;
  }

  @media (prefers-color-scheme: dark) {
    trix-toolbar .trix-button {
      filter: invert();
    }

    trix-editor {
      color: white;
    }

    trix-toolbar .trix-button:disabled {
      filter: invert() grayscale(1) brightness(2);
    }
    trix-toolbar .trix-button--icon::before {
      opacity: 1;
    }
    trix-toolbar .trix-button--icon:disabled::before {
      opacity: 0.5;
    }
  }

  .dropzone {
    border: none;
    border-radius: 0;
  }

  table.form-element-editor {
    trix-toolbar {
      display: none;
    }

    trix-editor {
      margin-top: 0.5rem;
      border: none;
    }
  }

  sl-drawer::part(base) {
    z-index: 10;
  }

  .card {
    break-inside: avoid;
  }
}
