.tax-rule-logic-edit .condition-section {
    margin-top: 15px;
}

.tax-rule-logic-edit .condition-section:first-child {
    margin-top: 0;
}

.tax-rule-logic-edit .condition-section-operator,
.tax-rule-logic-summary .condition-section-operator {
    margin-top: 10px;
    font-weight: bold;
    color: var(--gray-soft, #999);
}

.tax-rule-logic-summary .condition-section-string {
    margin-top: 5px;
}

.tax-rule-logic-summary .condition-section-string:first-child {
    margin-top: 0;
}

/* Top-level group-head is just an empty spacer line (no remove-branch link or
   "(" bracket at level 0) — safe to collapse; nested branches (level > 0)
   still need it and are untouched by this selector. */
.tax-rule-logic-edit .group-head[data-level="0"] {
    display: none;
}
