.tree-quick-branches,
.tree-mode-card {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tree-mode-label {
    color: #1d2643;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.tree-mode-button,
.tree-branch-button {
    opacity: .72;
}

.tree-mode-button.active,
.tree-branch-button.active {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(81, 66, 122, .22);
}

.tree-branch-button.active {
    background-color: #2f7d4e !important;
    box-shadow: 0 0 0 2px rgba(47, 125, 78, .28), 0 8px 18px rgba(47, 125, 78, .16);
}

.tree-proof-marker {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(255, 255, 255, .92);
    border: 1px solid transparent;
}

.tree-proof-marker-documented {
    color: #1f6b3a;
    border-color: #98d5ad;
    background: #eefaf1;
}

.tree-proof-marker-indirect {
    color: #6c5a1b;
    border-color: #dfcc88;
    background: #fff8df;
}

.tree-proof-marker-hypothesis {
    color: #8a4f00;
    border-color: #f0bf75;
    background: #fff0dc;
}

.tree-proof-marker-candidate {
    color: #7b1f58;
    border-color: #ddb2cf;
    background: #fff0f8;
}

.tree-person-image {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 1px solid #E4E2E9;
    background: white;
    border-radius: 4px;
    margin-top: 0;
    max-width: none;
    max-height: none;
}

.tree-node-edit {
    right: 14px;
    top: 10px;
}

.tree-person-title {
    position: absolute;
    top: 53px;
    left: 12px;
    right: 12px;
    margin-top: 0;
    width: auto;
}

.tree-person-dates {
    position: absolute;
    top: 74px;
    left: 12px;
    right: 12px;
    margin-top: 0;
    width: auto;
    color: #51427a;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-person-place {
    position: absolute;
    top: 91px;
    left: 18px;
    right: 18px;
    margin-top: 0;
    width: auto;
    color: #1d2643;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(81, 66, 122, .18);
    border-radius: 999px;
    padding: 2px 7px;
    z-index: 1;
}

.tree-person-badges {
    bottom: 9px;
    left: 10px;
    right: 10px;
    z-index: 2;
}

.tree-badge {
    background: rgba(255, 255, 255, .9);
}

.tree-node-person-compact .tree-proof-marker {
    top: 8px;
    left: 9px;
    font-size: 8px;
    padding: 2px 6px;
}

.tree-node-person-compact .tree-node-edit {
    top: 8px;
    right: 10px;
    font-size: 11px;
}

.tree-node-person-compact .tree-person-title {
    top: 25px;
    left: 10px;
    right: 10px;
    font-size: 12px;
}

.tree-node-person-compact .tree-person-dates {
    top: 46px;
    left: 10px;
    right: 10px;
    font-size: 9px;
}

.tree-node-marriage-compact {
    gap: 4px;
}

.tree-node-marriage-compact .tree-family-header {
    font-size: 9px;
}

.tree-family-compact-title {
    width: 100%;
    padding: 0 8px;
    color: #1d2643;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
