.commentmark-demo-panel {
    background: #fff;
    border: 1px solid #e1e5ee;
    border-radius: 8px;
    padding: 20px;
}

.commentmark-demo-panel h2 {
    margin: 0 0 16px 0;
    text-align: left;
}

.commentmark-content {
    white-space: pre-wrap;
}

.commentmark-form {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.commentmark-shell {
    overflow: hidden;
    border: 1px solid #bac3d0;
    border-radius: 8px;
    background: #fff;
}

.commentmark-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 42px;
    padding: 6px;
    border-bottom: 1px solid #d8dee9;
    background-image: linear-gradient(to bottom, #f6fbf0, #aadc6e);
}

.commentmark-toolbar-button,
.commentmark-emoji-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #c7d0dd;
    border-radius: 6px;
    background: #fff;
    color: #263241;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.commentmark-toolbar-button:hover,
.commentmark-emoji-button:hover {
    border-color: #3498db;
    background: #eef6ff;
}

.commentmark-toolbar-button[aria-pressed='true'] {
    border-color: #2c7fc0;
    background: #dceeff;
    color: #174c75;
}

.commentmark-emoji-toggle[aria-expanded='true'] {
    border-color: #2c7fc0;
    background: #dceeff;
    color: #174c75;
}

.commentmark-emoji-panel {
    border-top: 1px solid #d8dee9;
    background: #fbfcfe;
}

.commentmark-emoji-panel[hidden] {
    display: none;
}

.commentmark-emoji-category[hidden] {
    display: none;
}

.commentmark-emoji-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: #fefeea;
}

.commentmark-emoji-button {
    width: auto;
    max-width: 100%;
    padding: 0 8px;
    font-size: 17px;
    white-space: nowrap;
}

.commentmark-editor-root {
    min-height: 180px;
    padding: 12px;
    border: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
    line-height: 1.5;
    outline: none;
    white-space: pre-wrap;
}

.commentmark-shell-emoji-open .commentmark-editor-root {
    border-radius: 0;
}

.commentmark-editor-root:focus {
    box-shadow: inset 0 0 0 2px rgba(52, 152, 219, 0.22);
}

.commentmark-editor-root:empty::before {
    color: #7b8494;
    content: attr(data-placeholder);
}

.commentmark-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 3px;
}

.commentmark-limit-message {
    margin-top: 8px;
    color: #8a5a00;
    font-size: 13px;
    line-height: 1.4;
}

.commentmark-submit-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
