        html, body {
            height: 100%;
        }
        body {
            min-height: 100%;
        }

        .aett-page-theme-toggle {
            position: fixed;
            top: 6.25rem;
            right: 1rem;
            z-index: 100;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            width: 42px !important;
            height: 42px !important;
            min-width: 42px !important;
            min-height: 42px !important;
            padding: 0 !important;
            border: 1px solid var(--k-border, #d7dde3) !important;
            border-radius: 50% !important;
            box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.16);
        }
        .aett-page-theme-icon {
            display: block;
            width: 22px;
            height: 22px;
        }
        .aett-page-theme-icon-light {
            display: none;
        }
        html[data-theme="dark"] .aett-page-theme-icon-dark {
            display: none;
        }
        html[data-theme="dark"] .aett-page-theme-icon-light {
            display: block;
        }
        @media (max-width: 720px) {
            .aett-page-theme-toggle {
                top: 5.5rem;
                right: 0.75rem;
            }
        }
        .aett-tree-page {
            min-height: 0;
            padding: 1rem 1rem 0;
            box-sizing: border-box;
        }
        .aett-tree-panel {
            min-height: 0;
            margin-bottom: 1rem;
            display: flex;
            flex-direction: column;
        }
        .aett-tree-panel .k-panel-body {
            position: relative;
        }
        .aett-tree-toolbar {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            z-index: 20;
            display: flex;
            align-items: center;
            gap: 0.45rem;
            flex-wrap: nowrap;
            padding: 0.3rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.16) !important;
            box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.05) !important;
            backdrop-filter: blur(2px);
        }
        .aett-tree-toolbar button.aett-tree-control-button,
        #treeSearchButton,
        #treeResetButton,
        #treeFullscreenButton,
        #treeZoomInButton,
        #treeZoomOutButton {
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            min-height: 40px !important;
            max-width: 40px !important;
            max-height: 40px !important;
            padding: 0 !important;
            margin: 0 !important;
            border-radius: 999px !important;
            aspect-ratio: 1 / 1 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex: 0 0 40px !important;
            box-sizing: border-box !important;
            border: 1px solid var(--k-border, #d7dde3) !important;
            background: rgba(255, 255, 255, 0.36) !important;
            color: #b60000 !important;
            font-size: 1.25rem !important;
            line-height: 1 !important;
            cursor: pointer;
            position: relative !important;
            text-align: center !important;
        }
        .aett-tree-toolbar button.aett-tree-control-button:hover,
        .aett-tree-toolbar button.aett-tree-control-button.is-active,
        #treeSearchButton:hover,
        #treeSearchButton.is-active,
        #treeResetButton:hover,
        #treeFullscreenButton:hover,
        #treeFullscreenButton.is-active,
        #treeZoomInButton:hover,
        #treeZoomOutButton:hover {
            background: rgba(243, 246, 249, 0.55) !important;
        }
        .aett-tree-subtitle {
            color: #526070;
            font-size: 0.92rem;
            margin-top: 0.25rem;
        }
        #treeViewport {
            overscroll-behavior: none;
            position: relative;
            flex: 1;
            min-height: 520px;
            overflow: hidden;
            border: 1px solid var(--k-border, #d7dde3);
            border-radius: 0.85rem;
            background:
                linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(247,249,251,0.98) 52%, rgba(232,238,245,0.95) 100%);
            touch-action: none;
            cursor: grab;
            user-select: none;
        }
        #treeViewport.is-dragging {
            cursor: grabbing;
        }
        .aett-tree-stage {
            position: absolute;
            inset: 0;
        }
        .aett-tree-lines {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }
        .aett-tree-line {
            fill: none;
            stroke: #7f8d9a;
            stroke-width: 2.1;
            vector-effect: none;
            stroke-linecap: square;
            stroke-linejoin: round;
            opacity: 1;
        }
        .aett-tree-line.partner {
            stroke: #6f7d89;
            stroke-width: 2.1;
        }
        .aett-tree-line.parent-child.female {
            stroke: #b01812;
            stroke-width: 2.1;
        }
        .aett-tree-line.parent-child.male {
            stroke: #2f5f8d;
            stroke-width: 2.1;
        }
        .aett-tree-line.family-bar,
        .aett-tree-line.child-bar {
            stroke: #8d99a5;
            stroke-width: 2.1;
        }
        .aett-tree-line.family-trunk,
        .aett-tree-line.child-stem {
            stroke: #8d99a5;
            stroke-width: 2.1;
        }
        .aett-tree-nodes {
            position: absolute;
            inset: 0;
            z-index: 3;
        }
        .aett-tree-node {
            display: block;
            margin: 0;
            font: inherit;
            text-align: left;
            line-height: normal;
            vertical-align: top;
            position: absolute;
            width: 172px;
            height: 82px;
            border: 1px solid #cfd8e3;
            border-radius: 0.9rem;
            background: #fff !important;
            background-color: #fff !important;
            opacity: 1 !important;
            box-shadow: 0 6px 18px rgba(18, 24, 39, 0.12);
            box-sizing: border-box;
            padding: 0.48rem 0.58rem 0.46rem;
            transform-origin: center center;
            cursor: pointer;
            overflow: hidden;
            transition: box-shadow 160ms ease, border-color 160ms ease;
        }
        .aett-tree-node:focus-visible {
            outline: 2px solid rgba(182, 0, 0, 0.35);
            outline-offset: 3px;
        }
        .aett-tree-node > div {
            display: block;
        }
        .aett-tree-content {
            min-width: 0;
        }
        .aett-tree-node.has-primary-image .aett-tree-content {
            margin-left: 3.05rem;
        }
        .aett-tree-primary-image {
            position: absolute;
            left: 0.48rem;
            top: 0.48rem;
            width: 2.56rem;
            height: 2.56rem;
            overflow: hidden;
            border: 1px solid #d7dde3;
            border-radius: 0.5rem;
            background: #f3f6f9;
            pointer-events: none;
        }
        .aett-tree-primary-photo {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .aett-tree-primary-image.has-crop .aett-tree-primary-photo {
            position: absolute;
            left: var(--aett-tree-crop-left);
            top: var(--aett-tree-crop-top);
            width: var(--aett-tree-crop-image-width);
            height: var(--aett-tree-crop-image-height);
            max-width: none;
            max-height: none;
            object-fit: fill;
        }
        .aett-tree-photo-watermark {
            position: absolute;
            right: 0.16rem;
            bottom: 0.16rem;
            z-index: 2;
            display: block;
            width: 32%;
            height: auto;
            max-height: 28%;
            object-fit: contain;
            object-position: right bottom;
            pointer-events: none;
        }
        .aett-tree-name,
        .aett-tree-first-name,
        .aett-tree-last-name,
        .aett-tree-dates,
        .aett-tree-relation {
            margin: 0;
            padding: 0;
        }
        .aett-tree-node:hover {
            box-shadow: 0 10px 28px rgba(18, 24, 39, 0.18);
            border-color: #9ba8b5;
        }
        .aett-tree-node.is-focus {
            border: 1.5px solid #121827;
            border-left-width: 1.5px;
            box-shadow: 0 12px 36px rgba(18, 24, 39, 0.23);
        }
        .aett-tree-node::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 3px;
            background: #6f7a86;
            border-radius: 0 0 0.9rem 0.9rem;
            pointer-events: none;
        }
        .aett-tree-node.is-female::after {
            background: #b01812;
        }
        .aett-tree-node.is-male::after {
            background: #2f5f8d;
        }
        .aett-tree-node.is-unknown::after {
            background: #6f7a86;
        }
        .aett-tree-name {
            color: #121827;
            line-height: 1.05;
            overflow: hidden;
            font-family: "Ubuntu Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
            padding-right: 0.05rem;
        }
        .aett-tree-first-name,
        .aett-tree-last-name {
            display: block;
            font-size: 0.84rem;
            font-weight: 400;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .aett-tree-first-name em,
        .aett-tree-last-name em {
            font-style: italic;
            font-weight: 400;
        }
        .aett-tree-later-names {
            font-size: 0.68rem;
            font-weight: 400;
        }
        .aett-tree-dates {
            font-size: 0.64rem;
            line-height: 0.9rem;
            min-height: 0.9rem;
            color: #526070;
            margin-top: 0.12rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .aett-tree-relation {
            position: absolute;
            left: 0.58rem;
            bottom: 0.36rem;
            display: inline-flex;
            align-items: center;
            height: 16px;
            padding: 0 0.38rem;
            border-radius: 999px;
            background: #eef2f5;
            color: #526070;
            font-size: 0.62rem;
            max-width: calc(100% - 2.3rem);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .aett-tree-person-code {
            position: absolute;
            right: 0.54rem;
            bottom: 0.43rem;
            color: #526070;
            font-size: 0.45rem;
            font-weight: 400;
            letter-spacing: 0.06em;
            line-height: 1;
            opacity: 0.42;
            white-space: nowrap;
            pointer-events: none;
        }
        .aett-tree-lens {
            position: absolute;
            left: 50%;
            top: 50%;
            box-sizing: border-box;
            width: var(--aett-tree-lens-diameter, 300px);
            height: var(--aett-tree-lens-diameter, 300px);
            transform: translate(-50%, -50%);
            border-radius: 999px;
            border: 1px solid rgba(179, 0, 0, 0.18);
            background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.28) 36%, rgba(255, 255, 255, 0.12) 67%, rgba(255, 255, 255, 0) 82%);
            box-shadow:
                0 0 0 9999px rgba(255, 255, 255, 0.08),
                0 1.2rem 3rem rgba(15, 23, 42, 0.08);
            pointer-events: none;
            z-index: 2;
            opacity: 0;
            transition: opacity 140ms ease;
        }
        #treeViewport.is-lens-enabled .aett-tree-lens {
            opacity: 1;
        }
        .aett-tree-hint {
            position: absolute;
            left: 1rem;
            bottom: 1rem;
            z-index: 4;
            padding: 0.45rem 0.65rem;
            border-radius: 999px;
            background: rgba(255,255,255,0.9);
            color: #526070;
            font-size: 0.82rem;
            box-shadow: 0 4px 14px rgba(18,24,39,0.08);
            pointer-events: none;
        }
        .aett-tree-empty {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            color: #526070;
            text-align: center;
            pointer-events: none;
        }
        @media (max-width: 760px) {
            .aett-tree-page {
                min-height: 0;
                padding: 0.6rem;
            }
            .aett-tree-node {
                width: 152px;
                height: 82px;
                padding: 0.52rem 0.58rem;
            }
            .aett-tree-hint {
                display: none;
            }
        }





        .aett-tree-control-button .aett-control-svg {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 1.25rem;
            height: 1.25rem;
            transform: translate(-50%, -50%);
            color: #b60000;
            display: block;
            pointer-events: none;
        }
        .aett-tree-control-button .aett-control-svg-small {
            width: 1.05rem;
            height: 1.05rem;
        }
        .aett-tree-control-button .aett-control-svg,
        .aett-tree-control-button .aett-control-svg * {
            fill: none;
            stroke: #b60000;
        }

        .k-footer {
            position: static !important;
            clear: both;
            margin-top: 1rem;
        }



        html.aett-tree-fullscreen-open,
        body.aett-tree-fullscreen-open {
            overflow: hidden;
            overscroll-behavior: none;
        }

        #treeViewport.is-app-fullscreen {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100dvh;
            min-height: 100dvh;
            z-index: 9999;
            border-radius: 0;
            border: 0;
            box-shadow: none;
            touch-action: none;
        }

        .aett-tree-search-panel {
            position: absolute;
            top: 4.2rem;
            left: 0.75rem;
            z-index: 30;
            width: min(22rem, calc(100% - 1.5rem));
            display: none;
            padding: 0.55rem;
            border: 1px solid rgba(148, 163, 184, 0.35);
            border-radius: 0.95rem;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 0.8rem 2.2rem rgba(15, 23, 42, 0.16);
            backdrop-filter: blur(10px);
            box-sizing: border-box;
            pointer-events: auto;
        }

        .aett-tree-search-panel.is-open {
            display: block;
        }

        .aett-tree-search-label {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .aett-tree-search-input {
            width: 100%;
            min-height: 2.4rem;
            border: 1px solid var(--k-border, #d7dde3);
            border-radius: 0.7rem;
            padding: 0.45rem 0.65rem;
            box-sizing: border-box;
            font: inherit;
            background: rgba(255, 255, 255, 0.96);
            color: #172033;
        }

        .aett-tree-search-input:focus {
            outline: 2px solid rgba(182, 0, 0, 0.18);
            border-color: rgba(182, 0, 0, 0.35);
        }

        .aett-tree-search-results {
            margin-top: 0.4rem;
            max-height: 16rem;
            overflow: auto;
            display: grid;
            gap: 0.25rem;
        }

        .aett-tree-search-result {
            width: 100%;
            border: 0;
            border-radius: 0.65rem;
            padding: 0.5rem 0.6rem;
            background: transparent;
            color: #172033;
            text-align: left;
            cursor: pointer;
            display: grid;
            gap: 0.12rem;
        }

        .aett-tree-search-result:hover,
        .aett-tree-search-result:focus {
            background: #eef2f5;
            outline: none;
        }

        .aett-tree-search-name {
            font-weight: 600;
            font-size: 0.9rem;
            line-height: 1.2;
        }

        .aett-tree-search-meta,
        .aett-tree-search-empty {
            color: #64748b;
            font-size: 0.78rem;
            line-height: 1.25;
        }

        .aett-tree-search-empty {
            padding: 0.55rem 0.4rem;
        }


        .aett-tree-person-menu {
            position: absolute;
            z-index: 40;
            margin: 0;
            border-radius: 1rem;
            box-shadow: 0 1rem 2.6rem rgba(15, 23, 42, 0.2);
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(10px);
            pointer-events: auto;
            box-sizing: border-box;
            overscroll-behavior: contain;
        }

        .aett-tree-person-menu-body {
            padding: 0.5rem;
        }

        .aett-tree-person-menu-header {
            padding: 0.1rem 0.25rem 0.42rem;
            border-bottom: 1px solid rgba(148, 163, 184, 0.28);
            margin-bottom: 0.32rem;
        }

        .aett-tree-person-menu-title {
            font-family: "Ubuntu Condensed", var(--k-font-heading, var(--k-font, sans-serif));
            font-weight: 700;
            color: #172033;
            line-height: 1.15;
            font-size: 1.05rem;
        }
        .aett-tree-person-menu-title em {
            font-style: italic;
        }

        .aett-tree-person-menu-meta {
            margin-top: 0.08rem;
            color: #64748b;
            font-size: 0.76rem;
        }

        .aett-tree-person-menu-actions {
            display: grid;
            gap: 0.08rem;
        }

        .aett-tree-person-menu-button.k-btn {
            justify-content: flex-start;
            width: 100%;
            min-height: 1.55rem;
            padding: 0.2rem 0.45rem;
            border-radius: 0.55rem;
            font-size: 0.84rem;
            line-height: 1.15;
            text-align: left;
        }

        .aett-tree-person-menu-separator {
            height: 1px;
            margin: 0.12rem 0;
            background: rgba(148, 163, 184, 0.28);
        }

        .aett-tree-empty-detail {
            max-width: min(42rem, 80vw);
            margin-top: 0.45rem;
            font-size: 0.78rem;
            line-height: 1.35;
            color: #7f1d1d;
            word-break: break-word;
        }

/* Mörkerläge för släktträdets egna popupmeny.
   Menyn är specialbyggd i tree-main.js och behöver därför kompletterande tema-CSS. */
@media (prefers-color-scheme: dark) {
    .aett-tree-person-menu {
        border-color: var(--k-border, rgba(226, 232, 240, 0.22));
        background: var(--k-panel-bg, rgba(15, 23, 42, 0.96));
        color: var(--k-text, #f8fafc);
        box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.48);
    }

    .aett-tree-person-menu-header {
        border-bottom-color: var(--k-border, rgba(226, 232, 240, 0.22));
    }

    .aett-tree-person-menu-title {
        color: var(--k-text, #f8fafc);
    }

    .aett-tree-person-menu-meta {
        color: var(--k-muted, #a7b0c0);
    }

    .aett-tree-person-menu-button.k-btn {
        color: var(--k-accent, #facc15);
        background: transparent;
    }

    .aett-tree-person-menu-button.k-btn:hover,
    .aett-tree-person-menu-button.k-btn:focus-visible {
        background: rgba(250, 204, 21, 0.12);
    }

    .aett-tree-person-menu-separator {
        background: var(--k-border, rgba(226, 232, 240, 0.22));
    }
}

/* Mörkerläge när Kvikr UI har aktiverat html[data-theme="dark"]. */
html[data-theme="dark"] .aett-tree-subtitle,
html[data-theme="dark"] .aett-tree-empty,
html[data-theme="dark"] .aett-tree-hint,
html[data-theme="dark"] .aett-tree-search-meta,
html[data-theme="dark"] .aett-tree-search-empty {
    color: var(--k-muted, #a7b0c0);
}

html[data-theme="dark"] #treeViewport {
    border-color: var(--k-border, rgba(226, 232, 240, 0.22));
    background:
        radial-gradient(circle at 50% 38%, rgba(250, 204, 21, 0.10) 0%, rgba(250, 204, 21, 0.035) 34%, transparent 68%),
        linear-gradient(135deg, #0b1220 0%, #10172a 54%, #111827 100%);
}

html[data-theme="dark"] .aett-tree-toolbar {
    border: 1px solid var(--k-border, rgba(226, 232, 240, 0.18));
    background: rgba(15, 23, 42, 0.68) !important;
    box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.32) !important;
}

html[data-theme="dark"] .aett-tree-toolbar button.aett-tree-control-button,
html[data-theme="dark"] #treeSearchButton,
html[data-theme="dark"] #treeResetButton,
html[data-theme="dark"] #treeFullscreenButton,
html[data-theme="dark"] #treeZoomInButton,
html[data-theme="dark"] #treeZoomOutButton {
    border-color: var(--k-border, rgba(226, 232, 240, 0.22)) !important;
    background: rgba(15, 23, 42, 0.78) !important;
    color: var(--k-accent, #facc15) !important;
}

html[data-theme="dark"] .aett-tree-toolbar button.aett-tree-control-button:hover,
html[data-theme="dark"] .aett-tree-toolbar button.aett-tree-control-button.is-active,
html[data-theme="dark"] #treeSearchButton:hover,
html[data-theme="dark"] #treeSearchButton.is-active,
html[data-theme="dark"] #treeResetButton:hover,
html[data-theme="dark"] #treeFullscreenButton:hover,
html[data-theme="dark"] #treeFullscreenButton.is-active,
html[data-theme="dark"] #treeZoomInButton:hover,
html[data-theme="dark"] #treeZoomOutButton:hover {
    background: rgba(250, 204, 21, 0.12) !important;
}

html[data-theme="dark"] .aett-tree-control-button .aett-control-svg,
html[data-theme="dark"] .aett-tree-control-button .aett-control-svg * {
    stroke: var(--k-accent, #facc15);
}

html[data-theme="dark"] .aett-tree-line {
    stroke: rgba(203, 213, 225, 0.68);
}

html[data-theme="dark"] .aett-tree-line.partner,
html[data-theme="dark"] .aett-tree-line.family-bar,
html[data-theme="dark"] .aett-tree-line.child-bar,
html[data-theme="dark"] .aett-tree-line.family-trunk,
html[data-theme="dark"] .aett-tree-line.child-stem {
    stroke: rgba(203, 213, 225, 0.62);
}

html[data-theme="dark"] .aett-tree-line.parent-child.female {
    stroke: #fca5a5;
}

html[data-theme="dark"] .aett-tree-line.parent-child.male {
    stroke: #93c5fd;
}

html[data-theme="dark"] .aett-tree-node {
    border-color: rgba(226, 232, 240, 0.22);
    background: rgba(15, 23, 42, 0.96) !important;
    background-color: rgba(15, 23, 42, 0.96) !important;
    color: var(--k-text, #f8fafc);
    box-shadow: 0 0.7rem 1.8rem rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .aett-tree-primary-image {
    border-color: #475569;
    background: #111827;
}

html[data-theme="dark"] .aett-tree-node:hover {
    border-color: rgba(250, 204, 21, 0.55);
    box-shadow: 0 0.9rem 2.4rem rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .aett-tree-node.is-focus {
    border-color: var(--k-accent, #facc15);
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.20), 0 0.9rem 2.5rem rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .aett-tree-name,
html[data-theme="dark"] .aett-tree-first-name,
html[data-theme="dark"] .aett-tree-last-name {
    color: var(--k-text, #f8fafc);
}

html[data-theme="dark"] .aett-tree-dates {
    color: var(--k-muted, #a7b0c0);
}

html[data-theme="dark"] .aett-tree-relation {
    background: rgba(250, 204, 21, 0.12);
    color: var(--k-accent, #facc15);
}

html[data-theme="dark"] .aett-tree-person-code {
    color: var(--k-muted, #a7b0c0);
}

html[data-theme="dark"] .aett-tree-lens {
    border-color: rgba(250, 204, 21, 0.28);
    background: radial-gradient(circle, rgba(250, 204, 21, 0.12) 0%, rgba(250, 204, 21, 0.06) 36%, rgba(250, 204, 21, 0.02) 67%, transparent 82%);
    box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.10), 0 1.2rem 3rem rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .aett-tree-hint {
    border: 1px solid var(--k-border, rgba(226, 232, 240, 0.22));
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.30);
}

html[data-theme="dark"] .aett-tree-search-panel,
html[data-theme="dark"] .aett-tree-person-menu {
    border: 1px solid var(--k-border, rgba(226, 232, 240, 0.22));
    background: var(--k-panel-bg, rgba(15, 23, 42, 0.96));
    color: var(--k-text, #f8fafc);
    box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .aett-tree-search-input {
    border-color: var(--k-border, rgba(226, 232, 240, 0.22));
    background: var(--k-input-bg, #0f172a);
    color: var(--k-text, #f8fafc);
}

html[data-theme="dark"] .aett-tree-search-result {
    color: var(--k-text, #f8fafc);
}

html[data-theme="dark"] .aett-tree-search-result:hover,
html[data-theme="dark"] .aett-tree-search-result:focus {
    background: rgba(250, 204, 21, 0.12);
}

html[data-theme="dark"] .aett-tree-person-menu-header {
    border-bottom-color: var(--k-border, rgba(226, 232, 240, 0.22));
}

html[data-theme="dark"] .aett-tree-person-menu-title {
    color: var(--k-text, #f8fafc);
}

html[data-theme="dark"] .aett-tree-person-menu-meta {
    color: var(--k-muted, #a7b0c0);
}

html[data-theme="dark"] .aett-tree-person-menu-button.k-btn {
    color: var(--k-accent, #facc15) !important;
    background: transparent !important;
}

html[data-theme="dark"] .aett-tree-person-menu-button.k-btn:hover,
html[data-theme="dark"] .aett-tree-person-menu-button.k-btn:focus-visible {
    background: rgba(250, 204, 21, 0.12) !important;
}

html[data-theme="dark"] .aett-tree-person-menu-separator {
    background: var(--k-border, rgba(226, 232, 240, 0.22));
}
