/* ========================= */
/* editor */
/* ========================= */

[data-editor-tabs],
[data-editor-toolbar] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    margin-bottom: .25rem;
}

[data-editor] [aria-pressed='true'] {
    font-weight: bold;
}

[data-editor-styles] {
    font-size: .85em;
    margin-left: auto;
}

[data-editor-tag],
[data-editor-upload] {
    min-width: 1.9rem;
}

[data-editor-tag] svg,
[data-editor-upload] svg {
    fill: currentColor;
    height: 1em;
    width: 1em;
}

[data-editor-dropping] [data-editor-input] {
    outline: 2px dashed Highlight;
}

[data-editor] [hidden] {
    display: none;
}

[data-editor-preview] {
    border: 1px solid currentColor;
    min-height: 4rem;
    padding: .5rem;
}

/* ========================= */
/* mentions */
/* ========================= */

[data-mention-menu] {
    position: absolute;
    background: Canvas;
    border: 1px solid currentColor;
    color: CanvasText;
    list-style: none;
    margin: 0;
    overflow-y: auto;
    padding: 0;
    max-height: 14rem;
    min-width: 12rem;
    z-index: 1000;
}

[data-mention-menu][hidden] {
    display: none;
}

[data-mention-item] {
    cursor: pointer;
    padding: .25rem .5rem;
    white-space: nowrap;
}

[data-mention-item][aria-selected='true'] {
    background: Highlight;
    color: HighlightText;
}

[data-mention-name] {
    font-size: .85em;
    margin-left: .5rem;
    opacity: .7;
}
