.ks-tree-page {
    --ks-tree-ink: #17243b;
    --ks-tree-muted: #68758a;
    --ks-tree-line: #dce4ef;
    --ks-tree-primary: #2356d8;
    color: var(--ks-tree-ink);
    padding: 1.5rem 0 3rem;
}

.ks-tree-page__header {
    align-items: flex-end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.ks-tree-page__header h1 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 750;
    letter-spacing: -.035em;
    margin: .15rem 0 .45rem;
}

.ks-tree-page__header p {
    color: var(--ks-tree-muted);
    margin: 0;
}

.ks-tree-eyebrow {
    color: var(--ks-tree-primary) !important;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ks-tree-page__count,
.ks-tree-card__type {
    color: var(--ks-tree-muted);
    font-size: .85rem;
}

.ks-tree-create,
.ks-tree-card,
.ks-tree-empty,
.ks-tree-tools,
.ks-tree-canvas-wrap {
    background: #fff;
    border: 1px solid var(--ks-tree-line);
    border-radius: 1rem;
    box-shadow: 0 10px 35px rgb(22 42 79 / 5%);
}

.ks-tree-create {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, .7fr) auto;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
}

.ks-tree-create label,
.ks-tree-tools label {
    display: block;
    font-size: .82rem;
    font-weight: 650;
    margin-bottom: .4rem;
}

.ks-tree-create input,
.ks-tree-create select,
.ks-tree-tools input,
.ks-tree-tools select,
.ks-tree-tools textarea {
    background: #fff;
    border: 1px solid #cfd9e7;
    border-radius: .65rem;
    color: var(--ks-tree-ink);
    font: inherit;
    font-size: .9rem;
    min-height: 2.65rem;
    padding: .55rem .7rem;
    width: 100%;
}

.ks-tree-tools textarea {
    min-height: 5rem;
    resize: vertical;
}

.ks-tree-button,
.ks-tree-icon-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: .65rem;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: .88rem;
    font-weight: 650;
    gap: .45rem;
    justify-content: center;
    min-height: 2.55rem;
    padding: .55rem .8rem;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.ks-tree-button:hover,
.ks-tree-icon-button:hover {
    transform: translateY(-1px);
}

.ks-tree-button--primary {
    background: var(--ks-tree-primary);
    color: #fff;
}

.ks-tree-button--primary:hover {
    background: #1745bc;
    color: #fff;
}

.ks-tree-button--quiet,
.ks-tree-icon-button {
    background: #f3f6fb;
    border-color: var(--ks-tree-line);
    color: var(--ks-tree-ink);
}

.ks-tree-button--full {
    width: 100%;
}

.ks-tree-icon-button {
    min-width: 2.55rem;
    padding: .45rem;
}

.ks-tree-icon-button:disabled,
.ks-tree-button:disabled {
    cursor: not-allowed;
    opacity: .48;
    transform: none;
}

.ks-tree-cards {
    display: grid;
    gap: .8rem;
}

