/* One Figtree design, two color modes. Geometry and type sizes stay native. */
html body .dfl-logo{display:inline-flex;align-items:center;gap:8px;}
html body .dfl-logo .dfl-logo-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;line-height:1;}
html body .dfl-logo .dfl-logo-mark svg{display:block;}
html body .dfl-logo .dfl-logo-text{display:block;line-height:1;margin:0;}
html body .kp-portal :is(.kp-brand,.kp-topbar-brand,.kp-sidebar-brand,.kp-brand-choice-preview){align-items:center;}
html body .kp-portal :is(.kp-brand-mark,.kp-sidebar-brand-tile){display:inline-flex;align-items:center;justify-content:center;line-height:1;flex-shrink:0;}
html body .kp-portal :is(.kp-brand-house,.kp-brand-choice-mark){display:block;flex-shrink:0;}

/* One continuous surface holds the title and related page content. */
html body .kp-portal{--ds-page-background:#f5f5f7;--ds-header-background:#fff;--ds-content-background:#fff;}
html[data-ds-color-mode="dark"] body .kp-portal{--ds-page-background:#0c1728;--ds-header-background:#102038;--ds-content-background:#15263f;}
@layer ds-portal-surfaces {
html body .kp-portal{--ds-settings-return-bg:#f7f9fc;--ds-settings-return-ink:#1e4fd6;}
html[data-ds-color-mode="dark"] body .kp-portal{--ds-settings-return-bg:#192b43;--ds-settings-return-ink:#80aaff;}
html body .kp-portal :is(.ds-settings-heading,.kp-xfer-header)>.ds-compact-return{display:inline-flex!important;align-items:center!important;align-self:center!important;min-height:36px!important;box-sizing:border-box!important;padding:7px 12px!important;margin:0!important;border:0!important;border-radius:8px!important;background:var(--ds-settings-return-bg)!important;color:var(--ds-settings-return-ink)!important;font:500 12px/20px Figtree,sans-serif!important;text-decoration:none!important;box-shadow:none!important;flex:none!important;}
html body .kp-portal :is(.kp-notification-settings>.ds-settings-heading,.kp-ai-connections>.ds-settings-heading,.kp-xfer-header.ds-settings-heading){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:12px!important;}
html body .kp-portal :is(.kp-notification-settings>.ds-settings-heading,.kp-ai-connections>.ds-settings-heading,.kp-xfer-header.ds-settings-heading)>div{flex:1!important;min-width:0!important;}
html body .kp-portal :is(.kp-notification-settings>.ds-settings-heading,.kp-ai-connections>.ds-settings-heading) h2{margin:0!important;}
html body .kp-portal .kp-notification-settings>.ds-settings-heading>div>p:not(.kp-eyebrow){display:none!important;}
html body .kp-portal #kp-main-content{padding-inline:0!important;}
html body .kp-portal #kp-main-content>.kp-wl308-tabs{margin:0!important;}
html body .kp-portal .kp-notification-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;align-items:start!important;}
html body .kp-portal .kp-notification-layout>.kp-notification-preferences{min-width:0!important;margin:0!important;}
html body .kp-portal .kp-notification-preferences>h3,html body .kp-portal .kp-notification-inbox>h3{font:600 14px/1.4 Figtree,sans-serif!important;color:var(--kp-navy,#122b46)!important;margin:0 0 12px!important;}
html body .kp-portal .kp-notification-preferences>.kp-notification-matrix{margin-top:0!important;}
html body .kp-portal .kp-notification-inbox{min-width:0!important;padding:16px!important;margin:0!important;background:var(--ds-content-background)!important;border:1px solid var(--kp-border,#dbe5f0)!important;border-radius:12px!important;box-shadow:none!important;}
html body .kp-portal .kp-notification-inbox ul{list-style:none!important;padding:0!important;margin:0!important;}
html body .kp-portal .kp-notification-inbox li{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:10px!important;row-gap:3px!important;align-items:center!important;padding:12px 0!important;margin:0!important;border-bottom:1px solid var(--kp-border,#dbe5f0)!important;}
html body .kp-portal .kp-notification-inbox li:last-child{border-bottom:0!important;}
html body .kp-portal .kp-notification-inbox li>strong{grid-column:1!important;grid-row:1!important;position:relative!important;min-width:0!important;font:600 12px/1.4 Figtree,sans-serif!important;color:var(--kp-navy,#122b46)!important;overflow-wrap:anywhere!important;}
html body .kp-portal .kp-notification-inbox li>time{grid-column:1!important;grid-row:2!important;font:400 11px/1.4 Figtree,sans-serif!important;color:var(--kp-muted,#617083)!important;overflow-wrap:anywhere!important;}
html body .kp-portal .kp-notification-inbox li>form{grid-column:2!important;grid-row:1/3!important;margin:0!important;}
html body .kp-portal .kp-notification-inbox .kp-button{min-height:30px!important;padding:4px 8px!important;white-space:nowrap!important;font:500 11px/1.5 Figtree,sans-serif!important;box-shadow:none!important;}
html body .kp-portal .kp-notification-inbox .is-unread>strong{padding-left:10px!important;}
html body .kp-portal .kp-notification-inbox .is-unread>strong::before{content:"";position:absolute;left:0;top:.5em;width:5px;height:5px;border-radius:50%;background:var(--kp-blue,#315dff);}
html body .kp-portal .kp-notification-inbox .is-read>strong{font-weight:500!important;}
html body .kp-portal .kp-notification-more>summary{padding:10px 0 0!important;cursor:pointer!important;color:var(--kp-blue,#315dff)!important;font:500 12px/1.5 Figtree,sans-serif!important;}
html body .kp-portal .kp-xfer-header.ds-compact-toolbar>div{flex:1;min-width:0;}
html body .kp-portal .kp-xfer-header.ds-compact-toolbar h1{position:relative!important;margin:0!important;padding-left:12px!important;color:var(--kp-navy,#122b46)!important;font:600 18px/1.35 Figtree,sans-serif!important;}
html body .kp-portal .kp-xfer-header.ds-compact-toolbar h1::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:4px;border-radius:3px;background:linear-gradient(#536dff,#31d6c2);}
html body .kp-portal .kp-xfer-header.ds-compact-toolbar .kp-console-meta{display:none!important;}
@media(min-width:1440px){html body .kp-portal .kp-notification-layout{grid-template-columns:minmax(0,1fr) 320px!important;}}
html body .kp-portal .kp-settings-tile,html body .kp-portal .kp-settings-tile :is(strong,small){font-family:Figtree,sans-serif!important;text-decoration:none!important;}
html body .kp-portal .kp-metric-card>:is(strong,span){font-family:Figtree,sans-serif!important;}
html body .kp-portal #kp-main-content>:is(.kp-content,.kp-wl308-home){
 background:var(--ds-content-background)!important;border:1px solid var(--kp-border,#dbe5f0)!important;border-radius:14px!important;padding:16px!important;box-sizing:border-box!important;min-width:0!important;margin:0!important;width:100%!important;max-width:none!important;
}
/* The shared outer panel now holds the existing Settings home group. */
html body .kp-portal #kp-main-content .kp-settings-home.ds-settings-card{border:0!important;border-radius:0!important;padding:0!important;margin:0!important;box-shadow:none!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-thumb-page :is(table,thead,tbody,tr,td,th){background:#fff!important;color:#172c45!important;border-color:#dbe5f0!important;}
html body .kp-portal .ds-page-surface-heading{margin:0 0 14px!important;}
html body .kp-portal #kp-main-content>.kp-wl308-home>.kp-wl308-home-head{display:flex!important;align-items:center!important;margin:0 0 14px!important;padding:0 0 10px!important;border-bottom:1px solid var(--kp-border,#dbe5f0)!important;}
html body .kp-portal #kp-main-content>.kp-wl308-strip{background:var(--ds-content-background)!important;margin:0!important;padding:16px 16px 0!important;box-sizing:border-box!important;}
html body .kp-portal .kp-wl308-home-head>p{display:none!important;}
html body .kp-portal .kp-wl308-home-head>h1{display:block!important;position:relative!important;font:600 18px/1.35 Figtree,sans-serif!important;color:var(--kp-navy,#122b46)!important;margin:0!important;padding-left:12px!important;}
html body .kp-portal .kp-wl308-home-head>h1::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:4px;border-radius:3px;background:linear-gradient(#536dff,#31d6c2);}
@media(max-width:860px){html body .kp-portal #kp-main-content{padding-top:0!important;}}
@media(max-width:640px){html body .kp-portal #kp-main-content>:is(.kp-content,.kp-wl308-home){padding:12px!important;}}
}
/* Color priority is independent of legacy layout specificity. */
@layer ds-portal-color-mode {
html[data-ds-color-mode="dark"] body .kp-portal .kp-xfer-empty-state{background:#1b304b!important;color:var(--kp-text)!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-notification-matrix{border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-notification-matrix__row{background:var(--ds-content-background)!important;border-color:var(--kp-border)!important;color:var(--kp-text)!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-notification-matrix__head,.kp-notification-matrix__category>h3,.kp-notification-timezone){background:#1b304b!important;border-color:var(--kp-border)!important;color:var(--kp-text)!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-notification-matrix__row>div:first-child>span,.kp-notification-timezone>small,.kp-notification-delivery-settings .description){color:var(--kp-muted)!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-notification-delivery-settings fieldset{border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"]{color-scheme:dark!important;}
html[data-ds-color-mode="dark"] body .kp-portal{
 --kp-bg:#0c1728!important;--kp-bg-soft:#192b43!important;--kp-white:#15263f!important;--kp-card-bg:#15263f!important;--kp-surface:#15263f!important;--kp-surface-soft:#1b304b!important;
 --kp-border:#344964!important;--kp-fill:#1b304b!important;--kp-fill-soft:#192b43!important;--kp-text:#edf3ff!important;--kp-navy:#edf3ff!important;--kp-slate:#e3ebf9!important;--kp-muted:#b0bfd4!important;
 --kp-blue:#80aaff!important;--kp-blue-dark:#9bbbff!important;--kp-blue-soft:#1b345a!important;--kp-primary:#2e6bff!important;--kp-primary-dark:#1e4fd6!important;--kp-gold:#9bbbff!important;
 --kp-success:#4ce0bb!important;--kp-warning:#ffd08a!important;--kp-error:#ffabab!important;--kp-focus-ring:0 0 0 3px #80aaff66!important;
 color:var(--kp-text)!important;background:var(--kp-bg)!important;background-image:none!important;
}
html[data-ds-color-mode="dark"] body.kp-direct-portal-page{background:#0c1728!important;background-image:none!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-main,.kp-content,.kp-console,.kp-direct-tool-page){background:var(--kp-bg)!important;color:var(--kp-text)!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(h1,h2,h3,h4,h5,h6,strong,b,dt,dd,label,legend){color:var(--kp-text)!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-console-meta,.kp-muted,.kp-eyebrow,.kp-settings-kicker,.kp-footer,small){color:var(--kp-muted)!important;}
html[data-ds-color-mode="dark"] body .kp-portal a{color:var(--kp-blue)!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-topbar,.kp-wl289-header,.kp-mobile-header,.kp-wl294-submenu,.kp-secondary-menu,.kp-wl308-tabs){background:#102038!important;color:var(--kp-text)!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-sidebar{background:#0b1b30!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-sidebar :is(a,strong,.kp-nav-link){color:#c7d7ee!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-nav-link,.kp-wl294-submenu a).is-active{color:#fff!important;background:#254565!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-wl294-submenu :is(a,strong,button){color:var(--kp-text)!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.kp-card,.kp-login-card,.kp-header-card,.kp-files-panel,.kp-settings-tile,.kp-sign-home-tile,.kp-xfer-entity,.kp-workspace-tile,.ds-asset-record,.kp-resource-card,.kp-template-card){background:#15263f!important;border-color:var(--kp-border)!important;color:var(--kp-text)!important;box-shadow:0 3px 12px #0002!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content .kp-settings-home.ds-settings-card,
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content .kp-setpanel-section[data-kp-set-section="security"]{background:#15263f!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.kp-section-heading,.kp-setpanel-sub,.kp-record-divider){border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),select,textarea){background:#102038!important;color:var(--kp-text)!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal input::placeholder,html[data-ds-color-mode="dark"] body .kp-portal textarea::placeholder{color:#98abc7!important;opacity:1!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(input[type="checkbox"],input[type="radio"]){accent-color:#2e6bff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-button,.kp-button-small,.kp-quick-create,.kp-topbar-user,.kp-user-menu-button){background:#192f4c!important;color:#dbe8ff!important;border-color:#405b7c!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-button,.kp-button-small):hover{background:#254468!important;color:#fff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-button.kp-button-primary,.kp-button-primary,.kp-primary-button){background:linear-gradient(135deg,#2e6bff,#1e4fd6)!important;color:#fff!important;border-color:#4b7dff!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.kp-list-toolbar,.kp-table-toolbar,.kp-crm-directory-toolbar,.kp-crm-directory-pagination,.kp-list-filter,.kp-search-toolbar,.ds-webform-toolbar,.kp-sign-bulk,.kp-xfer-steps li.is-current){background:#192f4c!important;color:var(--kp-text)!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content table{background:#15263f!important;color:var(--kp-text)!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(th,thead,thead tr,.kp-crm-directory-action){background:#1b304b!important;color:#bdcee6!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(td,tbody tr,.kp-crm-directory-table tbody tr:nth-child(even),.kp-crm-directory-table tbody tr:nth-child(odd)){background:#15263f!important;color:var(--kp-text)!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content tbody tr:hover>td{background:#203956!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-crm-panel,.kp-crm-pbody,.kp-crm-phead,.kp-crm-ptabs,.kp-crm-panel-tabs,.kp-crm-panel-body,.kp-crm-panel-header,.kp-section-drawer,.kp-mailc-drawer,.kp-mailc-main,.kp-mailc-list,.kp-mailc-reader){background:#15263f!important;color:var(--kp-text)!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body :is(dialog,.kp-crm-directory-menu,.kp-dropdown-menu,.kp-topbar-menu,.kp-row-menu,.kp-user-menu,[role="menu"],.kp-meta-popbody){background:#192b43!important;color:#edf3ff!important;border-color:#405b7c!important;box-shadow:0 10px 35px #0006!important;}
html[data-ds-color-mode="dark"] body :is(dialog,[role="menu"],.kp-crm-directory-menu) :is(a,button){color:#dbe8ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.kp-crm-profile-hero,.kp-crm-contact-hero,.kp-crm-panel-hero,.kp-crm-profile-meta,.kp-record-hero,.kp-workflow,.ds-asset-stagebar){background:#1b304b!important;color:var(--kp-text)!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.ds-asset-tabs,.ds-asset-fixed-header,.ds-asset-extract-panel,.ds-asset-status:not(:empty),.ds-asset-portfolio-row,.ds-bids-review-row){background:#15263f!important;color:var(--kp-text)!important;border-color:var(--kp-border)!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.ds-asset-tabs,.kp-crm-ptabs,.kp-wl308-tabs) a{background:#192f4c!important;color:#c8d9f4!important;border-color:#405b7c!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.ds-asset-tabs,.kp-crm-ptabs,.kp-wl308-tabs) a:is(.is-active,[aria-current="page"]){background:#2e6bff!important;color:#fff!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.kp-metric-card,.kp-metric,.kp-kpi,.ds-asset-metric,.ds-asset-snapshot>div){background:#1a3154!important;color:#edf3ff!important;border-color:#344f75!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.ds-asset-metric,.ds-asset-snapshot>div):nth-child(4n+3){background:#123a3d!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.ds-asset-metric,.ds-asset-snapshot>div):nth-child(4n+4){background:#30264b!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.ds-asset-metric,.ds-asset-snapshot>div)>:is(span,small){color:#bdcde4!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.kp-metric-card,.ds-asset-metric,.ds-asset-snapshot>div)>strong{color:#e4eeff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .ds-asset-step-line{background:#405b7c!important;}
html[data-ds-color-mode="dark"] body .kp-portal .ds-asset-step-marker{background:#1b304b!important;border-color:#597293!important;color:#c7d7ee!important;}
html[data-ds-color-mode="dark"] body .kp-portal .is-current>.ds-asset-step-marker{background:#2e6bff!important;color:#fff!important;box-shadow:0 0 0 3px #213c66!important;}
html[data-ds-color-mode="dark"] body .kp-portal .is-complete>.ds-asset-step-marker{background:#123e3d!important;color:#4ce0bb!important;border-color:#2b766b!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.ds-asset-alerts,.kp-notice-warning,.kp-alert-warning,.kp-console-notice.is-warning){background:#3b2d1a!important;color:#ffdaa0!important;border-color:#72552e!important;}
html[data-ds-color-mode="dark"] body .kp-portal .ds-asset-alerts :is(strong,li,p){color:#ffdaa0!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content :is(.kp-badge-muted,.kp-tag,.kp-pill,.kp-status-neutral,.kp-settings-icon){background:#253956!important;color:#c8dcff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-badge-success,.kp-status-active,.kp-status-signed,.kp-nda-signed){background:#123e3d!important;color:#4ce0bb!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-badge-warning,.kp-status-pending){background:#3b2d1a!important;color:#ffdaa0!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-badge-error,.kp-status-blocked,.kp-status-revoked){background:#492632!important;color:#ffabab!important;}
html[data-ds-color-mode="dark"] body .kp-portal a:focus-visible,html[data-ds-color-mode="dark"] body .kp-portal button:focus-visible{outline:2px solid #80aaff!important;outline-offset:3px!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-bottom-nav{background:#102038!important;color:#dbe8ff!important;border-color:#344964!important;}

html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-shell,.kp-main,.kp-content){background:#0c1728!important;color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-topbar,.kp-wl294-submenu,.kp-mobile-bar){background:#102038!important;color:#edf3ff!important;border-color:#344964!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-settings-tile,.kp-workspace-tile,.kp-section-tool-copy) strong{color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-settings-tile,.kp-workspace-tile,.kp-section-tool-copy) small{color:#b0bfd4!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-settings-tile-link,.kp-section-tool-copy a){color:#80aaff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-page-header,.kp-console-header,.kp-section-home-hero,.kp-section-toolrail,.kp-band){background:#15263f!important;color:#edf3ff!important;border-color:#344964!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-settings-grid,.kp-setpanel-main,.kp-sign-home,.kp-messages-wrap){color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-crm-panel,.kp-crm-pbody,.kp-crm-panel-body,.kp-section-drawer) :is(p,span,li,summary){color:inherit!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-metric-card,.kp-metric,.kp-kpi) :is(span,small){color:#bdcde4!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-metric-card,.kp-metric,.kp-kpi) strong{color:#e4eeff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-wl294-submenu,.kp-topbar) :is(a,button,strong,.kp-topbar-title){color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-wl294-submenu a:is(:hover,.is-active,[aria-current="page"]){background:#254565!important;color:#fff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-crm-phead,.kp-crm-ptabs,.kp-crm-panel-header,.kp-crm-panel-tabs){background:#102038!important;color:#edf3ff!important;border-color:#344964!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-cop-fab,.kp-topbar-avatar){background:#254565!important;color:#fff!important;border-color:#405b7c!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-wl294-submenu-toggle,.kp-quick-create){background:#192f4c!important;color:#dbe8ff!important;border-color:#405b7c!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-wl294-submenu :is(li,.kp-wl294-submenu-group){border-color:#344964!important;}
/* Native workspaces, lists, conversations and menus share the same palette. */
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-panel,.kp-crm-wrap,.kp-managed-list-viewport,.kp-wl309-listings,.kp-acq-list,.kp-bd,.kp-bd-col,.kp-qrow,.kp-message-portal,.kp-message-workspace,.kp-message-thread-panels,.kp-message-conversation,.kp-message-inbox-rows,.kp-message-conversation-bubble,.kp-message-inbox-row,.kp-crm-column-menu,.ds-column-options,.ds-mail-folders,.ds-mail-main,.ds-mail-account-tabs,.kp-wl308-home){background:#15263f!important;color:#edf3ff!important;border-color:#344964!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-console-flow-segment,.kp-acq-board-stats>div,.kp-bd-col-head,.kp-bd-col-count,.kp-acq-filters,.ds-demo-stage-links,.kp-message-thread-header,.kp-message-inbox-header,.kp-mailc-thead,.ds-mail-account-tabs>a,.ds-mail-folders nav>a,.kp-wl294-submenu b,.kp-wl308-home-steps b,.ds-mail-ai-menu>summary,.ds-mail-ai-menu>summary>strong){background:#1b304b!important;color:#edf3ff!important;border-color:#344964!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.ds-mail-account-tabs,.ds-mail-folders) a>b{background:#254565!important;color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-console-listing-fallback{background:#254565!important;color:#fff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .ds-asset-risk-link{background:#3b2d1a!important;color:#ffdaa0!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-badge-good{background:#123e3d!important;color:#4ce0bb!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-console-rail-rates,.kp-mailc-sugs,.kp-mailc-thead,.kp-crm-column-menu,.ds-column-options,.kp-message-workspace,.ds-demo-stage-links,.kp-wl308-tabs) :is(p,span,em,summary){color:inherit!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-message-inbox-row.is-active{background:#254565!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-topbar,.kp-console-command-header) summary[aria-label="Quick create"]{background:#192f4c!important;color:#edf3ff!important;border-color:#405b7c!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-setpanel-sub,.kp-preference-group,.kp-notification-channel-note,.ds-ca-panel,.kp-acq-form,.kp-pe-toggle,.kp-team-list,.kp-team-row,.kp-team-roleblurbs,.kp-team-invite,.kp-billing-demo-note,.kp-invest-config-section,.kp-invest-savebar,.kp-invest-publish-toggle,.kp-invest-template-card,.kp-brand-choices>label,.kp-referral-steps>article,.kp-referral-terms,.ds-webform-list,.ds-template-help,.ds-template-folder,.kp-doc-resource-card,.kp-finance-calculator-workspace,.kp-wl296-calc-strip,.kp-calculator-help>div,.kp-bd-card){background:#15263f!important;color:#edf3ff!important;border-color:#344964!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-referral-steps b,.kp-finance-results>div,.kp-resource-faq-category-nav a,.ds-asset-work-filters,.kp-wl296-calc-tab,.kp-vault-bar){background:#1b304b!important;color:#edf3ff!important;border-color:#344964!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-wl296-calc-tab.is-active{background:#2e6bff!important;color:#fff!important;border-color:#4b7dff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-notice.ds-asset-warning,.kp-notice.ds-asset-warning strong,.kp-notice.ds-asset-warning a){background:#3b2d1a!important;color:#ffdaa0!important;border-color:#72552e!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-crm-directory-toolbar,.kp-console-rail-rates,.kp-referral-link-card,.kp-message-conversation) :is(span,p,div,em,time){color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-message-conversation time{color:#b0bfd4!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-message-conversation-bubble a{background:#1b304b!important;color:#80aaff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-bd-col-title,.kp-acq-filter-count,.kp-xfer-kicker,.ds-webform-count){color:#b0bfd4!important;}
html[data-ds-color-mode="dark"] body .kp-portal .ds-pipeline-count{background:#254565!important;color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-wl308-tabs :is(span,b){color:#edf3ff!important;}
/* Document paper remains white with dark ink, including thumbnail text. */
html[data-ds-color-mode="dark"] body .kp-portal .kp-thumb-page{background:#fff!important;color:#172c45!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-thumb-page :is(p,span,strong,b,h1,h2,h3,h4,label){color:#172c45!important;}
html[data-ds-color-mode="dark"] body .kp-portal[data-kp-page] #kp-main-content .kp-thumb-page :is(table,thead,tbody,tr,td,th){background:#fff!important;color:#172c45!important;border-color:#dbe5f0!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-bd-addr,.kp-bd-meta,.kp-bd-uw,.ds-ca-help,.ds-ca-status){color:#b0bfd4!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-bd-ask{color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .ds-demo-pipelines button{background:#1b304b!important;color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .ds-demo-pipelines button.is-active{background:#2e6bff!important;color:#fff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-crm-column-menu-head,.kp-crm-column-menu-head span){color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-message-workspace time{color:#b0bfd4!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-pe-switch{background:#1b304b!important;border-color:#344964!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-invest-rich-field>span{color:#b0bfd4!important;}
html[data-ds-color-mode="dark"] body .kp-portal .ds-webform-actions button{color:#80aaff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.ds-template-folder p,.ds-template-folder-foot,.kp-calculator-help p,.kp-account-popover-head span){color:#b0bfd4!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-crm-metastrip,.kp-crm-copilot-dock,.kp-crm-pside,.kp-tasknew-form,.kp-docsend-panel,.kp-crm-orgcard,.ds-contact-view-link,.kp-ca-block,.kp-id-playbook-intro,.kp-crm-secondary-panel,.kp-crm-empty-action,.kp-visibility-row,.kp-crm-msgthreadbox,.kp-crm-msg,.ds-contact-identity-help,.kp-id-playbook li,.kp-id-playbook article){background:#1b304b!important;color:#edf3ff!important;border-color:#344964!important;}
html[data-ds-color-mode="dark"] body .kp-portal .ds-template-help :is(summary,li,p){color:#b0bfd4!important;}
html[data-ds-color-mode="dark"] body .kp-portal .ds-template-help button{color:#80aaff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-crm-metastrip,.kp-crm-copilot-dock) :is(span,b,time){color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-visibility-heading>span,.kp-visibility-state,.kp-crm-msg>div){color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal :is(.kp-wl308-tabs-items a,.kp-meta-cats summary,.kp-id-playbook-facts>span,.kp-doc-status){background:#1b304b!important;color:#edf3ff!important;border-color:#344964!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-crm-column-menu label>span{background:transparent!important;color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-doc-status.is-sent{background:#123e3d!important;color:#4ce0bb!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-visibility-state{background:#254565!important;color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-mobile-bar .kp-menu-lines,
html[data-ds-color-mode="dark"] body .kp-portal .kp-mobile-bar .kp-menu-lines::before,
html[data-ds-color-mode="dark"] body .kp-portal .kp-mobile-bar .kp-menu-lines::after{background:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-mobile-bar>a{color:#edf3ff!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-bottombar{background:#102038!important;color:#edf3ff!important;border-color:#344964!important;}
html[data-ds-color-mode="dark"] body .kp-portal .kp-bottombar a{color:#c7d7ee!important;}
}
