html body[data-ds-client-page] .ds-client-ai-toggle{box-sizing:border-box;display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;gap:5px;width:auto;min-width:54px;min-height:38px;padding:8px 10px;border:0;border-radius:12px;background:linear-gradient(140deg,#6945ef,#a54be3);color:#fff;box-shadow:0 2px 8px #7b49dc26;font:600 12px/1 system-ui;cursor:pointer}
html body[data-ds-client-page] .ds-client-ai-toggle svg{width:19px;height:19px}
html body[data-ds-client-page] .ds-client-ai-toggle:focus-visible{outline:3px solid #3159ef;outline-offset:3px}
html body .ds-install-button{display:block;box-sizing:border-box;width:100%;padding:11px 14px;text-align:left;font:inherit;color:#182e4b;background:#fff;border:0;cursor:pointer}
html body .ds-install-button:hover{background:#edf1ff}
html body :is([data-ds-install],.ds-install-login)[hidden]{display:none!important}
html body .kp-portal .kp-sidebar>.ds-install-sidebar{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:100%;min-width:0;min-height:44px;margin:8px 0 4px;padding:11px 14px;color:#fff!important;background:#2458f6!important;border:1px solid #2458f6!important;border-radius:10px;font:600 14px/1.4 system-ui;text-align:center;white-space:normal;box-shadow:none;opacity:1;visibility:visible}
html body .kp-portal .kp-sidebar>.ds-install-sidebar:hover{background:#1948d5!important;border-color:#1948d5!important}
html body .kp-portal .kp-sidebar>.ds-install-sidebar:focus-visible{outline:3px solid #42c9ca;outline-offset:2px}
html body .ds-install-help{box-sizing:border-box;width:min(420px,calc(100vw - 32px));border:1px solid #dce3ed;border-radius:14px;padding:20px;background:#fff;color:#182e4b;box-shadow:0 16px 48px #182c4b30;font:14px/1.55 system-ui}
html body .ds-install-help::backdrop{background:#13284438}
html body .ds-install-help h2{font-size:19px;line-height:1.3;margin:0 0 12px;padding-left:10px;border-left:4px solid #42c9ca}
html body .ds-install-help button{padding:10px 16px;min-height:44px;border:0;border-radius:9px;background:#2458f6;color:#fff;font:600 14px/1.3 system-ui;cursor:pointer}
html body .ds-install-help p{margin:0 0 14px}
html body .ds-install-status{font-size:12px;color:#60728a}
@media(max-width:860px){
 html body[data-ds-client-page] .kp-sidebar{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important;box-sizing:border-box}
 html body[data-ds-client-page] .kp-topbar-side .ds-client-ai-toggle{display:none!important}
 html body[data-ds-client-page] .ds-client-ai-toggle{width:44px;min-width:44px;height:44px;min-height:44px;padding:10px}
 html body[data-ds-client-page] .ds-client-ai-toggle span{display:none}
 html body[data-ds-client-page] .kp-mobile-bar .ds-client-ai-toggle{margin-left:auto;margin-right:8px}
 html body[data-ds-client-page] .kp-mobile-bar .kp-brand-mobile{min-width:0;flex-shrink:1}
 html body[data-ds-client-page] .ds-client-help textarea{font-size:16px}
 html body[data-ds-client-page] .ds-client-help header button{width:44px;min-height:44px}
 html body[data-ds-client-page] .ds-client-help form{padding-bottom:max(12px,env(safe-area-inset-bottom))}
 html body[data-ds-client-page] .ds-client-help footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}
 html body[data-ds-client-page] .ds-client-help{top:env(safe-area-inset-top);height:calc(100dvh - env(safe-area-inset-top));max-height:calc(100dvh - env(safe-area-inset-top))}
}
@media(display-mode:standalone){html body .kp-mobile-bar{padding-top:env(safe-area-inset-top)}html body .kp-mobile-bottomnav{padding-bottom:env(safe-area-inset-bottom)}}


html body .ds-install-device{display:grid;gap:6px;font-size:13px;font-weight:600}
html body .ds-install-device select{box-sizing:border-box;width:100%;min-height:44px;padding:9px 10px;border:1px solid #d6e1f0;border-radius:8px;background:#f6f8fc;color:#182e4b;font:16px/1.4 system-ui}
html body .ds-install-help ol,html body .ds-install-page ol{padding-left:24px;margin:16px 0}
html body .ds-install-help li,html body.ds-install-page li{padding:0 0 9px 4px}
html body .ds-install-note{padding:10px 12px;border-left:3px solid #42c9ca;border-radius:5px;background:#f1f7fb;font-size:12px;color:#52657f}
html body .ds-install-help{max-height:calc(100dvh - 32px);overflow:auto}
html body .ds-install-login{display:flex;flex-direction:column;gap:6px;align-items:center;padding-top:16px;margin-top:16px;border-top:1px solid #dce3ed;text-align:center}
html body .ds-install-login>a{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:9px 18px;border:1px solid #d6e1f0;border-radius:9px;text-decoration:none;color:#182e4b;background:#fff;font:600 14px/1.3 system-ui}
html body .ds-install-login>span{font:12px/1.5 system-ui;color:#60728a}
html body.ds-install-page{box-sizing:border-box;margin:0;min-height:100dvh;padding:max(20px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom));display:grid;place-items:center;background:#f5f6fa;color:#182e4b;font:15px/1.55 system-ui}
html body.ds-install-page main{box-sizing:border-box;width:100%;max-width:480px;padding:24px;border:1px solid #dce3ed;border-radius:16px;background:#fff;box-shadow:0 8px 30px #182c4b08}
html body.ds-install-page .ds-install-brand{display:flex;align-items:center;gap:12px;font-weight:650;margin-bottom:20px}
html body.ds-install-page .ds-install-brand img{border-radius:10px}
html body.ds-install-page h1{border-left:4px solid #42c9ca;padding-left:10px;font-size:24px;line-height:1.2;margin:0 0 10px}
html body.ds-install-page p{margin:0 0 16px}
html body.ds-install-page .ds-install-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 12px}
html body.ds-install-page button,html body.ds-install-page .ds-install-open{box-sizing:border-box;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid #d6e1f0;border-radius:9px;background:#fff;color:#182e4b;text-decoration:none;font:600 14px/1.4 system-ui;cursor:pointer}
html body.ds-install-page .ds-install-primary{background:#2458f6;color:#fff;border-color:#2458f6}
html body.ds-install-page [hidden]{display:none!important}
html body.ds-install-page .ds-install-link{display:grid;gap:6px;padding-top:14px;border-top:1px solid #dce3ed;font-size:12px;color:#60728a}
html body.ds-install-page .ds-install-link>a{overflow-wrap:anywhere;color:#2458f6}
html body.ds-install-page .ds-install-link>button{justify-self:start;font-size:12px;padding:6px 10px}
html body.ds-install-page :focus-visible,html body .ds-install-login>a:focus-visible{outline:3px solid #3159ef;outline-offset:3px}
@media(max-width:380px){html body.ds-install-page main{padding:18px}html body.ds-install-page{padding-inline:10px}}

/* Phone layout: reserve space for actual controls, not the hidden desktop bar. */
@media (max-width:860px){
 /* The section bar already names CRM and its areas; prioritise the directory. */
 html body .kp-portal.ds-mobile-crm-compact .kp-crm-head{display:none!important}
 html body .kp-portal.ds-mobile-crm-compact .kp-crm-directory-toolbar{gap:8px!important;align-items:center!important}
 html body .kp-portal.ds-mobile-crm-compact .kp-crm-directory-search{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;flex:1 0 100%!important;width:100%!important;min-width:0!important}
 html body .kp-portal.ds-mobile-crm-compact .kp-crm-directory-search>input[type="search"]{grid-column:1/-1;width:100%!important;min-width:0!important}
 html body .kp-portal.ds-mobile-crm-compact .kp-crm-directory-search>select{width:100%!important;min-width:0!important}
 html body .kp-portal.ds-mobile-crm-compact .kp-crm-directory-search>button{width:auto!important;min-width:0!important;padding-inline:12px!important}
 html body .kp-portal.ds-mobile-crm-compact .kp-crm-directory-toolbar>.ds-mobile-transfer{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:44px!important;max-width:100%;padding:8px 10px!important;border:1px solid #d6e1f0!important;border-radius:9px;background:#fff!important;color:#182e4b!important;box-shadow:none!important;font-size:12px!important;line-height:1.3!important;font-weight:600!important;white-space:normal;text-align:center}
 html body .kp-portal.ds-mobile-crm-compact .kp-crm-directory-toolbar>.ds-mobile-transfer:hover{background:#f1f5fb!important}
 /* Mobile navigation uses a light surface; never inherit the desktop rail's white text. */
 html body .kp-portal .kp-sidebar .kp-sidebar-brand{color:#182e4b!important}
 html body .kp-portal .kp-sidebar .kp-sidebar-brand-copy strong{color:#182e4b!important}
 html body .kp-portal .kp-sidebar .kp-sidebar-brand-copy small{color:#52657f!important}
 html body .kp-portal .kp-sidebar .kp-sidebar-brand-tile{background:#132b44!important;color:#fff!important;border-radius:9px}
 html body .kp-portal .kp-sidebar .kp-nav{padding-block:12px!important}
 html body .kp-portal .kp-sidebar .kp-sidebar-copilot{color:#182e4b!important;background:#f1f5fb!important;border:1px solid #d6e1f0}
 html body .kp-portal .kp-sidebar .kp-sidebar-copilot :is(h2,h3,p,span){color:#182e4b!important}
 html body .kp-portal .kp-sidebar .kp-sidebar-footer{color:#52657f!important;border-top-color:#d6e1f0}
 html body .kp-portal .kp-sidebar .kp-sidebar-footer strong{color:#182e4b!important}
 /* Console actions need the same 44px hit area as Tasks, in their own column. */
 html body .kp-portal .kp-console-due-item{grid-template-columns:44px minmax(0,1fr)!important;gap:8px!important;align-items:start;padding:10px 0!important;min-height:0}
 html body .kp-portal .kp-console-due-item>form{width:44px;min-width:0;margin:0!important;padding:0!important}
 html body .kp-portal .kp-console-due-item>a{min-width:0;gap:3px;padding:2px 0}
 html body .kp-portal .kp-console-due-item strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;font-size:14px!important;line-height:1.4!important}
 html body .kp-portal .kp-console-due-item small{white-space:normal!important;overflow-wrap:anywhere;font-size:12px!important;line-height:1.4!important;margin:0}
 html body .kp-portal .kp-console-task-check{position:relative;box-sizing:border-box;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 html body .kp-portal .kp-console-task-check::before{content:"";box-sizing:border-box;position:absolute;inset:11px;border:2px solid #8a99af;border-radius:5px;background:#fff}
 html body .kp-portal .kp-console-task-check.is-checked::before{background:#16826b;border-color:#16826b}
 html body .kp-portal .kp-console-task-check.is-checked::after{content:"✓";position:absolute;inset:11px;display:grid;place-items:center;color:#fff;font:700 14px/1 system-ui}
 html body .kp-portal .kp-console-task-check:focus-visible{outline:2px solid #3159ef;outline-offset:0;border-radius:8px}
 html:has(body.kp-direct-portal-page){-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(68px + env(safe-area-inset-top))}
 html body.kp-direct-portal-page .kp-portal{font-size:14px;line-height:1.45}
 html body .kp-portal .kp-mobile-bar{box-sizing:border-box;min-height:56px!important;height:auto!important;padding:calc(6px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left))!important;gap:8px}
 html body .kp-portal .kp-brand-mobile{min-width:0;gap:9px;font-size:15px!important;line-height:1.25!important}
 html body .kp-portal .kp-brand-mobile .kp-brand-mark{width:34px!important;height:34px!important;flex:0 0 34px}
 html body .kp-portal .kp-brand-mobile>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html body .kp-portal .kp-menu-toggle{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex:0 0 44px;padding:10px!important}
 html body .kp-portal #kp-main-content.kp-main{box-sizing:border-box;padding-top:10px!important;padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important;margin-top:0!important;min-width:0}
 html body .kp-portal #kp-main-content>.kp-content{gap:12px!important;min-width:0;padding-top:0!important}
 html body .kp-portal .kp-content>.kp-page-header{padding:12px 14px!important;margin:0!important;gap:10px!important;min-height:0!important}
 html body .kp-portal .kp-content>.kp-page-header h1{font-size:19px!important;line-height:1.3!important;margin:0}
 html body .kp-portal .kp-page-header .kp-eyebrow{font-size:11px!important;line-height:1.35!important;margin:0 0 3px!important;letter-spacing:.06em}
 html body .kp-portal span.kp-console-meta,html body .kp-portal p.kp-console-meta,html body .kp-portal div.kp-console-meta{min-height:0!important;line-height:1.45!important}
 html body .kp-portal .kp-content>.kp-card{padding:14px}
 html body .kp-portal .kp-section-heading{gap:8px;margin-bottom:10px}
 html body .kp-portal .kp-section-heading h2{font-size:18px;line-height:1.3}
 html body .kp-portal .kp-portal-legal{margin-top:12px;padding:10px 0;font-size:11px;line-height:1.5}
 /* A full-width reading column, with assignee/actions below it. */
 html body .kp-portal .kp-taskf-row{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:start;gap:4px 8px!important;padding:10px 0!important}
 html body .kp-portal .kp-taskf-toggle{grid-column:1;grid-row:1;margin:0;padding:0!important;width:44px;min-width:0}
 html body .kp-portal .kp-taskf-body{grid-column:2;grid-row:1;min-width:0;width:auto!important;gap:4px!important;padding:0!important}
 html body .kp-portal .kp-taskf-title{font-size:15px!important;line-height:1.4!important;font-weight:600;white-space:normal;overflow-wrap:break-word}
 html body .kp-portal .kp-taskf-meta{font-size:12px!important;line-height:1.45!important;flex-wrap:wrap;gap:2px 10px!important;min-height:0}
 html body .kp-portal .kp-taskf-link,html body .kp-portal .kp-taskf-desc{font-size:13px!important;line-height:1.5!important;min-height:0;white-space:normal;overflow-wrap:break-word}
 html body .kp-portal .kp-taskf-side{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:8px!important;min-width:0;width:100%;padding:0!important;flex-wrap:wrap}
 html body .kp-portal .kp-taskf-side .kp-console-meta{font-size:12px!important;min-height:0!important;flex:1;overflow-wrap:anywhere}
 html body .kp-portal .kp-taskf-side form{margin:0}
 html body .kp-portal .kp-taskf-check{position:relative;box-sizing:border-box;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex:0 0 44px;border:0!important;background:transparent!important;color:transparent!important;font-size:0!important;box-shadow:none!important}
 html body .kp-portal .kp-taskf-check::before{content:"";position:absolute;inset:10px;border:2px solid var(--kp-border,#ccd5e2);border-radius:6px;background:#fff}
 html body .kp-portal .kp-taskf-check.kp-prio-medium::before{border-color:#d5a414;background:#fff8dc}
 html body .kp-portal .kp-taskf-check.kp-prio-high::before{border-color:var(--kp-error,#d44848);background:#fff2f2}
 html body .kp-portal .kp-taskf-check.is-checked::before{border-color:var(--kp-success,#269a82);background:var(--kp-success,#269a82)}
 html body .kp-portal .kp-taskf-check.is-checked::after{content:"✓";position:absolute;inset:10px;display:grid;place-items:center;color:#fff;font:700 14px/1 system-ui}
 html body .kp-portal .kp-taskf-check:focus-visible{outline:2px solid #3159ef;outline-offset:1px}
 html body .kp-portal .kp-taskl-del{width:44px;height:44px;padding:10px!important;font-size:16px!important;line-height:1!important}
 html body .kp-portal .ds-task-list-panel{padding:0!important;overflow:hidden}
 html body .kp-portal .ds-task-list-panel>.kp-section-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 12px!important;gap:8px!important;margin:0!important}
 html body .kp-portal .ds-task-list-panel .kp-taskf-list{padding:0 10px!important}
 html body .kp-portal .kp-tasks-layout{gap:12px!important;margin:0!important}
 /* The photo is a preview; keep the title and facts within reach below it. */
 html body .kp-portal .kp-pp-gallery,html body .kp-portal .kp-ppd-gallery{height:220px!important;min-height:0!important;max-height:220px!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;overflow:hidden}
 html body .kp-portal .kp-pp-gallery img,html body .kp-portal .kp-ppd-gallery img{width:100%;height:100%;min-height:0!important;object-fit:cover}
 html body .kp-portal .kp-pp-gallery>a,html body .kp-portal .kp-ppd-gallery>a{min-height:0!important;max-height:220px}
 html body .kp-portal .kp-ppd-gallery .kp-ppd-gal-main{grid-row:1/span 2!important}
 html body .kp-portal .kp-pp-gallery .kp-pp-seeall,html body .kp-portal .kp-ppd-gallery .kp-ppd-seeall{font-size:12px!important;line-height:1.2!important;padding:10px 12px!important;min-height:44px!important}
 html body .kp-portal .kp-pp-hero,html body .kp-portal .kp-ppd-hero{gap:14px!important}
 html body[data-ds-client-page] .kp-portal #kp-main-content .kp-wl301-home-head:not(.ds-client-intro-consumed){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;padding:12px 14px!important}
 html body[data-ds-client-page] .kp-portal #kp-main-content .kp-wl301-home-head>div:first-child{min-width:0;flex:1}
 html body[data-ds-client-page] .kp-portal #kp-main-content .kp-clienthome-hero-actions{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:6px!important;justify-content:flex-start!important;width:100%}
 html body[data-ds-client-page] .kp-portal #kp-main-content .kp-clienthome-hero-actions>a,html body[data-ds-client-page] .kp-portal #kp-main-content .kp-clienthome-hero-actions>button{min-height:44px!important;font-size:12px!important;padding:8px 10px!important}
 html body[data-ds-client-page] .kp-portal #kp-main-content>.kp-topbar{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:8px!important;padding:10px 14px!important;align-items:center!important}
 html body[data-ds-client-page] .kp-portal #kp-main-content>.kp-topbar .kp-topbar-title{grid-column:1;grid-row:1;min-width:0!important;max-width:none!important;width:100%!important;font-size:18px!important;line-height:1.3!important}
 html body[data-ds-client-page] .kp-portal #kp-main-content>.kp-topbar .ds-client-page-info{grid-column:2;grid-row:1;justify-self:end}
 html body[data-ds-client-page] .kp-portal #kp-main-content>.kp-topbar .kp-topbar-side{grid-column:1/-1;grid-row:2;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:6px!important;width:100%;min-width:0!important}
 html body[data-ds-client-page] .kp-portal #kp-main-content>.kp-topbar .kp-wl301-header-actions{display:contents!important}
 html body[data-ds-client-page] .kp-portal #kp-main-content>.kp-topbar .kp-topbar-side .kp-wl301-header-button{min-height:44px!important;padding:8px 10px!important;font-size:12px!important;line-height:1.3!important}

 html body .kp-portal .kp-ppd-head>h1{font-size:24px!important;line-height:1.25!important;margin-bottom:8px!important}
 html body .kp-portal .kp-ppd-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 16px!important}
 html body .kp-portal .kp-ppd-strip>span{min-width:0!important}
 html body .kp-portal .kp-ppd-strip :is(.kp-ppd-strip-k,.kp-ppd-strip-v){white-space:normal!important;text-overflow:clip!important;overflow:visible!important;overflow-wrap:anywhere;line-height:1.4!important}
 html body .kp-portal .kp-ppd-strip .kp-ppd-strip-k{font-size:11px!important;letter-spacing:.04em!important}
 html body .kp-portal .kp-ppd-strip .kp-ppd-strip-v{font-size:14px!important}

}
@media(max-width:760px){
 html body .kp-portal.kp-operator-mobile-shell .kp-bottombar{box-sizing:border-box;min-height:calc(56px + env(safe-area-inset-bottom))!important;height:calc(56px + env(safe-area-inset-bottom))!important;padding:0 max(4px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px,env(safe-area-inset-left))!important;box-shadow:0 -2px 10px #142b4312}
 html body .kp-portal.kp-operator-mobile-shell .kp-bottombar-item{height:56px!important;min-height:56px!important;padding:6px 2px!important;gap:4px!important;min-width:0!important;font-size:11px!important;line-height:1.2!important}
 html body .kp-portal.kp-operator-mobile-shell .kp-bottombar-icon,html body .kp-portal.kp-operator-mobile-shell .kp-bottombar-icon svg{width:20px!important;height:20px!important;flex:0 0 20px}
 html body .kp-portal.kp-operator-mobile-shell .kp-bottombar-label{font-size:11px!important;line-height:1.2!important;font-weight:600!important;letter-spacing:0!important}
 html body .kp-portal.kp-operator-mobile-shell #kp-main-content.kp-main{padding-bottom:calc(72px + env(safe-area-inset-bottom))!important}
 html body .kp-portal .kp-acq-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important}
 html body .kp-portal .kp-acq-filter-search{grid-column:1/-1}
 html body .kp-portal .kp-acq-filters .kp-acq-filter{min-width:0!important;width:100%!important;margin:0!important}
 html body .kp-portal .kp-acq-filters :is(input,select){width:100%;min-width:0!important;padding:8px 10px!important}
 html body .kp-portal .kp-acq-layout-toggle{grid-column:1/-1;justify-self:start}
 html body .kp-portal .kp-acq-filter-count{align-self:center}
 html body .kp-portal .kp-acq-board-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 html body .kp-portal .kp-acq-board-stats>div{min-width:0;padding:6px!important}
}
html body .ds-install-button:focus-visible{outline:3px solid #3159ef;outline-offset:2px}
@media(display-mode:standalone),(display-mode:fullscreen),(display-mode:minimal-ui){html body :is([data-ds-install],.ds-install-login){display:none!important}}
