.hbm-structured-editor {
    --hbm-structured-border: rgba(217, 197, 255, 0.22);
    --hbm-structured-border-active: rgba(214, 181, 111, 0.64);
    --hbm-structured-surface: rgba(8, 7, 12, 0.72);
    display: grid;
    width: 100%;
    border: 1px solid var(--hbm-structured-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--hbm-structured-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.hbm-structured-editor:focus-within {
    border-color: var(--hbm-structured-border-active);
    box-shadow: 0 0 0 3px rgba(201, 169, 107, 0.11);
}

.hbm-structured-editor.has-error,
.hbm-structured-editor.is-over-limit {
    border-color: rgba(255, 143, 155, 0.72);
}

.hbm-structured-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px;
    border-bottom: 1px solid var(--hbm-structured-border);
    background: linear-gradient(180deg, rgba(39, 31, 51, 0.94), rgba(23, 19, 31, 0.94));
}

.hbm-structured-editor__button {
    min-width: 34px;
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid rgba(217, 197, 255, 0.2);
    border-radius: 7px;
    color: #e8def5;
    background: rgba(8, 7, 12, 0.64);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.hbm-structured-editor__button:hover,
.hbm-structured-editor__button:focus-visible {
    border-color: rgba(214, 181, 111, 0.62);
    color: #f2d994;
    background: rgba(214, 181, 111, 0.1);
    outline: none;
}

.hbm-structured-editor__surface {
    min-height: 10rem;
    padding: 13px 15px;
    color: #f5f1fb;
    background: transparent;
    font: inherit;
    line-height: 1.65;
    overflow-wrap: anywhere;
    outline: none;
}

.hbm-structured-editor__surface:empty::before {
    content: attr(data-placeholder);
    color: #91899d;
    pointer-events: none;
}

.hbm-structured-editor__surface h2,
.hbm-structured-editor__surface h3,
.hbm-structured-editor__surface h4,
.hbm-structured-content h2,
.hbm-structured-content h3,
.hbm-structured-content h4 {
    margin: 1em 0 0.42em;
    color: #ead39a;
    line-height: 1.28;
}

.hbm-structured-editor__surface h2:first-child,
.hbm-structured-editor__surface h3:first-child,
.hbm-structured-editor__surface h4:first-child,
.hbm-structured-content h2:first-child,
.hbm-structured-content h3:first-child,
.hbm-structured-content h4:first-child,
.hbm-structured-content p:first-child,
.hbm-structured-content ul:first-child,
.hbm-structured-content ol:first-child,
.hbm-structured-content blockquote:first-child {
    margin-top: 0;
}

.hbm-structured-editor__surface p,
.hbm-structured-editor__surface ul,
.hbm-structured-editor__surface ol,
.hbm-structured-editor__surface blockquote,
.hbm-structured-content p,
.hbm-structured-content ul,
.hbm-structured-content ol,
.hbm-structured-content blockquote {
    margin: 0 0 0.85em;
}

.hbm-structured-editor__surface ul,
.hbm-structured-editor__surface ol,
.hbm-structured-content ul,
.hbm-structured-content ol {
    padding-left: 1.6em;
}

.hbm-structured-editor__surface li + li,
.hbm-structured-content li + li {
    margin-top: 0.28em;
}

.hbm-structured-editor__surface blockquote,
.hbm-structured-content blockquote {
    padding: 0.25em 0 0.25em 1em;
    border-left: 3px solid rgba(156, 108, 255, 0.55);
    color: #d7cfe2;
}

.hbm-structured-editor__surface a,
.hbm-structured-content a {
    color: #cbb2ff;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.hbm-structured-editor__status,
.hbm-structured-editor__validation {
    padding: 0 10px;
    color: #9d95aa;
    font-size: 0.75rem;
    line-height: 1.45;
    text-align: right;
}

.hbm-structured-editor__status {
    padding-top: 5px;
    padding-bottom: 7px;
    border-top: 1px solid rgba(217, 197, 255, 0.1);
}

.hbm-structured-editor__validation {
    color: #ffadb6;
    text-align: left;
}

.hbm-structured-editor__validation:not(:empty) {
    padding-top: 4px;
    padding-bottom: 8px;
}

.hbm-structured-editor__source {
    display: none !important;
}

.hbm-structured-content {
    color: inherit;
    line-height: inherit;
    overflow-wrap: anywhere;
}

.hbm-structured-content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .hbm-structured-editor__button {
        flex: 0 0 auto;
    }
}

