/* WYSIWYG description editor (network page + forms) */

.we-toolbar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg1);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    flex-wrap: wrap;
}
.we-toolbar button {
    background: none;
    border: none;
    border-right: 1px solid var(--border);
    color: var(--muted);
    padding: 7px 11px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.1s;
    font-family: inherit;
    line-height: 1;
}
.we-toolbar button:hover {
    background: var(--bg3);
    color: var(--text);
}
.we-toolbar button:active {
    background: rgba(101, 116, 205, 0.1);
    color: var(--ac);
}
.we-toolbar button:last-child {
    border-right: none;
}
.we-sep {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 2px;
    flex-shrink: 0;
}

.we-editable {
    min-height: 110px;
    max-height: 320px;
    overflow-y: auto;
    padding: 12px 14px;
    background: var(--bg1);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    color: var(--text2);
    font-size: 0.85rem;
    line-height: 1.7;
    outline: none;
}
.we-editable:focus {
    border-color: var(--ac);
}
.we-editable.we-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}
.we-editable.empty::before {
    content: attr(data-placeholder);
    color: var(--muted);
    pointer-events: none;
}
.we-editable h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 8px 0 4px;
}
.we-editable h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 6px 0 3px;
}
.we-editable strong,
.we-editable b {
    color: var(--text);
    font-weight: 700;
}
.we-editable em,
.we-editable i {
    font-style: italic;
}
.we-editable u {
    text-decoration: underline;
}
.we-editable ul,
.we-editable ol {
    margin: 4px 0;
    padding-left: 18px;
}
.we-editable li {
    margin-bottom: 2px;
}
.we-editable hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}
