div.message {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    margin-bottom: 10px;
}

div.header {
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

span.msg-id {
    color: #0366d6;
    font-weight: bold;
    margin-right: 10px;
}

div.content {
    margin: 5px 0;
}

div.button-placeholder {
    height: 25px;
    margin-top: 5px;
}

code {
    background-color: #f6f8fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

pre {
    background-color: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
}

h1 { font-size: 2em; margin: 0.5em 0; }
h2 { font-size: 1.5em; margin: 0.5em 0; }
h3 { font-size: 1.2em; margin: 0.5em 0; }

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

li {
    margin-left: 20px;
}

pre.python-code {
    background-color: #272822;
    color: #f8f8f2;
    padding: 16px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    border-left: 3px solid #66d9ef;
}

pre.code-block {
    background-color: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    overflow-x: auto;
    border-left: 3px solid #e1e4e8;
}

span.math-inline {
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    padding: 0 4px;
}

div.math-block {
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    margin: 1em 0;
    padding: 1em;
    text-align: center;
    background-color: #f8f9fa;
    border-left: 3px solid #2196f3;
}

span.fraction {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    padding: 0 3px;
}

span.numerator {
    display: block;
    border-bottom: 1px solid;
    padding: 0 3px;
}

span.denominator {
    display: block;
    padding: 0 3px;
}

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

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

.message-content {
    flex: 1;
    margin-right: 10px;
}

.button-container {
    flex-shrink: 0;
    margin-left: 10px;
    margin: 5px 0;
    text-align: left;
}

.message-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 10px 0 5px 0;
}