.boc-expert-editor {
    display: grid;
    gap: 16px;
}

.boc-expert-editor__section-label {
    display: block;
    color: var(--boc-ui-form-label, #1f2937);
    font-weight: 700;
}

.boc-expert-editor__picker .boc-user-picker > label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.boc-expert-editor__picker,
.boc-expert-editor__manual {
    display: grid;
    gap: 12px;
}

.boc-expert-editor__picker .boc-managed-form__field {
    margin: 0;
}

.boc-expert-editor__separator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--boc-ui-form-description, #6b7280);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.boc-expert-editor__separator::before,
.boc-expert-editor__separator::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--boc-ui-form-input-border, #dcdcde);
}

.boc-expert-editor__manual-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.boc-expert-editor__manual-fields input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.boc-expert-editor__add {
    width: 100%;
    justify-content: center;
    margin: 0;
}

.boc-expert-editor__entries {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.boc-expert-editor__entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid var(--boc-ui-form-input-border, #dcdcde);
    border-radius: 8px;
    background: var(--boc-ui-form-input-bg, #fff);
}

.boc-expert-editor__initials {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--boc-ui-primary, #2271b1);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.boc-expert-editor__entry-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.boc-expert-editor__entry-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.boc-expert-editor__entry-title {
    color: var(--boc-ui-form-description, #6b7280);
    font-size: 0.875rem;
}

.boc-expert-editor__remove {
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    text-align: center;
    color: var(--boc-ui-button-destructive-bg, #b42318);
}

@media (max-width: 640px) {
    .boc-expert-editor__manual-fields {
        grid-template-columns: 1fr;
    }
}