.ks-tree-card {
    align-items: center;
    display: flex;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.ks-tree-card__icon {
    align-items: center;
    background: #edf3ff;
    border-radius: .8rem;
    color: var(--ks-tree-primary);
    display: flex;
    font-size: 1.35rem;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.ks-tree-card__body {
    flex: 1;
    min-width: 0;
}

.ks-tree-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: .1rem 0 .2rem;
}

.ks-tree-card h2 a {
    color: inherit;
    text-decoration: none;
}

.ks-tree-card h2 a:hover {
    color: var(--ks-tree-primary);
}

.ks-tree-card p {
    color: var(--ks-tree-muted);
    font-size: .82rem;
    margin: 0;
}

.ks-tree-empty {
    padding: 3rem 1rem;
    text-align: center;
}

.ks-tree-empty > i {
    color: var(--ks-tree-primary);
    font-size: 2rem;
}

.ks-tree-empty h2 {
    font-size: 1.2rem;
    margin: .7rem 0 .35rem;
}

.ks-tree-empty p,
.ks-tree-help {
    color: var(--ks-tree-muted);
    font-size: .84rem;
}

.ks-tree-edge-list {
    display: grid;
    gap: .45rem;
    margin-top: .65rem;
}

.ks-tree-edge-item {
    align-items: center;
    background: #f6f8fc;
    border: 1px solid var(--ks-tree-line);
    border-radius: .6rem;
    display: grid;
    gap: .35rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: .4rem;
}

.ks-tree-edge-item span {
    font-size: .75rem;
    overflow-wrap: anywhere;
}

.ks-tree-edge-item input {
    grid-column: 1 / -1;
    min-height: 2rem;
}

.ks-tree-edge-item button {
    border: 0;
    color: var(--ks-tree-primary);
    font-size: .75rem;
    padding: .2rem .3rem;
}

.ks-tree-alert {
    border-radius: .65rem;
    margin: 0 0 1rem;
    padding: .75rem 1rem;
}

.ks-tree-alert--success {
    background: #e8f7ef;
    color: #17613a;
}

.ks-tree-alert--status {
    background: #edf3ff;
    color: #234b9a;
    min-height: 0;
    padding: 0;
}

.ks-tree-alert--status:not(:empty) {
    padding: .65rem .85rem;
}

.ks-tree-error {
    color: #b42318;
    display: block;
    margin-top: .3rem;
}

.ks-tree-pagination {
    margin-top: 1rem;
}

.ks-tree-back {
    color: var(--ks-tree-primary);
    display: inline-block;
    font-size: .85rem;
    margin-bottom: .65rem;
    text-decoration: none;
}

.ks-tree-editor__header {
    align-items: center;
}

.ks-tree-editor__actions,
.ks-tree-tool-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.ks-tree-workspace {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
}

.ks-tree-tools {
    align-self: start;
    padding: 1rem;
}

.ks-tree-tools h2 {
    font-size: .95rem;
    font-weight: 750;
    margin: 0 0 .8rem;
}

.ks-tree-tools label:not(:first-child) {
    margin-top: .8rem;
}

.ks-tree-tools hr {
    border: 0;
    border-top: 1px solid var(--ks-tree-line);
    margin: 1rem 0;
}

.ks-tree-tool-row {
    margin-top: .7rem;
}

.ks-tree-canvas-wrap {
    min-width: 0;
    overflow: hidden;
}

.ks-tree-canvas-toolbar {
    align-items: center;
    border-bottom: 1px solid var(--ks-tree-line);
    color: var(--ks-tree-muted);
    display: flex;
    font-size: .82rem;
    justify-content: space-between;
    padding: .65rem .8rem;
}

.ks-tree-canvas-toolbar > div {
    display: flex;
    gap: .35rem;
}

.ks-tree-canvas {
    background-color: #fbfcfe;
    background-image: radial-gradient(#d9e1ed 1px, transparent 1px);
    background-size: 20px 20px;
    display: block;
    min-height: 560px;
    touch-action: none;
    width: 100%;
}

.ks-tree-edge {
    stroke: #91a1b7;
    stroke-width: 2;
}

.ks-tree-edge-label {
    fill: #53647b;
    font-size: 13px;
    text-anchor: middle;
}

.ks-tree-node {
    cursor: grab;
}

.ks-tree-node:active {
    cursor: grabbing;
}

.ks-tree-node rect {
    fill: #fff;
    filter: drop-shadow(0 5px 8px rgb(20 40 75 / 10%));
    height: 86px;
    rx: 12px;
    stroke: #cdd9e9;
    stroke-width: 1.5;
    width: 190px;
}

.ks-tree-node.is-selected rect {
    stroke: var(--ks-tree-primary);
    stroke-width: 3;
}

.ks-tree-node.is-muted {
    opacity: .2;
}

.ks-tree-node-label {
    fill: var(--ks-tree-ink);
    font-size: 15px;
    font-weight: 700;
}

.ks-tree-node-kind {
    fill: var(--ks-tree-muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .ks-tree-workspace {
        grid-template-columns: 1fr;
    }

    .ks-tree-tools {
        order: 2;
    }

    .ks-tree-canvas {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    .ks-tree-page__header,
    .ks-tree-card {
        align-items: flex-start;
    }

    .ks-tree-page__header {
        flex-direction: column;
    }

    .ks-tree-create {
        grid-template-columns: 1fr;
    }

    .ks-tree-card {
        flex-wrap: wrap;
    }

    .ks-tree-card__body {
        flex-basis: calc(100% - 4rem);
    }

    .ks-tree-canvas {
        min-height: 340px;
    }
}

/* Portal-map v3: private tree workspace, shared light/dark palette. */
.kt-admin .card{background:var(--kt-card);border:1px solid var(--ks-tree-line);border-radius:24px;overflow:hidden}.kt-admin .card-footer{background:var(--kt-inset);border-color:var(--ks-tree-line)}.kt-admin .table{--bs-table-bg:var(--kt-card);--bs-table-color:var(--ks-tree-ink);--bs-table-border-color:var(--ks-tree-line);font-size:13px}.kt-admin .table td,.kt-admin .table th{padding:16px}.kt-admin .table td .ks-tree-button{font-size:11px;white-space:nowrap}.kt-admin .form-control,.kt-admin .form-select{border-radius:14px;padding:12px}.kt-admin .text-muted{color:var(--ks-tree-muted)!important}.kt-admin .badge{background:var(--kt-tint)!important;color:var(--ks-tree-ink)!important;border:1px solid var(--ks-tree-line);border-radius:12px}
.ks-tree-page [hidden]{display:none!important}.kt-public{max-width:1240px;margin:0 auto;padding:32px 20px 72px}.kt-use-cases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.kt-use-cases article{position:relative;padding:24px;border:1px solid var(--ks-tree-line);border-radius:24px;background:var(--kt-card)}.kt-use-cases article>span{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:14px;background:var(--kt-tint);color:var(--ks-tree-primary);font-size:20px;margin-bottom:15px}.kt-use-cases h2{font-size:17px;font-weight:600;margin:0 0 8px}.kt-use-cases p{font-size:13px;margin:0;color:var(--ks-tree-muted)}.kt-public-start{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px;border-radius:26px;background:var(--kt-card);border:1px solid var(--ks-tree-line);margin-top:20px}.kt-public-start h2{font-size:25px;letter-spacing:-.025em;margin:0 0 10px}.kt-public-start p{font-size:13px;color:var(--ks-tree-muted);max-width:600px;margin:0}.kt-public-start>a{flex:none}.kt-public .kt-hero{grid-template-columns:1.2fr 1fr}.kt-public .kt-example>.kt-section-head{align-items:center}.kt-public .kt-example-branches{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.kt-public .kt-hero{grid-template-columns:1fr}.kt-use-cases{grid-template-columns:1fr}.kt-use-cases article{padding:20px}.kt-public-start{flex-direction:column;align-items:flex-start;padding:24px}.kt-public .kt-example-branches{grid-template-columns:repeat(2,minmax(0,1fr))}.kt-public{padding:24px 16px 48px}.kt-public .kt-example>.kt-section-head{align-items:flex-start}}
@media(max-width:480px){.kt-public .kt-example-branches{grid-template-columns:1fr}}
.ks-tree-workspace{align-items:start}.ks-tree-editor .ks-tree-edge-list{max-height:280px;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}.ks-tree-editor .ks-tree-tools{max-height:calc(100vh - 130px);overflow-y:auto;overscroll-behavior:contain}.ks-tree-editor .ks-tree-canvas-wrap{position:sticky;top:20px}.ks-tree-editor #new-node{font-size:11px;padding:5px 10px;min-height:32px;margin-left:8px}.ks-tree-editor #tree-search-results{font-size:11px;color:var(--ks-tree-muted)}
@media(max-width:900px){.ks-tree-editor .ks-tree-tools{max-height:none}.ks-tree-editor .ks-tree-canvas-wrap{position:static}.ks-tree-editor .ks-tree-edge-list{max-height:240px}}
.ks-tree-page{--ks-tree-ink:#102b33;--ks-tree-muted:#5b737e;--ks-tree-line:#d5e5e9;--ks-tree-primary:#087b6e;--kt-card:#fff;--kt-inset:#f1f7f8;--kt-tint:#e4f3ee;--kt-wire:#a3bdc5;--kt-on-primary:#fff;--kt-gold:#f6c453;font-family:Onest,Inter,system-ui,sans-serif;color:var(--ks-tree-ink);line-height:1.55;min-width:0}
html[data-theme=dark] .ks-tree-page{--ks-tree-ink:#e9f3f4;--ks-tree-muted:#9ab1bd;--ks-tree-line:#29404c;--ks-tree-primary:#51d2b9;--kt-card:#142731;--kt-inset:#0d1f28;--kt-tint:#173b38;--kt-wire:#48616c;--kt-on-primary:#082922}
.ks-tree-page :is(h1,h2,h3,p){color:inherit}.ks-tree-page :is(input,select,textarea){color-scheme:light;background:var(--kt-inset);color:var(--ks-tree-ink);border-color:var(--ks-tree-line)}html[data-theme=dark] .ks-tree-page :is(input,select,textarea){color-scheme:dark}
.ks-tree-page :is(input,select,textarea,button,a):focus-visible{outline:3px solid var(--ks-tree-primary);outline-offset:3px}.ks-tree-page :is(input,textarea)::placeholder{color:var(--ks-tree-muted);opacity:1}
.ks-tree-page :is(.ks-tree-create,.ks-tree-card,.ks-tree-empty,.ks-tree-tools,.ks-tree-canvas-wrap){background:var(--kt-card);border-color:var(--ks-tree-line);border-radius:24px;box-shadow:0 16px 30px -26px #001f2d55}
.ks-tree-page .ks-tree-button{border-radius:999px;min-height:44px;font-weight:600;padding:10px 18px}.ks-tree-page .ks-tree-button--primary{background:var(--ks-tree-primary);color:var(--kt-on-primary)}.ks-tree-page .ks-tree-button--primary:hover{filter:brightness(1.08)}.ks-tree-page :is(.ks-tree-button--quiet,.ks-tree-icon-button){background:var(--kt-inset);color:var(--ks-tree-ink);border-color:var(--ks-tree-line)}.ks-tree-page .ks-tree-icon-button{border-radius:13px}.ks-tree-page .ks-tree-eyebrow{font-size:10px;letter-spacing:.12em;margin:0 0 8px;color:var(--ks-tree-primary)}
.ks-tree-page .ks-tree-help,.ks-tree-page .ks-tree-empty p{color:var(--ks-tree-muted)}.ks-tree-page .ks-tree-alert--success{background:var(--kt-tint);color:var(--ks-tree-ink)}.ks-tree-page .ks-tree-alert--status{background:var(--kt-inset);color:var(--ks-tree-primary)}
.kt-crumbs{display:flex;flex-wrap:wrap;gap:9px;font-size:12px;color:var(--ks-tree-muted);margin-bottom:20px}.kt-crumbs a{color:inherit;text-decoration:none}.kt-hero{display:grid;grid-template-columns:1.2fr 1fr;gap:30px;align-items:center;padding:clamp(24px,4vw,44px);border:1px solid var(--ks-tree-line);border-radius:28px;background:radial-gradient(ellipse at top left,var(--kt-tint),transparent 70%),var(--kt-card);overflow:hidden}
.kt-tag{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:500;color:var(--ks-tree-primary);margin-bottom:18px}.kt-tag i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 5px color-mix(in srgb,currentColor 12%,transparent)}.kt-hero h1{font-size:clamp(32px,3.8vw,56px);line-height:1.08;letter-spacing:-.045em;margin:0 0 18px;font-weight:700}.kt-hero h1 em{font-style:normal;color:var(--ks-tree-primary)}.kt-hero p{font-size:14px;color:var(--ks-tree-muted);max-width:39em;margin:0 0 24px}.kt-hero-actions{display:flex;flex-wrap:wrap;gap:10px}.kt-private{display:flex;align-items:center;gap:7px;color:var(--ks-tree-muted);font-size:11px;margin-top:18px}
.kt-hero-art{position:relative;min-height:270px;isolation:isolate;color:var(--kt-wire)}.kt-hero-art>svg{position:absolute;width:100%;height:220px;top:12px;left:0}.kt-orbit{position:absolute;border:1px solid var(--ks-tree-line);border-radius:50%;inset:0 7%;transform:rotate(-15deg);z-index:-1}.kt-orbit--two{inset:25px -15px;transform:rotate(30deg)}.kt-art-node{position:absolute;display:flex;align-items:center;justify-content:center;gap:9px;background:var(--kt-card);border:1px solid var(--ks-tree-line);border-radius:15px;font-size:12px;font-weight:600;color:var(--ks-tree-ink);box-shadow:0 10px 25px -18px #002f4e66;padding:14px 8px;min-width:94px;top:166px}.kt-art-node--root{top:35px;left:50%;transform:translateX(-50%);border:2px solid var(--kt-gold);padding:16px 22px;min-width:170px}.kt-art-node--root i{color:var(--ks-tree-primary);font-size:22px}.kt-art-node--a{left:0}.kt-art-node--b{left:50%;transform:translateX(-50%)}.kt-art-node--c{right:-5px}.kt-art-caption{position:absolute;bottom:6px;left:0;right:0;text-align:center;color:var(--ks-tree-muted);font-size:10px}
.kt-create-panel{background:var(--kt-card);border:1px solid var(--ks-tree-line);border-radius:22px;margin-top:14px}.kt-create-panel>summary{display:flex;justify-content:space-between;gap:14px;cursor:pointer;padding:18px 22px;font-size:14px;font-weight:600;list-style:none}.kt-create-panel>summary::-webkit-details-marker{display:none}.kt-create-panel>summary>span{display:flex;align-items:center;gap:10px}.kt-create-panel[open]>summary>.bi{transform:rotate(180deg)}.kt-create-panel .ks-tree-create{margin:0;padding:12px 22px 24px;box-shadow:none;border:0;background:transparent}
.kt-section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:34px 0 18px}.kt-section-head h2{display:flex;align-items:center;gap:12px;font-size:25px;letter-spacing:-.025em;font-weight:700;margin:0}.kt-section-head p{margin:8px 0 0;font-size:13px;color:var(--ks-tree-muted)}.kt-count{display:inline-grid;place-items:center;font-size:13px;color:var(--ks-tree-primary);background:var(--kt-tint);min-width:29px;height:29px;border-radius:50%}.kt-subtle{font-size:12px;color:var(--ks-tree-muted)}
.kt-filters{display:flex;align-items:center;gap:10px;margin-bottom:18px}.kt-search{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:5px 5px 5px 15px;border:1px solid var(--ks-tree-line);border-radius:18px;background:var(--kt-card);color:var(--ks-tree-muted)}.kt-search:focus-within{border-color:var(--ks-tree-primary)}.kt-search input{border:0;background:transparent!important;outline:none!important;box-shadow:none!important;min-width:0;flex:1;font-size:13px;padding:7px 0}.kt-search .ks-tree-button{min-height:38px;padding:8px 15px;font-size:12px}.kt-type-filter select{width:100%;max-width:240px;border:1px solid var(--ks-tree-line);border-radius:16px;padding:14px 30px 14px 13px;font:inherit;font-size:12px;background-color:var(--kt-card)}.kt-reset{color:var(--ks-tree-primary);font-size:12px;white-space:nowrap}
.ks-tree-library .ks-tree-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ks-tree-library .ks-tree-card.kt-collection-card{display:flex;flex-direction:column;align-items:stretch;gap:0;overflow:hidden;padding:0}.kt-card-preview{position:relative;display:flex;align-items:center;justify-content:center;min-height:190px;padding:28px 14px 12px;background:radial-gradient(ellipse at 20% 20%,var(--kt-tint),transparent 80%),var(--kt-inset);color:var(--ks-tree-primary)}.kt-card-preview svg{width:100%;height:170px;overflow:visible}.kt-card-preview svg line{stroke:var(--kt-wire);stroke-width:3}.kt-card-preview svg rect{fill:var(--kt-card);stroke:var(--ks-tree-primary);stroke-width:2}.kt-card-preview svg text{fill:var(--ks-tree-ink);font:14px Onest,system-ui,sans-serif}.kt-private-badge{position:absolute;right:12px;top:12px;display:flex;gap:5px;align-items:center;background:var(--kt-card);color:var(--ks-tree-muted);padding:4px 8px;border-radius:999px;font-size:10px}.kt-card-content{padding:20px;display:flex;flex:1;flex-direction:column}.kt-card-content .ks-tree-card__type{font-size:10px;letter-spacing:.035em;color:var(--ks-tree-primary)}.ks-tree-library .kt-card-content h2{font-size:17px;line-height:1.4;margin:9px 0;overflow-wrap:anywhere}.kt-card-content p{font-size:12px;color:var(--ks-tree-muted)}.kt-card-content p span{padding:0 5px}.kt-card-footer{display:flex;align-items:center;gap:12px;border-top:1px solid var(--ks-tree-line);padding-top:14px;margin-top:auto}.kt-card-footer time{font-size:10px;color:var(--ks-tree-muted)}.kt-card-footer .kt-open{margin-left:auto;font-size:12px;font-weight:600;color:var(--ks-tree-primary);text-decoration:none}.kt-card-footer .ks-tree-icon-button{width:32px;min-width:32px;min-height:32px;font-size:12px}.kt-preview-empty{display:grid;justify-items:center;gap:10px;font-size:11px;color:var(--ks-tree-muted)}.kt-preview-empty>.bi{font-size:45px;color:var(--ks-tree-primary)}
.ks-tree-library .ks-tree-empty{padding:38px 24px;background:radial-gradient(ellipse at top,var(--kt-tint),transparent 75%),var(--kt-card)}.kt-empty-icon{display:inline-grid;place-items:center;width:64px;height:64px;background:var(--kt-tint);color:var(--ks-tree-primary);border:1px solid var(--ks-tree-line);border-radius:20px;font-size:28px;margin-bottom:8px}
.kt-example{padding:24px;border:1px solid var(--ks-tree-line);border-radius:28px;background:var(--kt-inset);margin-top:32px;scroll-margin-top:20px}.kt-example>.kt-section-head{margin:0 0 24px}.kt-example .ks-tree-button--primary{white-space:nowrap}.kt-example-root{display:flex;align-items:center;justify-content:center;gap:12px;border:2px solid var(--kt-gold);box-shadow:0 0 0 5px color-mix(in srgb,var(--kt-gold) 15%,transparent);border-radius:22px;padding:14px 26px;background:var(--kt-card);width:fit-content;margin:30px auto 24px;position:relative}.kt-example-root>span{display:grid;place-items:center;background:var(--ks-tree-primary);color:var(--kt-on-primary);width:35px;height:35px;border-radius:11px;font-weight:700;font-size:22px}.kt-example-root strong{display:block;font-size:20px}.kt-example-root small{display:block;font-size:11px;color:var(--ks-tree-muted)}.kt-example-root:after{content:'';position:absolute;bottom:-25px;height:23px;border-left:2px solid var(--kt-wire);left:50%}.kt-example-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:25px 0 16px;flex-wrap:wrap}.kt-example-controls>span{margin-right:auto;color:var(--ks-tree-muted);font-size:11px}.kt-example-controls .ks-tree-button{font-size:10px;padding:6px 11px;min-height:34px}
.kt-example-branches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.kt-branch{border:1px solid var(--ks-tree-line);border-radius:20px;background:radial-gradient(ellipse at top left,hsl(var(--branch-hue) 45% 90% / .3),transparent 70%),var(--kt-card);align-self:start;overflow:hidden}.kt-branch>summary{list-style:none;display:flex;align-items:center;gap:9px;cursor:pointer;padding:16px}.kt-branch>summary::-webkit-details-marker{display:none}.kt-branch>summary strong{font-size:12px;line-height:1.35;flex:1;min-width:0}.kt-branch>summary>.bi{font-size:11px;color:var(--ks-tree-muted);transition:transform .2s}.kt-branch[open]>summary>.bi{transform:rotate(180deg)}.kt-branch-icon{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:12px;background:hsl(var(--branch-hue) 65% 70% / .18);color:var(--ks-tree-primary);font-size:18px}.kt-branch>p{font-size:11px;color:var(--ks-tree-muted);padding:0 16px;margin:0 0 10px}.kt-branch>ul{list-style:none;margin:0 16px 16px 24px;padding:0 0 0 12px;border-left:2px solid var(--kt-wire)}.kt-branch>ul>li{position:relative;font-size:12px;border:1px solid var(--ks-tree-line);background:var(--kt-inset);border-radius:10px;padding:9px 10px;margin-top:7px;overflow-wrap:anywhere}.kt-branch>ul>li:before{content:'';position:absolute;left:-14px;top:50%;width:12px;border-top:2px solid var(--kt-wire)}.kt-example-note{display:flex;align-items:flex-start;gap:8px;color:var(--ks-tree-muted);font-size:11px;border-top:1px solid var(--ks-tree-line);padding-top:16px;margin:20px 0 0}
.ks-tree-editor .ks-tree-canvas{background-color:var(--kt-inset);background-image:radial-gradient(var(--ks-tree-line) 1px,transparent 1px)}.ks-tree-editor .ks-tree-node rect{fill:var(--kt-card);stroke:var(--ks-tree-line);rx:16px}.ks-tree-editor .ks-tree-node.is-selected rect,.ks-tree-editor .ks-tree-node:focus-visible rect{stroke:var(--ks-tree-primary);stroke-width:3}.ks-tree-editor .ks-tree-edge{stroke:var(--kt-wire);fill:none}.ks-tree-editor .ks-tree-edge-label{fill:var(--ks-tree-muted)}.ks-tree-editor .ks-tree-edge-item{background:var(--kt-inset);border-color:var(--ks-tree-line)}.ks-tree-editor .ks-tree-edge-item button{background:transparent;color:var(--ks-tree-primary)}.ks-tree-editor .ks-tree-canvas-toolbar{flex-wrap:wrap;gap:10px}.ks-tree-editor .ks-tree-canvas-toolbar>div{flex-wrap:wrap}.ks-tree-editor .ks-tree-node[role=button]{outline:none}.ks-tree-editor .ks-tree-node-title{pointer-events:none}
@media(min-width:1600px){.kt-example-branches{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1200px){.ks-tree-library .ks-tree-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.kt-hero{gap:20px}.kt-example>.kt-section-head{align-items:flex-start;flex-direction:column}.kt-art-node{font-size:10px;min-width:78px}.kt-art-node--root{min-width:145px}.kt-art-node--c{right:-12px}}
@media(max-width:760px){.kt-hero{grid-template-columns:1fr}.kt-hero-art{max-width:400px;width:100%;justify-self:center;min-height:245px}.kt-hero h1{font-size:40px}.kt-hero-art>.kt-art-caption{bottom:0}.kt-example-branches{grid-template-columns:repeat(2,minmax(0,1fr))}.kt-section-head{align-items:flex-start}.kt-subtle{display:none}.kt-example{padding:20px}.kt-filters{flex-wrap:wrap}.kt-search{flex-basis:100%}.kt-type-filter{flex:1}.kt-type-filter select{max-width:none}.kt-branch>summary{padding:12px}.kt-branch>summary strong{font-size:11px}.kt-branch-icon{width:28px;height:28px;font-size:15px}}
@media(max-width:480px){.ks-tree-library .ks-tree-cards{grid-template-columns:1fr}.kt-example-branches{grid-template-columns:1fr}.kt-hero{padding:24px 20px;border-radius:24px}.kt-hero h1{font-size:35px}.kt-hero-actions>.ks-tree-button{font-size:12px}.kt-example-root{padding:12px 20px}.kt-example-root small{font-size:10px}.kt-example-controls{justify-content:flex-start}.kt-example-controls>span{flex-basis:100%;margin-bottom:3px}.kt-create-panel>summary{padding:17px}.kt-example{padding:18px 14px}.kt-example>.kt-section-head form{width:100%}.kt-example .ks-tree-button--primary{width:100%;font-size:12px}.kt-branch>summary{padding:14px}.kt-branch>summary strong{font-size:13px}.kt-branch-icon{width:35px;height:35px}.ks-tree-editor__actions .ks-tree-button{font-size:12px;padding:8px 12px}.ks-tree-page__header h1{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.ks-tree-page *{scroll-behavior:auto!important;transition:none!important}}


/* Publication review and the VVNZ structure reference. */
.kt-publication-badge{display:inline-flex;align-items:center;width:fit-content;padding:5px 10px;border:1px solid var(--ks-tree-line);border-radius:999px;background:var(--kt-inset);color:var(--ks-tree-muted);font-size:11px;white-space:nowrap}.kt-publication-badge[data-state=pending]{background:#f6c45325;color:var(--ks-tree-ink);border-color:#d3a52e80}.kt-publication-badge[data-state=published]{background:var(--kt-tint);color:var(--ks-tree-primary)}.kt-publication-badge[data-state=rejected]{background:#e97c5620;color:var(--ks-tree-ink);border-color:#e97c5680}
.kt-owner-publication{display:flex;align-items:center;gap:15px;flex-wrap:wrap;background:var(--kt-card);border:1px solid var(--ks-tree-line);border-radius:20px;padding:18px 22px;margin:0 0 18px}.kt-owner-publication>div{flex:1;min-width:200px}.kt-owner-publication strong{margin-right:10px;font-size:14px}.kt-owner-publication p{font-size:11px;color:var(--ks-tree-muted);margin:7px 0 0}.kt-owner-publication .ks-tree-button{font-size:12px}
.kt-viewer{border:1px solid var(--ks-tree-line);border-radius:24px;background:var(--kt-card);overflow:hidden}.kt-viewer-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px;border-bottom:1px solid var(--ks-tree-line);font-size:12px;color:var(--ks-tree-muted)}.kt-viewer-toolbar label{flex:1;min-width:180px}.kt-viewer-toolbar input{width:100%;border:1px solid var(--ks-tree-line);border-radius:14px;padding:10px 12px;font:inherit}.kt-viewer-toolbar>div{display:flex;gap:7px}.kt-viewer-toolbar .ks-tree-button{font-size:11px}.kt-viewer-canvas{display:block;width:100%;height:560px;background-color:var(--kt-inset);background-image:radial-gradient(var(--ks-tree-line) 1px,transparent 1px);background-size:20px 20px;touch-action:none;cursor:grab}.kt-viewer-canvas:active{cursor:grabbing}.kt-viewer .ks-tree-node{cursor:inherit}.kt-viewer .ks-tree-node rect{fill:var(--kt-card);stroke:var(--ks-tree-line)}.kt-viewer .ks-tree-edge{stroke:var(--kt-wire);stroke-width:2}.kt-viewer .ks-tree-edge-label{fill:var(--ks-tree-muted)}.kt-viewer>.kt-example-note{margin:0;padding:12px 16px;font-size:11px}
.kt-node-details{margin-top:16px;border:1px solid var(--ks-tree-line);border-radius:20px;background:var(--kt-card);padding:16px 20px}.kt-node-details>summary{cursor:pointer;font-size:14px;font-weight:600}.kt-node-details ul{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.kt-node-details li{padding:14px;border:1px solid var(--ks-tree-line);border-radius:14px;background:var(--kt-inset);overflow-wrap:anywhere}.kt-node-details strong{font-size:13px;display:block}.kt-node-details small{display:block;font-size:10px;color:var(--ks-tree-muted);margin-top:5px}.kt-node-details p{font-size:12px;margin:8px 0 0;white-space:pre-wrap}.kt-review-panel{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin-top:20px;padding:24px;border:1px solid var(--ks-tree-line);border-radius:24px;background:var(--kt-card)}.kt-review-panel h2{font-size:21px}.kt-review-panel p{font-size:13px;color:var(--ks-tree-muted)}.kt-review-panel label{display:block;font-size:12px;margin-bottom:12px}.kt-review-panel input,.kt-review-panel textarea{display:block;width:100%;border:1px solid var(--ks-tree-line);border-radius:12px;padding:10px;margin-top:7px;font:inherit}.kt-review-panel form .ks-tree-button{font-size:12px}
.kt-family-branches .kt-branch>summary{align-items:center;min-height:94px;gap:14px;padding:15px}.kt-family-avatar{display:grid;place-items:center;flex:none;width:58px;height:58px;border-radius:50%;overflow:hidden;background:hsl(var(--branch-hue) 60% 70% / .24);color:var(--ks-tree-primary);font-size:24px;font-weight:600}.kt-family-avatar img{width:100%;height:100%;object-fit:cover}.kt-family-count{display:grid;place-items:center;flex:none;width:24px;height:24px;background:var(--kt-gold);color:#3b2b09;border-radius:50%;font-size:11px}.kt-family-branches .kt-branch>summary strong{font-size:14px}.kt-family-branches .kt-branch>ul{margin-left:42px}.kt-family-branches .kt-branch>ul>li{padding:0;overflow:visible}.kt-family-branches button[data-tree-family-node]{display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:var(--ks-tree-ink);text-align:left;font:inherit;font-size:12px;cursor:pointer}.kt-family-branches button[data-tree-family-node]>span{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:hsl(var(--branch-hue) 65% 70% / .18);font-size:12px}.kt-family-branches button[data-tree-family-node]:hover{outline:1px solid var(--ks-tree-primary)}.kt-family-branches button[aria-current=true]{outline:2px solid var(--kt-gold);background:#f6c45318}.kt-family-example .kt-example-root strong{font-size:17px}.kt-family-example .kt-example-root{max-width:100%}.kt-tree-path{margin:24px 0 0;padding:12px 18px;border:1px solid var(--ks-tree-line);background:var(--kt-card);border-radius:18px;font-size:13px;overflow-wrap:anywhere}.kt-published-card{align-items:flex-start!important;flex-direction:column}.kt-published-card h2{font-size:18px!important}.kt-published-card p{color:var(--ks-tree-muted);font-size:12px}.kt-published-card h2 a{color:var(--ks-tree-ink)}
@media(max-width:900px){.kt-review-panel{grid-template-columns:1fr}.kt-node-details ul{grid-template-columns:repeat(2,minmax(0,1fr))}.kt-viewer-canvas{height:440px}}
@media(max-width:480px){.kt-viewer-canvas{height:340px}.kt-node-details ul{grid-template-columns:1fr}.kt-review-panel{padding:18px}.kt-owner-publication{padding:16px}.kt-owner-publication strong{display:block;margin-bottom:8px}.kt-viewer-toolbar>div{width:100%}.kt-family-branches .kt-branch>summary strong{font-size:14px}}

.kt-family-example+.kt-viewer{margin-top:24px}
.kt-dstu-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.kt-dstu-card{min-width:0;padding:16px;border:1px solid var(--ks-tree-line);border-radius:16px;background:var(--kt-card)}.kt-dstu-card__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.kt-dstu-card__head strong{font-size:14px}.kt-dstu-card__head .ks-tree-button{flex:none;font-size:11px}.kt-dstu-card p{margin:0;overflow-wrap:anywhere;font-size:13px}.kt-dstu-copy-status{display:block;min-height:1.4em;margin-top:8px;color:var(--ks-tree-muted);font-size:11px}.kt-dstu-sources{margin:14px 0 0;padding-left:22px}.kt-dstu-sources li{margin:8px 0;overflow-wrap:anywhere}.kt-dstu-sources a{color:var(--ks-tree-primary)}
.kt-dstu-reference-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer;list-style:none}.kt-dstu-references>.kt-dstu-reference-summary{margin:0}.kt-dstu-references[open]>.kt-dstu-reference-summary{margin-bottom:20px}.kt-dstu-reference-summary::-webkit-details-marker{display:none}.kt-dstu-reference-summary:after{content:'+';display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid var(--ks-tree-line);border-radius:50%;font-size:20px;color:var(--ks-tree-primary)}.kt-dstu-references[open]>.kt-dstu-reference-summary:after{content:'−'}.kt-dstu-reference-summary h2{margin:0;font-size:20px}.kt-dstu-reference-summary p{margin:8px 0 0;color:var(--ks-tree-muted);font-size:12px}
.kt-viewer-disclosure{margin-top:24px;border:1px solid var(--ks-tree-line);border-radius:24px;background:var(--kt-card);overflow:hidden}.kt-viewer-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;cursor:pointer;list-style:none}.kt-viewer-disclosure>summary::-webkit-details-marker{display:none}.kt-viewer-disclosure>summary:after{content:'+';display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid var(--ks-tree-line);border-radius:50%;font-size:20px;color:var(--ks-tree-primary)}.kt-viewer-disclosure[open]>summary:after{content:'−'}.kt-viewer-disclosure>summary strong{font-size:15px}.kt-viewer-disclosure>summary span{margin-left:auto;color:var(--ks-tree-muted);font-size:12px}.kt-viewer-disclosure[open]>.kt-viewer{border:0;border-radius:0}
.kt-public-tree-header>div{flex:1 1 0;min-width:0}.kt-public-tree-header h1{overflow-wrap:anywhere}.kt-public-tree-header>a{flex:0 0 auto;white-space:nowrap}
@media(max-width:600px){.kt-public-tree-header{flex-direction:column;align-items:stretch;gap:14px}.kt-public-tree-header>a{width:100%;justify-content:center;white-space:normal}}
@media(max-width:900px){.kt-dstu-examples{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.kt-dstu-examples{grid-template-columns:1fr}}
.kt-viewer:fullscreen,.kt-viewer.is-expanded{display:flex;flex-direction:column;width:100vw;height:100vh;height:100dvh;max-width:none;margin:0;border-radius:0;background:var(--kt-card)}.kt-viewer.is-expanded{position:fixed;inset:0;z-index:9999}.kt-viewer:fullscreen .kt-viewer-toolbar,.kt-viewer.is-expanded .kt-viewer-toolbar{flex:0 0 auto}.kt-viewer:fullscreen .kt-viewer-canvas,.kt-viewer.is-expanded .kt-viewer-canvas{flex:1 1 auto;min-height:0;height:auto}.kt-viewer::backdrop{background:var(--kt-card)}
.kt-viewer-toolbar>div{flex-wrap:wrap}

/* Procurement process: keep the top strip as tight as /trees. */
body.procurement-tree-page .vine-main{margin-top:0}
body.procurement-tree-page main.kt-public{padding-top:0}
body.procurement-tree-page .ks-subnav .sb{color:var(--mu,#515c70)}
body.procurement-tree-page .ks-subnav .sb.more2{color:var(--blue,#0b5fd1)}
body.procurement-tree-page .kt-crumbs{padding:12px 0 0;margin:0;gap:8px;color:var(--mu,#515c70);font-size:14px}
body.procurement-tree-page .kt-crumbs a{color:var(--mu,#515c70);text-decoration:underline;text-underline-offset:2px}
body.procurement-tree-page .kt-crumbs [aria-current]{color:var(--mu,#515c70)}
