.prose-chat {
    color: currentColor;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.prose-chat :where(h1, h2, h3) {
    color: inherit;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
}
.prose-chat :where(h1) { font-size: 1.25em; }
.prose-chat :where(h2) { font-size: 1.1em; }
.prose-chat :where(h3) { font-size: 1em; }

.prose-chat :where(p) {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.prose-chat :where(a) {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.prose-chat :where(ul, ol) {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
    padding-left: 1.5em;
}
.prose-chat :where(ul) { list-style-type: disc; }
.prose-chat :where(ol) { list-style-type: decimal; }

.prose-chat :where(li) {
    margin-top: 0.25em;
}

.prose-chat :where(table) {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.prose-chat :where(th, td) {
    border: 1px solid currentColor;
    opacity: 0.6;
    padding: 0.3rem 0.5rem;
    text-align: left;
}

.prose-chat :where(thead) {
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.1);
}

.prose-chat :where(code) {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.1em 0.3em;
    border-radius: 4px;
    font-size: 0.9em;
}

.prose-chat :where(pre) {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.5em;
    border-radius: 6px;
    overflow-x: auto;
}

.prose-chat :where(pre code) {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
}

.prose-chat > :first-child {
    margin-top: 0;
}

.prose-chat > :last-child {
    margin-bottom: 0;
}

.prose-chat :where(details) {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin-top: 1em;
    margin-bottom: 1em;
    overflow: hidden;
}

.prose-chat :where(summary) {
    cursor: pointer;
    padding: 0.5em 1em;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.05);
}

.prose-chat :where(details[open] > summary) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.prose-chat :where(details > div) {
    padding: 1em;
}