  .lexxy-editor__content, .lexxy-content, .agent-output {
    h1 {
      font-size: 1.2rem;
      font-weight: 500;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
    }
    h2 {
      font-size: 1.05rem;
      font-weight: 500;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
    }
    h3 {
      font-size: 1rem;
      font-weight: 500;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
    }
    h4 {
      font-size: 0.9rem;
      font-weight: 500;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
    }
    h5 {
      font-size: 0.8rem;
      font-weight: 500;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
    }
    h6 {
      font-size: 0.7rem;
      font-weight: 500;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
    }
    /* Paragraphs */
    p {
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
      line-height: 1.6;
      color: #374151;
    }

    li > p {
      margin-top: 0;
      margin-bottom: 0;
    }

    /* Strong/Bold */
    strong {
      font-weight: 500;
      color: #1f2937;
    }

    /* Emphasis/Italic */
    em {
      font-style: italic;
    }

    /* Text Decorations */
    del {
      text-decoration: line-through;
      color: #6b7280;
    }

    mark {
      background-color: #fef08a;
      color: #1f2937;
      padding: 0.125rem 0.25rem;
    }

    u {
      text-decoration: underline;
    }

    sup {
      vertical-align: super;
      font-size: 0.75em;
    }

    sub {
      vertical-align: sub;
      font-size: 0.75em;
    }

    /* Lists */
    ul, ol {
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
      padding-left: 1.5rem;
      list-style-position: outside;
    }

    ul {
      list-style-type: disc;
    }

    ol {
      list-style-type: decimal;
    }

    li {
      display: list-item;
      margin-top: 0.25rem;
      margin-bottom: 0.25rem;
      line-height: 1.6;
      color: #374151;
      padding-left: 0.25rem;
    }

    /* Nested lists */
    ul ul, ol ul {
      list-style-type: circle;
      margin-top: 0.25rem;
      margin-bottom: 0.25rem;
    }

    ul ul ul, ol ul ul {
      list-style-type: square;
    }

    /* Links */
    a {
      color: #2563eb;
      text-decoration: underline;
      font-weight: 500;
    }

    a:hover {
      color: #1d4ed8;
    }

    /* Code */
    code {
      background-color: #f3f4f6;
      color: #dc2626;
      padding: 0.125rem 0.375rem;
      border-radius: 0.25rem;
      font-size: 0.875em;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }

    pre {
      background-color: #1f2937;
      color: #f9fafb;
      padding: 1rem;
      border-radius: 0.5rem;
      overflow-x: auto;
      margin-top: 0.75rem;
      margin-bottom: 0.75rem;
    }

    pre code {
      background-color: transparent;
      color: inherit;
      padding: 0;
      border-radius: 0;
      font-size: 0.875rem;
    }

    /* Blockquotes */
    blockquote {
      border-left: 4px solid #d1d5db;
      padding-left: 1rem;
      margin-left: 0;
      margin-top: 0.75rem;
      margin-bottom: 0.75rem;
      color: #6b7280;
      font-style: italic;
    }

    /* Horizontal Rule */
    hr {
      border: 0;
      border-top: 1px solid #e5e7eb;
      margin-top: 1.5rem;
      margin-bottom: 1.5rem;
    }

    /* Tables */
    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 0.75rem;
      margin-bottom: 0.75rem;
    }

    th {
      background-color: #f9fafb;
      font-weight: 600;
      text-align: left;
      padding: 0.5rem;
      border: 1px solid #e5e7eb;
    }

    td {
      padding: 0.5rem;
      border: 1px solid #e5e7eb;
    }

    /* Line breaks in markdown */
    br {
      display: block;
      content: "";
      margin-top: 0.25rem;
    }
  }
