/* KOL Advanced Family Tree */

.kol-aft-app,
.kol-aft-app * {
    box-sizing: border-box;
}

.kol-aft-consent-card {
    max-width: 680px;
    margin: 32px auto;
    padding: 30px;
    border: 1px solid rgba(15, 118, 110, .24);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .10);
    color: #172033;
}

.kol-aft-consent-card h2 {
    margin: 8px 0 14px;
}

.kol-aft-consent-card p {
    font-size: 16px;
    line-height: 1.6;
}

.kol-aft-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.kol-aft-consent-actions button {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 9px;
    background: #087f78;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.kol-aft-consent-actions .kol-aft-consent-decline,
.kol-aft-consent-actions .kol-aft-claim-reject {
    background: #e9eef4;
    color: #263244;
}

.kol-aft-consent-card.is-complete {
    text-align: center;
}

.kol-aft-consent-card.is-complete > .fa {
    color: #087f78;
    font-size: 42px;
}

.kol-aft-node.consent-pending .kol-aft-node-card {
    border-color: #d7a928;
}

.kol-aft-node.consent-declined .kol-aft-node-card,
.kol-aft-node.consent-revoked .kol-aft-node-card {
    border-color: #7b8794;
    background: #f4f6f8;
}

.kol-aft-node.life-deceased .kol-aft-node-card {
    border-color: #6b7280;
}

/* Guided family tree builder */
.kol-aft-wizard {
    width: 100%;
    height: var(--kol-aft-shell-height);
    max-height: var(--kol-aft-shell-height);
    overflow: auto;
    padding: 60px clamp(18px, 4vw, 46px) clamp(18px, 4vw, 46px);
    background: #f4f7fb;
    color: #1f2937;
}

.kol-aft-wizard-header {
    width: min(1040px, 100%);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.kol-aft-wizard-header h2 {
    margin: 3px 0 0;
    color: inherit;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.1;
}

.kol-aft-wizard-kicker {
    color: #1f6f3d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.kol-aft-wizard-header-actions,
.kol-aft-wizard-auth-actions,
.kol-aft-wizard-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.kol-aft-wizard-progress {
    width: min(900px, 100%);
    margin: 0 auto 18px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.kol-aft-wizard-progress li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.kol-aft-wizard-progress li::after {
    content: "";
    position: absolute;
    top: 16px;
    right: calc(-50% + 12px);
    left: calc(50% + 20px);
    height: 2px;
    background: #d1d5db;
    z-index: 0;
}

.kol-aft-wizard-progress li:last-child::after {
    display: none;
}

.kol-aft-wizard-progress li span {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
}

.kol-aft-wizard-progress li.is-current,
.kol-aft-wizard-progress li.is-complete {
    color: #1f6f3d;
}

.kol-aft-wizard-progress li.is-current span,
.kol-aft-wizard-progress li.is-complete span {
    border-color: #2d7c2d;
    background: #2d7c2d;
    color: #fff;
}

.kol-aft-wizard-progress li.is-complete::after {
    background: #2d7c2d;
}

.kol-aft-wizard-card {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 38px);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .12);
}

.kol-aft-wizard-card h3 {
    margin: 0 0 8px;
    color: inherit;
    font-size: clamp(22px, 3vw, 30px);
}

.kol-aft-wizard-card h4 {
    margin: 0 0 6px;
    color: inherit;
}

.kol-aft-wizard-card p {
    margin: 0 0 20px;
    color: #64748b;
}

.kol-aft-wizard-form > label,
.kol-aft-wizard-inline-form label {
    display: grid;
    gap: 7px;
    margin: 0 0 18px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.kol-aft-wizard input,
.kol-aft-wizard select {
    width: 100%;
    min-height: 46px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #1f2937;
    font: inherit;
}

.kol-aft-wizard input:focus,
.kol-aft-wizard select:focus {
    outline: 3px solid rgba(45, 124, 45, .18);
    border-color: #2d7c2d;
}

.kol-aft-wizard button,
.kol-aft-wizard-primary-link,
.kol-aft-wizard-secondary-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    border: 1px solid #1a4d1a;
    border-radius: 8px;
    background: linear-gradient(#2d7c2d, #1f5f1f);
    color: #fff;
    box-shadow: 0 4px 8px rgba(15, 23, 42, .18);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.kol-aft-wizard button:hover,
.kol-aft-wizard-primary-link:hover,
.kol-aft-wizard-secondary-link:hover {
    color: #fff;
    filter: brightness(1.07);
}

.kol-aft-wizard .kol-aft-wizard-secondary,
.kol-aft-wizard .kol-aft-wizard-secondary-link,
.kol-aft-wizard .kol-aft-guest-clear,
.kol-aft-wizard .kol-aft-switch-builder {
    border-color: #b0b0b0;
    background: linear-gradient(#e2e2e2, #d4d4d4);
    color: #2d2d2d;
}

.kol-aft-wizard .kol-aft-wizard-secondary:hover,
.kol-aft-wizard .kol-aft-wizard-secondary-link:hover,
.kol-aft-wizard .kol-aft-guest-clear:hover,
.kol-aft-wizard .kol-aft-switch-builder:hover {
    color: #111827;
}

.kol-aft-wizard .kol-aft-wizard-actions button:not(.kol-aft-wizard-secondary):not(.kol-aft-switch-builder),
.kol-aft-wizard .kol-aft-wizard-inline-form > button {
    animation: none !important;
    background: linear-gradient(#2d7c2d, #1f5f1f) !important;
    color: #fff !important;
}

.kol-aft-wizard-actions {
    justify-content: flex-end;
    margin-top: 22px;
}

.kol-aft-wizard-inline-form {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) minmax(170px, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 22px;
}

.kol-aft-wizard-inline-form label {
    margin: 0;
}

.kol-aft-wizard-inline-form button {
    min-height: 46px;
}

.kol-aft-wizard-people {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.kol-aft-wizard-person-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.kol-aft-wizard-person-row span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.kol-aft-wizard-person-row small {
    color: #64748b;
}

.kol-aft-wizard-person-row button {
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-color: #b91c1c;
    background: #b91c1c;
}

.kol-aft-wizard-review > ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.kol-aft-wizard-review > ul > li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.kol-aft-wizard-review > ul > li span:not(.kol-aft-wizard-review-avatar),
.kol-aft-wizard-review > ul > li small {
    margin-left: auto;
    color: #64748b;
}

.kol-aft-wizard-review-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcefe0;
    color: #1f6f3d;
    font-size: 12px;
    font-weight: 900;
}

.kol-aft-wizard-save-gate {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #bbd8c1;
    border-radius: 12px;
    background: #f0f9f2;
}

.kol-aft-wizard-save-gate p {
    margin-bottom: 14px;
}

.kol-aft-wizard-device-note {
    width: min(900px, 100%);
    margin: 14px auto 0;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.kol-aft-wizard-notice {
    width: min(900px, 100%);
    min-height: 22px;
    margin: 10px auto 0;
    color: #1f6f3d;
    font-weight: 700;
    text-align: center;
}

.kol-aft-wizard-notice.is-error {
    color: #b91c1c;
}

.kol-aft-empty-guided {
    margin-top: 12px;
}

html.dark-mode .kol-aft-wizard,
body.dark-mode .kol-aft-wizard {
    background: #0f1115;
    color: #e5e7eb;
}

html.dark-mode .kol-aft-wizard-card,
body.dark-mode .kol-aft-wizard-card {
    border-color: #333;
    background: #1a1a1a;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .45);
}

html.dark-mode .kol-aft-wizard-card p,
html.dark-mode .kol-aft-wizard-device-note,
html.dark-mode .kol-aft-wizard-person-row small,
html.dark-mode .kol-aft-wizard-review > ul > li small,
body.dark-mode .kol-aft-wizard-card p,
body.dark-mode .kol-aft-wizard-device-note,
body.dark-mode .kol-aft-wizard-person-row small,
body.dark-mode .kol-aft-wizard-review > ul > li small {
    color: #a8b0bc;
}

html.dark-mode .kol-aft-wizard-form > label,
html.dark-mode .kol-aft-wizard-inline-form label,
body.dark-mode .kol-aft-wizard-form > label,
body.dark-mode .kol-aft-wizard-inline-form label {
    color: #e0e0e0;
}

html.dark-mode .kol-aft-wizard input,
html.dark-mode .kol-aft-wizard select,
body.dark-mode .kol-aft-wizard input,
body.dark-mode .kol-aft-wizard select {
    border-color: #444;
    background: #242424;
    color: #f3f4f6;
}

html.dark-mode .kol-aft-wizard-person-row,
html.dark-mode .kol-aft-wizard-review > ul > li,
body.dark-mode .kol-aft-wizard-person-row,
body.dark-mode .kol-aft-wizard-review > ul > li {
    border-color: #333;
    background: #222;
}

html.dark-mode .kol-aft-wizard-save-gate,
body.dark-mode .kol-aft-wizard-save-gate {
    border-color: #345b3c;
    background: #16251a;
}

html.dark-mode .kol-aft-wizard-progress li span,
body.dark-mode .kol-aft-wizard-progress li span {
    border-color: #555;
    background: #242424;
}

html.dark-mode .kol-aft-wizard-progress li.is-current span,
html.dark-mode .kol-aft-wizard-progress li.is-complete span,
body.dark-mode .kol-aft-wizard-progress li.is-current span,
body.dark-mode .kol-aft-wizard-progress li.is-complete span {
    border-color: #3d9d3d;
    background: #1f5f1f;
}

html.dark-mode .kol-aft-wizard .kol-aft-wizard-secondary,
html.dark-mode .kol-aft-wizard .kol-aft-wizard-secondary-link,
html.dark-mode .kol-aft-wizard .kol-aft-guest-clear,
html.dark-mode .kol-aft-wizard .kol-aft-switch-builder,
body.dark-mode .kol-aft-wizard .kol-aft-wizard-secondary,
body.dark-mode .kol-aft-wizard .kol-aft-wizard-secondary-link,
body.dark-mode .kol-aft-wizard .kol-aft-guest-clear,
body.dark-mode .kol-aft-wizard .kol-aft-switch-builder {
    border-color: #282828;
    background: linear-gradient(#383838, #343434);
    color: #fff;
}

@media (max-width: 800px) {
    .kol-aft-wizard {
        padding: 60px 12px 32px;
    }

    .kol-aft-wizard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .kol-aft-wizard-header-actions {
        width: 100%;
    }

    .kol-aft-wizard-header-actions select,
    .kol-aft-wizard-header-actions button {
        flex: 1 1 180px;
    }

    .kol-aft-wizard-progress li {
        justify-content: center;
        font-size: 0;
    }

    .kol-aft-wizard-progress li::after {
        left: calc(50% + 20px);
    }

    .kol-aft-wizard-card {
        padding: 20px 14px;
        border-radius: 12px;
    }

    .kol-aft-wizard-inline-form {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .kol-aft-wizard-inline-form button,
    .kol-aft-wizard-actions button,
    .kol-aft-wizard-auth-actions > * {
        width: 100%;
    }

    .kol-aft-wizard-actions {
        flex-direction: column-reverse;
    }
}

.kol-aft-app {
    width: 100%;
    color: inherit;
    margin: 0;
    --kol-aft-viewport-height: 100vh;
    --kol-aft-footer-offset: 0px;
    --kol-aft-shell-gap: 14px;
    --kol-aft-dynamic-top: 0px;
    --kol-aft-dynamic-bottom: 0px;
    --kol-aft-shell-height: calc(var(--kol-aft-viewport-height) - var(--kol-aft-footer-offset) - var(--kol-aft-shell-gap));
}

@supports (height: 100dvh) {
    .kol-aft-app {
        --kol-aft-viewport-height: 100dvh;
    }
}

body.kol-aft-page {
    overflow: hidden;
}

body.kol-aft-page .kol-aft-app {
    position: fixed;
    top: var(--kol-aft-dynamic-top, 0px);
    right: 0;
    bottom: var(--kol-aft-dynamic-bottom, 0px);
    left: 0;
    z-index: 10;
    padding: 0;
}

body.kol-aft-page.kol-bbm-enabled,
body.kol-aft-page.kol-bbm-enabled:not(.kol-bbm-minimized),
body.kol-aft-page.kol-bbm-enabled.kol-bbm-minimized {
    padding-bottom: 100px !important;
}

body.kol-aft-page .site,
body.kol-aft-page .site-content,
body.kol-aft-page .site-main,
body.kol-aft-page .site-wrapper,
body.kol-aft-page .content-area,
body.kol-aft-page #content,
body.kol-aft-page #primary,
body.kol-aft-page #main,
body.kol-aft-page main,
body.kol-aft-page article,
body.kol-aft-page .entry-content,
body.kol-aft-page .page-content,
body.kol-aft-page .buddypress-wrap,
body.kol-aft-page .bp-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.kol-aft-page .entry-header,
body.kol-aft-page .page-header {
    display: none !important;
}

body.kol-bbm-enabled:not(.kol-bbm-minimized) .kol-aft-app {
    --kol-aft-footer-offset: var(--bbm-height, 80px);
}

body.kol-bbm-enabled.kol-bbm-minimized .kol-aft-app {
    --kol-aft-footer-offset: 0px;
}

.kol-aft-loading,
.kol-aft-error,
.kol-aft-empty {
    padding: 18px;
    border-radius: 8px;
}

.kol-aft-loading {
    min-height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
}

.kol-aft-loading-card {
    display: grid;
    justify-items: center;
    gap: 9px;
    min-width: min(280px, 86vw);
    padding: 24px 28px;
    border: 1px solid;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.kol-aft-loading-card strong {
    font-size: 15px;
    line-height: 1.2;
}

.kol-aft-loading-card small {
    font-size: 12px;
    opacity: 0.7;
}

.kol-aft-loading-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid;
    border-radius: 999px;
    animation: kol-aft-spin 0.8s linear infinite;
}

@keyframes kol-aft-spin {
    to {
        transform: rotate(360deg);
    }
}

.kol-aft-login-required {
    min-height: min(640px, calc(100vh - 180px));
    width: 100%;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.kol-aft-login-required__card {
    width: min(460px, 100%);
    padding: 28px;
    border-radius: 8px;
    border: 1px solid;
    text-align: center;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
}

.kol-aft-login-required__card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
}

.kol-aft-login-required__card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.kol-aft-login-required__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.kol-aft-login-required__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 112px;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.kol-aft-shell {
    width: 100%;
    height: var(--kol-aft-shell-height);
    max-height: var(--kol-aft-shell-height);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.kol-aft-page .kol-aft-shell {
    height: 100%;
    max-height: 100%;
}

.kol-aft-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
}

.kol-aft-tree-select-wrap {
    min-width: 180px;
}

.kol-aft-topbar select,
.kol-aft-topbar input,
.kol-aft-panel input,
.kol-aft-panel select,
.kol-aft-panel textarea,
.kol-aft-empty input,
.kol-aft-empty select,
.kol-aft-modal input,
.kol-aft-modal select,
.kol-aft-modal textarea {
    min-height: 34px;
    border-radius: 6px;
    border: 1px solid;
    padding: 6px 9px;
    font-size: 13px;
    line-height: 1.3;
}

.kol-aft-topbar button,
.kol-aft-panel button,
.kol-aft-empty button,
.kol-aft-canvas-tools button,
.kol-aft-canvas-controls button,
.kol-aft-modal button,
.kol-aft-node button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
}

.kol-aft-tree-settings,
.kol-aft-create-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.kol-aft-tree-settings input {
    width: min(260px, 45vw);
}

.kol-aft-create-inline input {
    width: 130px;
}

.kol-aft-tree-setting-toggle {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.kol-aft-tree-setting-toggle input {
    width: auto;
    min-height: 0;
    margin: 0;
}

.kol-aft-view-tree-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.kol-aft-mobile-tabs {
    display: none;
    flex: 0 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 8px;
}

.kol-aft-mobile-tab {
    min-height: 44px;
    border: 1px solid;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.kol-aft-mobile-tab i {
    font-size: 15px;
}

.kol-aft-workspace {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr) 300px;
    gap: 12px;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.kol-aft-panel {
    border-radius: 8px;
    padding: 12px;
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.kol-aft-left-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 12px;
}

.kol-aft-left-tab {
    min-height: 38px;
    border: 1px solid;
    border-radius: 8px;
    padding: 7px 8px;
    font-size: 12px;
    font-weight: 800;
}

.kol-aft-left-pane {
    display: none;
}

.kol-aft-left-pane.is-active {
    display: block;
}

.kol-aft-section {
    padding: 0 0 14px;
    margin: 0 0 14px;
    border-bottom: 1px solid;
}

.kol-aft-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.kol-aft-section h3 {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.25;
}

.kol-aft-section input,
.kol-aft-section select,
.kol-aft-section textarea {
    width: 100%;
    margin-bottom: 8px;
}

.kol-aft-section textarea,
.kol-aft-modal textarea {
    min-height: 82px;
    resize: vertical;
}

.kol-aft-muted,
.kol-aft-request-meta,
.kol-aft-search-result small {
    font-size: 12px;
    opacity: 0.72;
}

.kol-aft-stage-wrap {
    min-width: 0;
    min-height: 0;
    display: flex;
}

.kol-aft-canvas-shell {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

body.kol-aft-canvas-expanded {
    overflow: hidden;
}

.kol-aft-canvas-shell.is-expanded {
    position: fixed;
    inset: var(--kol-aft-dynamic-top, 0) 0 calc(var(--kol-aft-dynamic-bottom, 0px) + 2px) 0;
    z-index: 999998;
    display: flex;
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 12px;
    background: #f8fafc;
}

.kol-aft-canvas-controls {
    position: absolute;
    top: 10px;
    right: 18px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border: 1px solid;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.kol-aft-canvas-controls button {
    width: 32px;
    min-height: 32px;
    padding: 0 !important;
}

.kol-aft-canvas-controls .kol-aft-download-tree-label {
    width: 42px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.kol-aft-canvas-controls .kol-aft-editor-anonymous-toggle {
    width: auto;
    min-width: 104px;
    padding: 0 10px !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.kol-aft-canvas-controls .kol-aft-editor-anonymous-toggle.is-active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.kol-aft-canvas-controls button:disabled {
    cursor: default;
    opacity: 0.45;
}

.kol-aft-canvas-tools {
    position: absolute;
    top: 70px;
    left: 14px;
    z-index: 21;
    display: grid;
    gap: 9px;
    padding: 7px;
    border: 1px solid;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.kol-aft-canvas-tools button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 999px !important;
    padding: 0 !important;
    font-size: 16px;
}

.kol-aft-canvas-tools button:disabled {
    cursor: default;
    opacity: 0.42;
}

.kol-aft-expanded-drawer-toggle,
.kol-aft-expanded-drawer-close {
    position: absolute;
    z-index: 42;
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 999px !important;
    padding: 0 !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.kol-aft-expanded-drawer-toggle-right {
    top: 148px;
    right: 18px;
}

.kol-aft-canvas-tools .kol-aft-expanded-drawer-toggle-left {
    position: static;
    z-index: auto;
    box-shadow: none;
}

.kol-aft-expanded-drawer {
    position: absolute;
    top: 12px;
    bottom: 12px;
    z-index: 41;
    width: min(340px, calc(100vw - 92px));
    overflow: auto;
    padding: 14px;
    border: 1px solid;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
    transition: transform 180ms ease, opacity 180ms ease;
    opacity: 0;
    pointer-events: none;
}

.kol-aft-expanded-drawer-left {
    left: 12px;
    transform: translateX(calc(-100% - 18px));
}

.kol-aft-expanded-drawer-right {
    right: 12px;
    transform: translateX(calc(100% + 18px));
}

.kol-aft-expanded-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.kol-aft-expanded-drawer-close {
    position: sticky;
    top: 0;
    float: right;
    margin: 0 0 10px 10px;
    box-shadow: none;
}

.kol-aft-hand-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
}

.kol-aft-zoom-level {
    min-width: 46px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.kol-aft-canvas-scroll {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid;
    cursor: grab;
    touch-action: none;
}

.kol-aft-canvas-scroll.is-panning {
    cursor: grabbing;
    user-select: none;
}

.is-cut-mode .kol-aft-canvas-scroll {
    cursor: crosshair;
}

.kol-aft-canvas-menu {
    position: absolute;
    z-index: 60;
    min-width: 176px;
    border: 1px solid;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.kol-aft-canvas-menu button {
    width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 13px;
    font-weight: 800;
}

.kol-aft-canvas-menu .kol-aft-canvas-menu-close {
    width: 26px;
    min-height: 26px;
    margin-left: auto;
    margin-bottom: 6px;
    justify-content: center;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

.kol-aft-stage-zoom {
    position: relative;
    width: 8000px;
    height: 5000px;
}

.kol-aft-stage {
    position: relative;
    width: 8000px;
    height: 5000px;
    overflow: hidden;
    transform-origin: 0 0;
}

.kol-aft-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.kol-aft-line {
    fill: none;
    stroke-width: 2;
}

.kol-aft-line-parent {
    stroke-width: 2.5;
}

.kol-aft-line.is-cut-target {
    stroke: #ef4444 !important;
    stroke-width: 5;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.58));
}

.kol-aft-cut-stroke {
    fill: none;
    stroke: #ef4444;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.82;
    pointer-events: none;
}

.kol-aft-line-label {
    font-size: 12px;
    paint-order: stroke;
    stroke-width: 4px;
    stroke-linejoin: round;
    text-anchor: middle;
    pointer-events: none;
}

.kol-aft-node {
    position: absolute;
    z-index: 2;
    width: 190px;
    touch-action: none;
    user-select: none;
}

.kol-aft-node-card {
    position: relative;
    width: 190px;
    min-height: 124px;
    border-radius: 8px;
    border: 1px solid;
    padding: 12px 10px 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.kol-aft-node.is-dragging .kol-aft-node-card {
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.kol-aft-node.is-link-dragging .kol-aft-avatar {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.kol-aft-node.is-drop-target .kol-aft-node-card {
    outline: 3px solid #2563eb;
    outline-offset: 4px;
    box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.18), 0 16px 34px rgba(0, 0, 0, 0.18);
}

.kol-aft-avatar {
    width: 52px;
    height: 52px;
    margin: 0 auto 7px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-weight: 800;
    cursor: crosshair;
}

.kol-aft-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kol-aft-avatar-drag-ghost {
    position: fixed;
    z-index: 999999;
    margin: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.94;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.28);
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.kol-aft-node-name {
    min-height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    word-break: break-word;
}

.kol-aft-node-name a {
    color: inherit !important;
    text-decoration: none;
}

.kol-aft-node-status {
    min-height: 18px;
    font-size: 11px;
    margin-top: 2px;
}

.kol-aft-node-status em {
    font-style: normal;
    display: inline-block;
    border-radius: 999px;
    padding: 2px 7px;
}

.kol-aft-node-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 8px;
}

.kol-aft-node-tools button {
    min-height: 25px;
    padding: 4px 5px;
    font-size: 10.5px;
    white-space: nowrap;
}

.kol-aft-node-icon {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 28px;
    height: 28px;
    min-height: 28px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 16px !important;
}

.kol-aft-search-result {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid;
    border-radius: 8px;
    margin-bottom: 7px;
}

.kol-aft-search-result img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.kol-aft-search-result strong,
.kol-aft-search-result small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kol-aft-link-form {
    display: grid;
    gap: 7px;
}

.kol-aft-people-list {
    max-height: none;
    overflow: auto;
}

.kol-aft-person-list-row {
    width: 100%;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
}

.kol-aft-people-list .kol-aft-person-list-item {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    gap: 8px;
    text-align: left;
}

.kol-aft-person-target {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.kol-aft-person-list-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.kol-aft-people-list .kol-aft-person-list-item small {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.kol-aft-expanded-drawer .kol-aft-person-list-row {
    gap: 9px;
    margin-bottom: 8px;
}

.kol-aft-expanded-drawer .kol-aft-person-target,
.kol-aft-expanded-drawer .kol-aft-person-list-item {
    min-height: 40px;
    border: 1px solid;
    border-radius: 8px;
    box-shadow: none;
}

.kol-aft-expanded-drawer .kol-aft-person-target {
    width: 40px;
    height: 40px;
}

.kol-aft-expanded-drawer .kol-aft-person-list-item {
    padding: 0 12px;
    font-size: 14px;
}

.kol-aft-expanded-drawer .kol-aft-person-list-item small {
    font-size: 12px;
    font-weight: 800;
    opacity: 0.82;
}

.kol-aft-node.is-focused .kol-aft-node-card {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.18), 0 12px 26px rgba(15, 23, 42, 0.18);
}

.kol-aft-request {
    border: 1px solid;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.kol-aft-request.is-highlighted {
    outline: 2px solid;
    outline-offset: 2px;
}

.kol-aft-request p {
    margin: 8px 0;
    font-size: 13px;
}

.kol-aft-consent-admin-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
}

.kol-aft-consent-admin-status span {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.72;
    white-space: nowrap;
}

.kol-aft-request-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.kol-aft-role-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(86px, auto) auto;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
}

.kol-aft-role-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kol-aft-role-selected {
    min-height: 24px;
    font-size: 12px;
    margin: 6px 0;
}

.kol-aft-role-inline {
    min-height: 30px;
    border: 1px solid;
    border-radius: 6px;
    padding: 4px 7px;
    font-size: 12px;
    font-weight: 700;
}

.kol-aft-role-locked {
    width: 30px;
    min-height: 30px;
    display: inline-grid;
    place-items: center;
    opacity: 0.7;
}

.kol-aft-role-pick.is-selected {
    background: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
}

.kol-aft-role-pick.is-selected i {
    color: #16a34a;
}

.kol-aft-modal-layer {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.kol-aft-modal-layer.is-open {
    display: flex;
}

.kol-aft-modal {
    position: relative;
    width: min(440px, 94vw);
    max-height: min(720px, 92vh);
    overflow: auto;
    border-radius: 8px;
    padding: 18px;
    border: 1px solid;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.kol-aft-modal h3 {
    margin: 0 32px 14px 0;
    font-size: 18px;
}

.kol-aft-text-shell {
    min-height: 0;
}

.kol-aft-word-view {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
    border: 1px solid;
    border-radius: 8px;
    padding: 20px 20px 20px 104px;
}

.kol-aft-word-view h3 {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.2;
}

.kol-aft-word-section {
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid;
}

.kol-aft-word-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.kol-aft-word-section h4 {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.kol-aft-word-sentences {
    display: grid;
    gap: 8px;
}

.kol-aft-word-sentence {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid;
    border-radius: 8px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
}

.kol-aft-word-sentence span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.kol-aft-word-sentence button {
    min-height: 28px;
    padding: 5px 8px;
}

.kol-aft-word-view button {
    border: 1px solid;
    border-radius: 7px;
    transform: translateY(0);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.kol-aft-word-view button:not(:disabled):active {
    transform: translateY(2px);
    box-shadow: none !important;
}

.kol-aft-word-line {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto minmax(120px, 0.8fr) auto minmax(130px, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.kol-aft-word-add-person-form .kol-aft-word-line {
    grid-template-columns: auto minmax(120px, 0.75fr) minmax(150px, 1fr) auto minmax(130px, 1fr) auto;
}

.kol-aft-word-line span {
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.kol-aft-word-line select,
.kol-aft-word-line input {
    margin: 0;
    width: 100%;
    min-height: 36px;
    border-radius: 7px;
    border: 1px solid;
    padding: 7px 9px;
    font-size: 13px;
    font-weight: 700;
}

.kol-aft-modal label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 10px;
}

.kol-aft-modal label input,
.kol-aft-modal label textarea {
    margin-top: 5px;
    width: 100%;
}

.kol-aft-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

.kol-aft-member-picker {
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid;
}

.kol-aft-modal-search-results {
    max-height: 190px;
    overflow: auto;
}

.kol-aft-selected-member {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 8px;
    border: 1px solid;
    border-radius: 8px;
}

.kol-aft-selected-member img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.kol-aft-selected-member strong,
.kol-aft-selected-member small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kol-aft-selected-member button {
    width: 30px;
    min-height: 30px;
    padding: 0 !important;
}

.kol-aft-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
}

.kol-aft-relation-sentence {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
    padding: 10px;
    border-radius: 8px;
}

.kol-aft-relation-sentence strong {
    font-size: 16px;
}

.kol-aft-relation-sentence select {
    margin: 0;
    min-width: 120px;
}

.kol-aft-swap-relation-people {
    margin: 0 0 12px;
}

.kol-aft-toast {
    position: fixed;
    z-index: 100000;
    right: 18px;
    bottom: 18px;
    max-width: 340px;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.kol-aft-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.kol-bbm-enabled:not(.kol-bbm-minimized) .kol-aft-toast {
    bottom: calc(var(--bbm-height, 80px) + 18px);
}

body.kol-bbm-enabled.kol-bbm-minimized .kol-aft-toast {
    bottom: 58px;
}

.kol-aft-empty h3 {
    margin-top: 0;
}

.kol-aft-empty {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.kol-aft-empty form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html.light-mode .kol-aft-topbar,
html:not(.dark-mode) .kol-aft-topbar,
html.light-mode .kol-aft-panel,
html:not(.dark-mode) .kol-aft-panel,
html.light-mode .kol-aft-empty,
html:not(.dark-mode) .kol-aft-empty,
html.light-mode .kol-aft-login-required__card,
html:not(.dark-mode) .kol-aft-login-required__card,
html.light-mode .kol-aft-canvas-controls,
html:not(.dark-mode) .kol-aft-canvas-controls,
html.light-mode .kol-aft-canvas-tools,
html:not(.dark-mode) .kol-aft-canvas-tools,
html.light-mode .kol-aft-expanded-drawer,
html:not(.dark-mode) .kol-aft-expanded-drawer,
html.light-mode .kol-aft-word-view,
html:not(.dark-mode) .kol-aft-word-view,
html.light-mode .kol-aft-loading,
html:not(.dark-mode) .kol-aft-loading,
html.light-mode .kol-aft-loading-card,
html:not(.dark-mode) .kol-aft-loading-card {
    background: #f8fafc;
    border: 1px solid #d9e1ea;
}

html.light-mode .kol-aft-loading-spinner,
html:not(.dark-mode) .kol-aft-loading-spinner {
    border-color: #dbeafe;
    border-top-color: #245f9f;
}

html.light-mode .kol-aft-mobile-tab,
html:not(.dark-mode) .kol-aft-mobile-tab,
html.light-mode .kol-aft-left-tab,
html:not(.dark-mode) .kol-aft-left-tab {
    background: #f8fafc;
    border-color: #d9e1ea;
    color: #172033;
}

html.light-mode .kol-aft-mobile-tab.is-mobile-active,
html:not(.dark-mode) .kol-aft-mobile-tab.is-mobile-active,
html.light-mode .kol-aft-left-tab.is-active,
html:not(.dark-mode) .kol-aft-left-tab.is-active {
    background: #245f9f;
    border-color: #245f9f;
    color: #ffffff;
}

html.light-mode .kol-aft-canvas-scroll,
html:not(.dark-mode) .kol-aft-canvas-scroll {
    border-color: #d9e1ea;
    background:
        linear-gradient(#edf2f7 1px, transparent 1px),
        linear-gradient(90deg, #edf2f7 1px, transparent 1px),
        #ffffff;
    background-size: 32px 32px;
}

html.light-mode .kol-aft-canvas-menu,
html:not(.dark-mode) .kol-aft-canvas-menu {
    background: #ffffff;
    border-color: #d6e0ec;
}

html.light-mode .kol-aft-canvas-menu button,
html:not(.dark-mode) .kol-aft-canvas-menu button {
    background: #2567aa;
    color: #ffffff;
}

html.light-mode .kol-aft-node-card,
html:not(.dark-mode) .kol-aft-node-card,
html.light-mode .kol-aft-search-result,
html:not(.dark-mode) .kol-aft-search-result,
html.light-mode .kol-aft-selected-member,
html:not(.dark-mode) .kol-aft-selected-member,
html.light-mode .kol-aft-request,
html:not(.dark-mode) .kol-aft-request,
html.light-mode .kol-aft-word-sentence,
html:not(.dark-mode) .kol-aft-word-sentence {
    background: #ffffff;
    border-color: #d9e1ea;
}

html.light-mode .kol-aft-word-view button,
html:not(.dark-mode) .kol-aft-word-view button {
    background: linear-gradient(#f8fafc, #d7dee8);
    border-color: #aeb8c6;
    color: #172033;
    box-shadow: 0 4px 0 #8e99aa, 0 9px 18px rgba(15, 23, 42, 0.2);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

html.light-mode .kol-aft-word-view button:not(:disabled):hover,
html:not(.dark-mode) .kol-aft-word-view button:not(:disabled):hover {
    filter: brightness(1.04);
}

html.light-mode .kol-aft-word-line select,
html:not(.dark-mode) .kol-aft-word-line select,
html.light-mode .kol-aft-word-line input,
html:not(.dark-mode) .kol-aft-word-line input {
    background: linear-gradient(#ffffff, #eef2f6);
    border-color: #aeb8c6;
    color: #172033;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 0 #c2cad5;
}

html.light-mode .kol-aft-section,
html:not(.dark-mode) .kol-aft-section,
html.light-mode .kol-aft-member-picker,
html:not(.dark-mode) .kol-aft-member-picker,
html.light-mode .kol-aft-word-section,
html:not(.dark-mode) .kol-aft-word-section {
    border-bottom-color: #e2e8f0;
}

html.light-mode .kol-aft-topbar input,
html:not(.dark-mode) .kol-aft-topbar input,
html.light-mode .kol-aft-topbar select,
html:not(.dark-mode) .kol-aft-topbar select,
html.light-mode .kol-aft-tree-setting-toggle,
html:not(.dark-mode) .kol-aft-tree-setting-toggle,
html.light-mode .kol-aft-panel input,
html:not(.dark-mode) .kol-aft-panel input,
html.light-mode .kol-aft-panel select,
html:not(.dark-mode) .kol-aft-panel select,
html.light-mode .kol-aft-role-inline,
html:not(.dark-mode) .kol-aft-role-inline,
html.light-mode .kol-aft-panel textarea,
html:not(.dark-mode) .kol-aft-panel textarea,
html.light-mode .kol-aft-empty input,
html:not(.dark-mode) .kol-aft-empty input,
html.light-mode .kol-aft-empty select,
html:not(.dark-mode) .kol-aft-empty select,
html.light-mode .kol-aft-modal input,
html:not(.dark-mode) .kol-aft-modal input,
html.light-mode .kol-aft-modal textarea,
html:not(.dark-mode) .kol-aft-modal textarea {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #172033;
}

html.light-mode .kol-aft-topbar button,
html:not(.dark-mode) .kol-aft-topbar button,
html.light-mode .kol-aft-view-tree-link,
html:not(.dark-mode) .kol-aft-view-tree-link,
html.light-mode .kol-aft-login-required__button,
html:not(.dark-mode) .kol-aft-login-required__button,
html.light-mode .kol-aft-panel button,
html:not(.dark-mode) .kol-aft-panel button,
html.light-mode .kol-aft-empty button,
html:not(.dark-mode) .kol-aft-empty button,
html.light-mode .kol-aft-canvas-tools button,
html:not(.dark-mode) .kol-aft-canvas-tools button,
html.light-mode .kol-aft-canvas-controls button,
html:not(.dark-mode) .kol-aft-canvas-controls button,
html.light-mode .kol-aft-expanded-drawer-toggle,
html:not(.dark-mode) .kol-aft-expanded-drawer-toggle,
html.light-mode .kol-aft-expanded-drawer-close,
html:not(.dark-mode) .kol-aft-expanded-drawer-close,
html.light-mode .kol-aft-modal button,
html:not(.dark-mode) .kol-aft-modal button,
html.light-mode .kol-aft-node button,
html:not(.dark-mode) .kol-aft-node button {
    background: #245f9f;
    color: #ffffff;
}

html.light-mode .kol-aft-login-required__button--secondary,
html:not(.dark-mode) .kol-aft-login-required__button--secondary {
    background: #ffffff;
    color: #245f9f;
    border: 1px solid #245f9f;
}

html.light-mode .kol-aft-delete-tree,
html:not(.dark-mode) .kol-aft-delete-tree,
html.light-mode .kol-aft-delete-person,
html:not(.dark-mode) .kol-aft-delete-person,
html.light-mode .kol-aft-review-reject,
html:not(.dark-mode) .kol-aft-review-reject,
html.light-mode .kol-aft-claim-reject,
html:not(.dark-mode) .kol-aft-claim-reject {
    background: #9f2f2f !important;
}

html.light-mode .kol-aft-canvas-tool.is-active,
html:not(.dark-mode) .kol-aft-canvas-tool.is-active {
    background: #0ea5e9 !important;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

html.light-mode .kol-aft-expanded-drawer .kol-aft-person-target,
html:not(.dark-mode) .kol-aft-expanded-drawer .kol-aft-person-target {
    background: #ffffff;
    border-color: #b7c3d3;
    color: #245f9f;
}

html.light-mode .kol-aft-expanded-drawer .kol-aft-person-list-item,
html:not(.dark-mode) .kol-aft-expanded-drawer .kol-aft-person-list-item {
    background: #245f9f;
    border-color: #245f9f;
    color: #ffffff;
}

html.light-mode .kol-aft-expanded-drawer .kol-aft-person-list-item small,
html:not(.dark-mode) .kol-aft-expanded-drawer .kol-aft-person-list-item small {
    color: #dbeafe;
}

html.light-mode .kol-aft-avatar,
html:not(.dark-mode) .kol-aft-avatar {
    background: #e7eef7;
    color: #25456f;
}

html.light-mode .kol-aft-node-name,
html:not(.dark-mode) .kol-aft-node-name {
    color: #172033;
}

html.light-mode body.kol-aft-page .kol-aft-app .kol-aft-node .kol-aft-node-name a,
html:not(.dark-mode) body.kol-aft-page .kol-aft-app .kol-aft-node .kol-aft-node-name a {
    color: #172033 !important;
}

html.light-mode .kol-aft-node-status em,
html:not(.dark-mode) .kol-aft-node-status em {
    background: #e8f1f6;
    color: #365365;
}

html.light-mode .status-claimed .kol-aft-node-status em,
html:not(.dark-mode) .status-claimed .kol-aft-node-status em {
    background: #dcfce7;
    color: #166534;
}

html.light-mode .status-invite_sent .kol-aft-node-status em,
html:not(.dark-mode) .status-invite_sent .kol-aft-node-status em,
html.light-mode .status-pending_user_confirm .kol-aft-node-status em,
html:not(.dark-mode) .status-pending_user_confirm .kol-aft-node-status em,
html.light-mode .status-pending_admin_approval .kol-aft-node-status em,
html:not(.dark-mode) .status-pending_admin_approval .kol-aft-node-status em {
    background: #fef3c7;
    color: #92400e;
}

html.light-mode .kol-aft-node-icon,
html:not(.dark-mode) .kol-aft-node-icon {
    background: #d97706 !important;
}

html.light-mode .kol-aft-line,
html:not(.dark-mode) .kol-aft-line {
    stroke: #64748b;
}

html.light-mode .kol-aft-line-parent,
html:not(.dark-mode) .kol-aft-line-parent {
    stroke: #2f7d60;
}

html.light-mode .kol-aft-line-label,
html:not(.dark-mode) .kol-aft-line-label {
    fill: #334155;
    stroke: #ffffff;
}

html.light-mode .kol-aft-modal,
html:not(.dark-mode) .kol-aft-modal {
    background: #ffffff;
    border-color: #d9e1ea;
}

html.light-mode .kol-aft-modal-layer,
html:not(.dark-mode) .kol-aft-modal-layer {
    background: rgba(15, 23, 42, 0.48);
}

html.light-mode .kol-aft-toast,
html:not(.dark-mode) .kol-aft-toast {
    background: #172033;
    color: #ffffff;
}

html.dark-mode .kol-aft-topbar,
html.dark-mode .kol-aft-panel,
html.dark-mode .kol-aft-empty,
html.dark-mode .kol-aft-login-required__card,
html.dark-mode .kol-aft-canvas-controls,
html.dark-mode .kol-aft-canvas-tools,
html.dark-mode .kol-aft-expanded-drawer,
html.dark-mode .kol-aft-word-view,
html.dark-mode .kol-aft-loading,
html.dark-mode .kol-aft-loading-card {
    background: #171a1f;
    border: 1px solid #2b3038;
}

html.dark-mode .kol-aft-loading-spinner {
    border-color: #26313d;
    border-top-color: #2f6f9f;
}

html.dark-mode .kol-aft-mobile-tab,
html.dark-mode .kol-aft-left-tab {
    background: #171a1f;
    border-color: #2b3038;
    color: #e6edf3;
}

html.dark-mode .kol-aft-mobile-tab.is-mobile-active,
html.dark-mode .kol-aft-left-tab.is-active {
    background: #2f6f9f;
    border-color: #2f6f9f;
    color: #ffffff;
}

html.dark-mode .kol-aft-canvas-scroll {
    border-color: #2b3038;
    background:
        linear-gradient(#242932 1px, transparent 1px),
        linear-gradient(90deg, #242932 1px, transparent 1px),
        #101318;
    background-size: 32px 32px;
}

html.dark-mode .kol-aft-canvas-shell.is-expanded {
    background: #101318;
}

html.dark-mode .kol-aft-canvas-menu {
    background: #111827;
    border-color: #334155;
}

html.dark-mode .kol-aft-canvas-menu button {
    background: #2563eb;
    color: #ffffff;
}

html.dark-mode .kol-aft-node-card,
html.dark-mode .kol-aft-search-result,
html.dark-mode .kol-aft-selected-member,
html.dark-mode .kol-aft-request,
html.dark-mode .kol-aft-word-sentence {
    background: #1d2229;
    border-color: #333b46;
}

html.dark-mode .kol-aft-word-view button {
    background: linear-gradient(#3a424d, #20262f);
    border-color: #4b5563;
    color: #f8fafc;
    box-shadow: 0 4px 0 #0b0f14, 0 10px 20px rgba(0, 0, 0, 0.46);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.75);
}

html.dark-mode .kol-aft-word-view button:not(:disabled):hover {
    filter: brightness(1.12);
}

html.dark-mode .kol-aft-word-line select,
html.dark-mode .kol-aft-word-line input {
    background: linear-gradient(#20262f, #11151b);
    border-color: #4b5563;
    color: #e6edf3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 0 #05070a;
}

html.dark-mode .kol-aft-section,
html.dark-mode .kol-aft-member-picker,
html.dark-mode .kol-aft-word-section {
    border-bottom-color: #303640;
}

html.dark-mode .kol-aft-topbar input,
html.dark-mode .kol-aft-topbar select,
html.dark-mode .kol-aft-tree-setting-toggle,
html.dark-mode .kol-aft-panel input,
html.dark-mode .kol-aft-panel select,
html.dark-mode .kol-aft-role-inline,
html.dark-mode .kol-aft-panel textarea,
html.dark-mode .kol-aft-empty input,
html.dark-mode .kol-aft-empty select,
html.dark-mode .kol-aft-modal input,
html.dark-mode .kol-aft-modal textarea {
    background: #11151b;
    border-color: #343c47;
    color: #e6edf3;
}

html.dark-mode .kol-aft-topbar button,
html.dark-mode .kol-aft-view-tree-link,
html.dark-mode .kol-aft-login-required__button,
html.dark-mode .kol-aft-panel button,
html.dark-mode .kol-aft-empty button,
html.dark-mode .kol-aft-canvas-tools button,
html.dark-mode .kol-aft-canvas-controls button,
html.dark-mode .kol-aft-expanded-drawer-toggle,
html.dark-mode .kol-aft-expanded-drawer-close,
html.dark-mode .kol-aft-modal button,
html.dark-mode .kol-aft-node button {
    background: #2f6f9f;
    color: #ffffff;
}

html.dark-mode .kol-aft-login-required__button--secondary {
    background: #11151b;
    color: #dbeafe;
    border: 1px solid #2f6f9f;
}

html.dark-mode .kol-aft-delete-tree,
html.dark-mode .kol-aft-delete-person,
html.dark-mode .kol-aft-review-reject,
html.dark-mode .kol-aft-claim-reject {
    background: #7f2f2f !important;
}

html.dark-mode .kol-aft-canvas-tool.is-active {
    background: #22c55e !important;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

html.dark-mode .kol-aft-expanded-drawer .kol-aft-person-target {
    background: #11151b;
    border-color: #343c47;
    color: #dbeafe;
}

html.dark-mode .kol-aft-expanded-drawer .kol-aft-person-list-item {
    background: #2f6f9f;
    border-color: #2f6f9f;
    color: #ffffff;
}

html.dark-mode .kol-aft-expanded-drawer .kol-aft-person-list-item small {
    color: #dbeafe;
}

html.dark-mode .kol-aft-avatar {
    background: #26313d;
    color: #d7e2ed;
}

html.dark-mode .kol-aft-node-name {
    color: #eef3f8;
}

html.dark-mode body.kol-aft-page .kol-aft-app .kol-aft-node .kol-aft-node-name a {
    color: #eef3f8 !important;
}

html.dark-mode .kol-aft-node-status em {
    background: #2b3340;
    color: #dbeafe;
}

html.dark-mode .status-claimed .kol-aft-node-status em {
    background: #164736;
    color: #bbf7d0;
}

html.dark-mode .status-invite_sent .kol-aft-node-status em,
html.dark-mode .status-pending_user_confirm .kol-aft-node-status em,
html.dark-mode .status-pending_admin_approval .kol-aft-node-status em {
    background: #4f3f16;
    color: #fde68a;
}

html.dark-mode .kol-aft-node-icon {
    background: #a35f0b !important;
}

html.dark-mode .kol-aft-line {
    stroke: #738195;
}

html.dark-mode .kol-aft-line-parent {
    stroke: #6bbf9d;
}

html.dark-mode .kol-aft-line-label {
    fill: #e5edf6;
    stroke: #101318;
}

html.dark-mode .kol-aft-modal {
    background: #1d2229;
    border-color: #333b46;
    color: #e6edf3;
}

html.dark-mode .kol-aft-modal-layer {
    background: rgba(0, 0, 0, 0.62);
}

html.dark-mode .kol-aft-toast {
    background: #e6edf3;
    color: #11151b;
}

body.kol-aft-view-page {
    overflow: auto;
}

body.kol-aft-view-page .entry-header,
body.kol-aft-view-page .page-header {
    display: none !important;
}

.kol-aft-view,
.kol-aft-view * {
    box-sizing: border-box;
}

.kol-aft-view {
    width: 100%;
    margin: 0;
    padding: 14px;
    color: #102033;
}

.kol-aft-view-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.kol-aft-view-kicker {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 800;
}

.kol-aft-view h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
}

.kol-aft-view-meta {
    margin: 8px 0 0;
    font-weight: 700;
}

.kol-aft-view-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.kol-aft-view-button {
    border: 0;
    border-radius: 6px;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.kol-aft-view .kol-aft-view-actions .kol-aft-view-button {
    color: #ffffff !important;
}

.kol-aft-view-button:hover,
.kol-aft-view-button:focus {
    color: #ffffff !important;
    text-decoration: none;
}

.kol-aft-view .kol-aft-view-actions .kol-aft-view-button:hover,
.kol-aft-view .kol-aft-view-actions .kol-aft-view-button:focus {
    color: #ffffff !important;
}

.kol-aft-view-download {
    min-width: 48px;
    text-align: center;
}

.kol-aft-view-download:disabled {
    cursor: default;
    opacity: 0.65;
}

.kol-aft-view-tree {
    position: relative;
    z-index: 2;
    display: block;
    min-width: 360px;
    min-height: 220px;
    transition: transform 160ms ease;
    will-change: transform;
    transform-origin: top left;
}

.kol-aft-view-canvas {
    position: relative;
    padding: 22px;
    border-radius: 0 0 8px 8px;
    height: 650px;
    min-height: 420px;
    max-height: 760px;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    background: #ffffff;
    border: 1px solid #bfd0e6;
    border-top: 0;
    box-shadow: 0 12px 28px rgba(20, 47, 86, 0.1);
}

.kol-aft-view-canvas.is-panning {
    cursor: grabbing;
}

.kol-aft-view-zoom-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(20, 47, 86, 0.12);
}

.kol-aft-view-zoom-button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
}

.kol-aft-view-zoom-button:disabled {
    cursor: default;
    opacity: 0.46;
}

.kol-aft-view-connectors {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.kol-aft-view-connector {
    fill: none;
    stroke-width: 2.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kol-aft-view-person-card {
    position: absolute;
    min-width: 0;
    width: 176px;
    height: 116px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #0d7ec0 0%, #105aa7 52%, #0b3470 100%);
    border: 1px solid rgba(91, 213, 255, 0.9);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(4, 21, 48, 0.24);
}

.kol-aft-view-person-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-weight: 900;
    margin: 0 auto 7px;
    cursor: pointer;
}

.kol-aft-view-person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kol-aft-view-person-body {
    min-width: 0;
    width: 100%;
    display: grid;
    justify-items: center;
    align-content: center;
}

.kol-aft-view-person-body h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    color: inherit;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kol-aft-view-person-detail {
    display: none;
}

.kol-aft-view-person-avatar-large {
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
}

.kol-aft-view-person-date,
.kol-aft-view-person-status {
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.35;
}

.kol-aft-view-person-status {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 700;
}

.kol-aft-view-person-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 8px;
}

.kol-aft-view-person-links span {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.kol-aft-view-profile-link {
    display: inline-flex;
    margin-top: 12px;
    border-radius: 6px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.kol-aft-view-card-open {
    overflow: hidden;
}

.kol-aft-view-card-layer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.55);
}

.kol-aft-view-card-popup {
    position: relative;
    width: min(360px, 100%);
    border: 1px solid;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.kol-aft-view-card-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.kol-aft-view-card-content {
    display: grid;
    justify-items: center;
}

.kol-aft-view-card-content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
}

.kol-aft-view-theme-circuit .kol-aft-view-header,
.kol-aft-view-theme-circuit .kol-aft-view-canvas {
    border: 1px solid #b7d5ff;
    box-shadow: 0 10px 24px rgba(24, 68, 130, 0.08);
}

.kol-aft-view-theme-circuit .kol-aft-view-header {
    background: #f8fbff;
}

.kol-aft-view-theme-circuit .kol-aft-view-canvas {
    background: #f8fbff;
    border-top: 0;
}

.kol-aft-view-theme-circuit .kol-aft-view-kicker,
.kol-aft-view-theme-circuit .kol-aft-view-generation h2 {
    color: #006f9f;
}

.kol-aft-view-theme-circuit .kol-aft-view-button,
.kol-aft-view-theme-circuit .kol-aft-view-zoom-button,
.kol-aft-view-theme-circuit .kol-aft-view-person-avatar {
    background: #006f9f;
    color: #fff;
}

.kol-aft-view-theme-circuit .kol-aft-view-zoom-controls {
    background: #ffffff;
    border-color: #b7d5ff;
}

.kol-aft-view-theme-circuit .kol-aft-view-person-card {
    background: linear-gradient(135deg, #0d7ec0 0%, #105aa7 52%, #0b3470 100%);
    border: 1px solid rgba(91, 213, 255, 0.9);
    color: #ffffff;
}

.kol-aft-view-theme-circuit .kol-aft-view-connector {
    stroke: #27c3d9;
    filter: drop-shadow(0 0 5px rgba(39, 195, 217, 0.45));
}

.kol-aft-view-theme-circuit .kol-aft-view-connector-node {
    background: #27c3d9;
    box-shadow: 0 0 10px rgba(39, 195, 217, 0.6);
}

.kol-aft-view-theme-circuit .kol-aft-view-person-status,
.kol-aft-view-theme-circuit .kol-aft-view-person-links span {
    background: #e0f7fb;
    color: #006f9f;
}

.kol-aft-view-theme-circuit .kol-aft-view-profile-link,
.kol-aft-view-card-popup .kol-aft-view-profile-link {
    background: #006f9f;
    color: #ffffff;
}

.kol-aft-view-card-popup {
    background: #ffffff;
    border-color: #cbe1ff;
    color: #102033;
}

.kol-aft-view-card-close {
    background: #e0f7fb;
    color: #006f9f;
}

.kol-aft-view-theme-classic .kol-aft-view-header,
.kol-aft-view-theme-classic .kol-aft-view-canvas {
    border: 1px solid #d7c7a4;
    box-shadow: 0 10px 22px rgba(80, 60, 35, 0.08);
}

.kol-aft-view-theme-classic .kol-aft-view-header,
.kol-aft-view-theme-classic .kol-aft-view-canvas {
    background: #fffdf7;
}

.kol-aft-view-theme-classic .kol-aft-view-canvas {
    border-top: 0;
}

.kol-aft-view-theme-classic .kol-aft-view-kicker,
.kol-aft-view-theme-classic .kol-aft-view-generation h2 {
    color: #53723f;
}

.kol-aft-view-theme-classic .kol-aft-view-button,
.kol-aft-view-theme-classic .kol-aft-view-zoom-button,
.kol-aft-view-theme-classic .kol-aft-view-person-avatar {
    background: #53723f;
    color: #fff;
}

.kol-aft-view-theme-classic .kol-aft-view-zoom-controls {
    background: #fffdf7;
    border-color: #d7c7a4;
}

.kol-aft-view-theme-classic .kol-aft-view-person-card {
    background: linear-gradient(135deg, #0d7ec0 0%, #105aa7 52%, #0b3470 100%);
    border: 1px solid rgba(91, 213, 255, 0.9);
    color: #ffffff;
}

.kol-aft-view-theme-classic .kol-aft-view-connector {
    stroke: #8a6b3e;
}

.kol-aft-view-theme-classic .kol-aft-view-person-status,
.kol-aft-view-theme-classic .kol-aft-view-person-links span {
    background: #edf2e4;
    color: #53723f;
}

.kol-aft-view-theme-classic .kol-aft-view-profile-link {
    background: #53723f;
    color: #ffffff;
}

.kol-aft-view-person-card,
.kol-aft-view-person-card .kol-aft-view-person-body h3,
.kol-aft-view-person-card .kol-aft-view-person-date,
.kol-aft-view-person-card .kol-aft-view-person-detail,
.kol-aft-view-person-card .kol-aft-view-person-status,
.kol-aft-view-person-card .kol-aft-view-person-links span {
    color: #ffffff;
}

.kol-aft-view-person-card .kol-aft-view-person-status,
.kol-aft-view-person-card .kol-aft-view-person-links span {
    background: rgba(255, 255, 255, 0.18);
}

html.dark-mode body.kol-aft-page,
html.dark-mode body.kol-aft-view-page,
body.dark-mode.kol-aft-page,
body.dark-mode.kol-aft-view-page {
    background: #0b1117;
    color: #f8fafc;
}

html.dark-mode .kol-aft-app,
html.dark-mode .kol-aft-view,
body.dark-mode .kol-aft-app,
body.dark-mode .kol-aft-view {
    --kol-aft-dark-page: #0b1117;
    --kol-aft-dark-canvas: #0f1620;
    --kol-aft-dark-grid: rgba(72, 95, 122, 0.38);
    --kol-aft-dark-panel: #111827;
    --kol-aft-dark-panel-alt: #1b2532;
    --kol-aft-dark-border: #334155;
    --kol-aft-dark-text: #f8fafc;
    --kol-aft-dark-muted: #b7c4d4;
    --kol-aft-dark-accent: #22cfe8;
    --kol-aft-dark-button: #0b75a5;
    --kol-aft-dark-danger: #8f2d37;
    color: var(--kol-aft-dark-text);
}

html.dark-mode .kol-aft-shell,
html.dark-mode .kol-aft-text-shell,
body.dark-mode .kol-aft-shell,
body.dark-mode .kol-aft-text-shell {
    background: var(--kol-aft-dark-page, #0b1117);
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-topbar,
html.dark-mode .kol-aft-panel,
html.dark-mode .kol-aft-empty,
html.dark-mode .kol-aft-login-required__card,
html.dark-mode .kol-aft-canvas-controls,
html.dark-mode .kol-aft-canvas-tools,
html.dark-mode .kol-aft-expanded-drawer,
html.dark-mode .kol-aft-word-view,
html.dark-mode .kol-aft-loading,
html.dark-mode .kol-aft-loading-card,
body.dark-mode .kol-aft-topbar,
body.dark-mode .kol-aft-panel,
body.dark-mode .kol-aft-empty,
body.dark-mode .kol-aft-login-required__card,
body.dark-mode .kol-aft-canvas-controls,
body.dark-mode .kol-aft-canvas-tools,
body.dark-mode .kol-aft-expanded-drawer,
body.dark-mode .kol-aft-word-view,
body.dark-mode .kol-aft-loading,
body.dark-mode .kol-aft-loading-card {
    background: var(--kol-aft-dark-panel, #111827);
    border-color: var(--kol-aft-dark-border, #334155);
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-mobile-tab,
html.dark-mode .kol-aft-left-tab,
body.dark-mode .kol-aft-mobile-tab,
body.dark-mode .kol-aft-left-tab {
    background: var(--kol-aft-dark-panel, #111827);
    border-color: var(--kol-aft-dark-border, #334155);
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-mobile-tab.is-mobile-active,
html.dark-mode .kol-aft-left-tab.is-active,
body.dark-mode .kol-aft-mobile-tab.is-mobile-active,
body.dark-mode .kol-aft-left-tab.is-active {
    background: var(--kol-aft-dark-button, #0b75a5);
    border-color: var(--kol-aft-dark-button, #0b75a5);
    color: #ffffff;
}

html.dark-mode .kol-aft-canvas-shell.is-expanded,
body.dark-mode .kol-aft-canvas-shell.is-expanded {
    background: var(--kol-aft-dark-page, #0b1117);
}

html.dark-mode .kol-aft-canvas-scroll,
body.dark-mode .kol-aft-canvas-scroll {
    background:
        linear-gradient(var(--kol-aft-dark-grid, rgba(72, 95, 122, 0.38)) 1px, transparent 1px),
        linear-gradient(90deg, var(--kol-aft-dark-grid, rgba(72, 95, 122, 0.38)) 1px, transparent 1px),
        var(--kol-aft-dark-canvas, #0f1620);
    background-size: 32px 32px;
    border-color: var(--kol-aft-dark-border, #334155);
}

html.dark-mode .kol-aft-stage,
html.dark-mode .kol-aft-stage-zoom,
body.dark-mode .kol-aft-stage,
body.dark-mode .kol-aft-stage-zoom {
    background: transparent;
}

html.dark-mode .kol-aft-canvas-menu,
body.dark-mode .kol-aft-canvas-menu {
    background: var(--kol-aft-dark-panel, #111827);
    border-color: var(--kol-aft-dark-border, #334155);
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-node-card,
html.dark-mode .kol-aft-search-result,
html.dark-mode .kol-aft-selected-member,
html.dark-mode .kol-aft-request,
html.dark-mode .kol-aft-word-sentence,
body.dark-mode .kol-aft-node-card,
body.dark-mode .kol-aft-search-result,
body.dark-mode .kol-aft-selected-member,
body.dark-mode .kol-aft-request,
body.dark-mode .kol-aft-word-sentence {
    background: var(--kol-aft-dark-panel-alt, #1b2532);
    border-color: var(--kol-aft-dark-border, #334155);
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-topbar input,
html.dark-mode .kol-aft-topbar select,
html.dark-mode .kol-aft-tree-setting-toggle,
html.dark-mode .kol-aft-panel input,
html.dark-mode .kol-aft-panel select,
html.dark-mode .kol-aft-role-inline,
html.dark-mode .kol-aft-panel textarea,
html.dark-mode .kol-aft-empty input,
html.dark-mode .kol-aft-empty select,
html.dark-mode .kol-aft-modal input,
html.dark-mode .kol-aft-modal select,
html.dark-mode .kol-aft-modal textarea,
html.dark-mode .kol-aft-word-line select,
html.dark-mode .kol-aft-word-line input,
body.dark-mode .kol-aft-topbar input,
body.dark-mode .kol-aft-topbar select,
body.dark-mode .kol-aft-tree-setting-toggle,
body.dark-mode .kol-aft-panel input,
body.dark-mode .kol-aft-panel select,
body.dark-mode .kol-aft-role-inline,
body.dark-mode .kol-aft-panel textarea,
body.dark-mode .kol-aft-empty input,
body.dark-mode .kol-aft-empty select,
body.dark-mode .kol-aft-modal input,
body.dark-mode .kol-aft-modal select,
body.dark-mode .kol-aft-modal textarea,
body.dark-mode .kol-aft-word-line select,
body.dark-mode .kol-aft-word-line input {
    background: #0f1620;
    border-color: var(--kol-aft-dark-border, #334155);
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-topbar input::placeholder,
html.dark-mode .kol-aft-panel input::placeholder,
html.dark-mode .kol-aft-panel textarea::placeholder,
html.dark-mode .kol-aft-empty input::placeholder,
html.dark-mode .kol-aft-modal input::placeholder,
html.dark-mode .kol-aft-modal textarea::placeholder,
body.dark-mode .kol-aft-topbar input::placeholder,
body.dark-mode .kol-aft-panel input::placeholder,
body.dark-mode .kol-aft-panel textarea::placeholder,
body.dark-mode .kol-aft-empty input::placeholder,
body.dark-mode .kol-aft-modal input::placeholder,
body.dark-mode .kol-aft-modal textarea::placeholder {
    color: #8796aa;
}

html.dark-mode .kol-aft-topbar button,
html.dark-mode .kol-aft-view-tree-link,
html.dark-mode .kol-aft-login-required__button,
html.dark-mode .kol-aft-panel button,
html.dark-mode .kol-aft-empty button,
html.dark-mode .kol-aft-canvas-tools button,
html.dark-mode .kol-aft-canvas-controls button,
html.dark-mode .kol-aft-expanded-drawer-toggle,
html.dark-mode .kol-aft-expanded-drawer-close,
html.dark-mode .kol-aft-modal button,
html.dark-mode .kol-aft-node button,
body.dark-mode .kol-aft-topbar button,
body.dark-mode .kol-aft-view-tree-link,
body.dark-mode .kol-aft-login-required__button,
body.dark-mode .kol-aft-panel button,
body.dark-mode .kol-aft-empty button,
body.dark-mode .kol-aft-canvas-tools button,
body.dark-mode .kol-aft-canvas-controls button,
body.dark-mode .kol-aft-expanded-drawer-toggle,
body.dark-mode .kol-aft-expanded-drawer-close,
body.dark-mode .kol-aft-modal button,
body.dark-mode .kol-aft-node button {
    background: var(--kol-aft-dark-button, #0b75a5);
    color: #ffffff;
}

html.dark-mode .kol-aft-delete-tree,
html.dark-mode .kol-aft-delete-person,
html.dark-mode .kol-aft-review-reject,
html.dark-mode .kol-aft-claim-reject,
body.dark-mode .kol-aft-delete-tree,
body.dark-mode .kol-aft-delete-person,
body.dark-mode .kol-aft-review-reject,
body.dark-mode .kol-aft-claim-reject {
    background: var(--kol-aft-dark-danger, #8f2d37) !important;
}

html.dark-mode .kol-aft-canvas-tool.is-active,
body.dark-mode .kol-aft-canvas-tool.is-active {
    background: var(--kol-aft-dark-accent, #22cfe8) !important;
    color: #06202a;
    box-shadow: 0 0 0 3px rgba(34, 207, 232, 0.22);
}

html.dark-mode .kol-aft-canvas-controls .kol-aft-editor-anonymous-toggle.is-active,
body.dark-mode .kol-aft-canvas-controls .kol-aft-editor-anonymous-toggle.is-active {
    background: var(--kol-aft-dark-button, #0b75a5) !important;
    color: #ffffff;
}

html.dark-mode .kol-aft-avatar,
body.dark-mode .kol-aft-avatar {
    background: #263244;
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-node-name,
html.dark-mode .kol-aft-node-name a,
html.dark-mode .kol-aft-modal h3,
html.dark-mode .kol-aft-modal label,
html.dark-mode .kol-aft-word-view h3,
html.dark-mode .kol-aft-word-section h4,
body.dark-mode .kol-aft-node-name,
body.dark-mode .kol-aft-node-name a,
body.dark-mode .kol-aft-modal h3,
body.dark-mode .kol-aft-modal label,
body.dark-mode .kol-aft-word-view h3,
body.dark-mode .kol-aft-word-section h4 {
    color: var(--kol-aft-dark-text, #f8fafc) !important;
}

html.dark-mode .kol-aft-muted,
html.dark-mode .kol-aft-request-meta,
html.dark-mode .kol-aft-search-result small,
html.dark-mode .kol-aft-selected-member small,
body.dark-mode .kol-aft-muted,
body.dark-mode .kol-aft-request-meta,
body.dark-mode .kol-aft-search-result small,
body.dark-mode .kol-aft-selected-member small {
    color: var(--kol-aft-dark-muted, #b7c4d4);
}

html.dark-mode .kol-aft-node-status em,
body.dark-mode .kol-aft-node-status em {
    background: #273449;
    color: var(--kol-aft-dark-muted, #b7c4d4);
}

html.dark-mode .status-claimed .kol-aft-node-status em,
body.dark-mode .status-claimed .kol-aft-node-status em {
    background: #164736;
    color: #bbf7d0;
}

html.dark-mode .status-invite_sent .kol-aft-node-status em,
html.dark-mode .status-pending_user_confirm .kol-aft-node-status em,
html.dark-mode .status-pending_admin_approval .kol-aft-node-status em,
body.dark-mode .status-invite_sent .kol-aft-node-status em,
body.dark-mode .status-pending_user_confirm .kol-aft-node-status em,
body.dark-mode .status-pending_admin_approval .kol-aft-node-status em {
    background: #4f3f16;
    color: #fde68a;
}

html.dark-mode .kol-aft-role-pick.is-selected,
body.dark-mode .kol-aft-role-pick.is-selected {
    background: rgba(34, 207, 232, 0.16) !important;
    border-color: var(--kol-aft-dark-accent, #22cfe8) !important;
    color: var(--kol-aft-dark-text, #f8fafc) !important;
}

html.dark-mode .kol-aft-role-pick.is-selected i,
body.dark-mode .kol-aft-role-pick.is-selected i {
    color: var(--kol-aft-dark-accent, #22cfe8);
}

html.dark-mode .kol-aft-expanded-drawer .kol-aft-person-target,
body.dark-mode .kol-aft-expanded-drawer .kol-aft-person-target {
    background: #0f1620;
    border-color: var(--kol-aft-dark-border, #334155);
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-expanded-drawer .kol-aft-person-list-item,
body.dark-mode .kol-aft-expanded-drawer .kol-aft-person-list-item {
    background: var(--kol-aft-dark-button, #0b75a5);
    border-color: var(--kol-aft-dark-button, #0b75a5);
    color: #ffffff;
}

html.dark-mode .kol-aft-expanded-drawer .kol-aft-person-list-item small,
body.dark-mode .kol-aft-expanded-drawer .kol-aft-person-list-item small {
    color: #dbeafe;
}

html.dark-mode .kol-aft-line,
body.dark-mode .kol-aft-line {
    stroke: #6f829a;
}

html.dark-mode .kol-aft-line-parent,
body.dark-mode .kol-aft-line-parent {
    stroke: #52d6ad;
}

html.dark-mode .kol-aft-line-label,
body.dark-mode .kol-aft-line-label {
    fill: var(--kol-aft-dark-text, #f8fafc);
    stroke: var(--kol-aft-dark-canvas, #0f1620);
}

html.dark-mode .kol-aft-modal,
body.dark-mode .kol-aft-modal {
    background: var(--kol-aft-dark-panel, #111827);
    border-color: var(--kol-aft-dark-border, #334155);
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-modal-layer,
body.dark-mode .kol-aft-modal-layer {
    background: rgba(0, 0, 0, 0.68);
}

html.dark-mode .kol-aft-relation-sentence,
body.dark-mode .kol-aft-relation-sentence {
    background: var(--kol-aft-dark-panel-alt, #1b2532);
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-toast,
body.dark-mode .kol-aft-toast {
    background: var(--kol-aft-dark-text, #f8fafc);
    color: var(--kol-aft-dark-page, #0b1117);
}

html.dark-mode .kol-aft-view,
body.dark-mode .kol-aft-view {
    background: transparent;
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-view-header,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-header,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-header,
body.dark-mode .kol-aft-view-header,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-header,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-header {
    background: var(--kol-aft-dark-panel, #111827);
    border-color: var(--kol-aft-dark-border, #334155);
    color: var(--kol-aft-dark-text, #f8fafc);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

html.dark-mode .kol-aft-view h1,
html.dark-mode .kol-aft-view-meta,
html.dark-mode .kol-aft-view-kicker,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-kicker,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-kicker,
html.dark-mode .kol-aft-view-generation h2,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-generation h2,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-generation h2,
body.dark-mode .kol-aft-view h1,
body.dark-mode .kol-aft-view-meta,
body.dark-mode .kol-aft-view-kicker,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-kicker,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-kicker,
body.dark-mode .kol-aft-view-generation h2,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-generation h2,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-generation h2 {
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-view-canvas,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-canvas,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-canvas,
body.dark-mode .kol-aft-view-canvas,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-canvas,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-canvas {
    background: var(--kol-aft-dark-canvas, #0f1620);
    border-color: var(--kol-aft-dark-border, #334155);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

html.dark-mode .kol-aft-view-zoom-controls,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-zoom-controls,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-zoom-controls,
body.dark-mode .kol-aft-view-zoom-controls,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-zoom-controls,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-zoom-controls {
    background: var(--kol-aft-dark-panel, #111827);
    border-color: var(--kol-aft-dark-border, #334155);
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-view-button,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-button,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-button,
html.dark-mode .kol-aft-view-zoom-button,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-zoom-button,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-zoom-button,
body.dark-mode .kol-aft-view-button,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-button,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-button,
body.dark-mode .kol-aft-view-zoom-button,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-zoom-button,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-zoom-button {
    background: var(--kol-aft-dark-button, #0b75a5);
    color: #ffffff !important;
}

html.dark-mode .kol-aft-view-person-card,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-person-card,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-person-card,
body.dark-mode .kol-aft-view-person-card,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-person-card,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-person-card {
    background: linear-gradient(135deg, #38bdf8 0%, #1687d9 52%, #0d5fb8 100%);
    border: 1px solid rgba(147, 231, 255, 0.95);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(34, 207, 232, 0.22), 0 14px 28px rgba(0, 0, 0, 0.34);
}

html.dark-mode .kol-aft-view-card-popup,
body.dark-mode .kol-aft-view-card-popup {
    background: var(--kol-aft-dark-panel, #111827);
    border: 1px solid var(--kol-aft-dark-border, #334155);
    color: var(--kol-aft-dark-text, #f8fafc);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

html.dark-mode .kol-aft-view-person-body h3,
html.dark-mode .kol-aft-view-card-content h3,
body.dark-mode .kol-aft-view-person-body h3,
body.dark-mode .kol-aft-view-card-content h3 {
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-view-person-avatar,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-person-avatar,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-person-avatar,
body.dark-mode .kol-aft-view-person-avatar,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-person-avatar,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-person-avatar {
    background: #263244;
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-view-person-date,
html.dark-mode .kol-aft-view-person-detail,
body.dark-mode .kol-aft-view-person-date,
body.dark-mode .kol-aft-view-person-detail {
    color: var(--kol-aft-dark-muted, #b7c4d4);
}

html.dark-mode .kol-aft-view-person-status,
html.dark-mode .kol-aft-view-person-links span,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-person-status,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-person-links span,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-person-status,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-person-links span,
body.dark-mode .kol-aft-view-person-status,
body.dark-mode .kol-aft-view-person-links span,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-person-status,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-person-links span,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-person-status,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-person-links span {
    background: rgba(34, 207, 232, 0.15);
    color: var(--kol-aft-dark-text, #f8fafc);
}

html.dark-mode .kol-aft-view-profile-link,
html.dark-mode .kol-aft-view-card-popup .kol-aft-view-profile-link,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-profile-link,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-profile-link,
body.dark-mode .kol-aft-view-profile-link,
body.dark-mode .kol-aft-view-card-popup .kol-aft-view-profile-link,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-profile-link,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-profile-link {
    background: var(--kol-aft-dark-button, #0b75a5);
    color: #ffffff;
}

html.dark-mode .kol-aft-view-connector,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-connector,
html.dark-mode .kol-aft-view-theme-classic .kol-aft-view-connector,
body.dark-mode .kol-aft-view-connector,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-connector,
body.dark-mode .kol-aft-view-theme-classic .kol-aft-view-connector {
    stroke: var(--kol-aft-dark-accent, #22cfe8);
    filter: drop-shadow(0 0 5px rgba(34, 207, 232, 0.38));
}

html.dark-mode .kol-aft-view-connector-node,
html.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-connector-node,
body.dark-mode .kol-aft-view-connector-node,
body.dark-mode .kol-aft-view-theme-circuit .kol-aft-view-connector-node {
    background: var(--kol-aft-dark-accent, #22cfe8);
    box-shadow: 0 0 10px rgba(34, 207, 232, 0.5);
}

html.dark-mode .kol-aft-view-card-layer,
body.dark-mode .kol-aft-view-card-layer {
    background: rgba(0, 0, 0, 0.68);
}

html.dark-mode .kol-aft-view-card-close,
body.dark-mode .kol-aft-view-card-close {
    background: var(--kol-aft-dark-panel-alt, #1b2532);
    color: var(--kol-aft-dark-text, #f8fafc);
}

@media (max-width: 700px) {
    .kol-aft-view {
        width: 100%;
        margin: 0;
        padding: 8px;
    }

    .kol-aft-view-header {
        display: grid;
        gap: 12px;
        padding: 14px;
    }

    .kol-aft-view-actions {
        justify-content: stretch;
    }

    .kol-aft-view-button {
        flex: 1 1 140px;
        text-align: center;
    }

    .kol-aft-view-canvas {
        padding: 14px;
        height: 520px;
        min-height: 420px;
    }

    .kol-aft-view-zoom-controls {
        top: 8px;
        right: 8px;
    }

    .kol-aft-view-cards {
        grid-template-columns: minmax(0, min(176px, 100%));
        justify-content: center;
    }
}

@media (max-width: 1180px) {
    .kol-aft-workspace {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .kol-aft-right-panel {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 800px) {
    .kol-aft-app {
        --kol-aft-shell-gap: 8px;
    }

    .kol-aft-shell {
        min-height: 0;
    }

    .kol-aft-mobile-tabs {
        display: grid;
    }

    .kol-aft-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 8px;
        padding: 8px;
    }

    .kol-aft-tree-settings,
    .kol-aft-create-inline {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(86px, auto) auto;
        gap: 7px;
        width: 100%;
    }

    .kol-aft-tree-settings button,
    .kol-aft-create-inline button,
    .kol-aft-request-share,
    .kol-aft-delete-tree {
        min-width: 42px;
        padding: 7px 10px;
    }

    .kol-aft-workspace {
        display: block;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .kol-aft-workspace > [data-kol-aft-panel] {
        display: none;
        height: 100%;
        min-height: 0;
    }

    .kol-aft-workspace > [data-kol-aft-panel].is-mobile-active {
        display: block;
    }

    .kol-aft-workspace > .kol-aft-stage-wrap.is-mobile-active {
        display: flex;
    }

    .kol-aft-left-panel.is-mobile-active,
    .kol-aft-right-panel.is-mobile-active {
        overflow: auto;
    }

    .kol-aft-tree-select-wrap,
    .kol-aft-tree-settings input,
    .kol-aft-create-inline input,
    .kol-aft-topbar select,
    .kol-aft-topbar button {
        width: 100%;
    }

    .kol-aft-topbar button {
        width: auto;
    }

    .kol-aft-canvas-scroll {
        height: 100%;
        min-height: 0;
    }

    .kol-aft-canvas-controls {
        top: 8px;
        right: 8px;
        gap: 4px;
        padding: 4px;
    }

    .kol-aft-canvas-controls button {
        width: 30px;
        min-height: 30px;
    }

    .kol-aft-zoom-level {
        min-width: 42px;
        font-size: 11px;
    }

    .kol-aft-word-line,
    .kol-aft-word-add-person-form .kol-aft-word-line {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .kol-aft-word-view {
        padding: 66px 12px 12px;
    }

    .kol-aft-word-line span {
        text-align: left;
    }

    .kol-aft-word-sentence {
        grid-template-columns: minmax(0, 1fr);
    }

    .kol-aft-node {
        width: 168px;
    }

    .kol-aft-node-card {
        width: 168px;
        min-height: 112px;
        padding: 10px 8px 8px;
    }

    .kol-aft-avatar {
        width: 46px;
        height: 46px;
        margin-bottom: 6px;
    }

    .kol-aft-node-name {
        min-height: 30px;
        font-size: 12px;
    }

    .kol-aft-node-tools {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .kol-aft-node-tools button {
        min-height: 30px;
        padding: 4px;
        font-size: 11px;
    }

    .kol-aft-node-tools button span {
        display: none;
    }

    .kol-aft-search-result {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        padding: 7px;
    }

    .kol-aft-search-result img {
        width: 34px;
        height: 34px;
    }

    .kol-aft-modal {
        max-height: calc(var(--kol-aft-viewport-height) - var(--kol-aft-footer-offset) - 28px);
    }

    .kol-aft-empty form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(86px, auto) auto;
        align-items: stretch;
    }
}
