@font-face{font-family:OpenSansHebrew;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/opensanshebrew-regular.woff2) format("woff2")}@font-face{font-family:OpenSansHebrew;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/opensanshebrew-bold.woff2) format("woff2")}@font-face{font-family:OpenSansHebrew;font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/opensanshebrew-italic.woff2) format("woff2")}@font-face{font-family:OpenSansHebrew;font-style:italic;font-weight:700;font-display:swap;src:url(/fonts/opensanshebrew-bolditalic.woff2) format("woff2")}
:root{
--bg:#fafaf9;--card:#fff;--sunk:#f5f5f4;--hover:#f7f7f6;
--ink:#1c1917;--ink2:#44403c;--muted:#78716c;--faint:#6f6a65;
--line:#e7e5e4;--line2:#d6d3d1;
--accent:#428bca;--accent-ink:#3071a9;--accent-soft:#d9edf7;
--good:#15803d;--good-soft:#ecfdf3;--warn:#b54708;--warn-soft:#fffaeb;--bad:#b42318;--bad-soft:#fef3f2;--hot:#c4320a;
--radius:10px;--r-sm:7px;--sh-xs:0 1px 2px rgba(28,25,23,.05);--sh-pop:0 12px 32px -8px rgba(28,25,23,.18),0 2px 6px rgba(28,25,23,.06)}
*{box-sizing:border-box}html,body{margin:0;padding:0}
body{font-family:OpenSansHebrew,"Open Sans","Heebo",Arial,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5;font-feature-settings:"tnum" 1}
a{color:var(--accent);text-decoration:none}a:hover{color:var(--accent-ink)}
::selection{background:#bce8f1}
.ic{flex:none;vertical-align:middle}
/* ---------- shell ---------- */
.app{display:flex;min-height:100vh}
.sidebar{width:228px;background:var(--sunk);border-left:1px solid var(--line);position:sticky;top:0;height:100vh;overflow-y:auto;flex:none;display:flex;flex-direction:column;padding:12px 10px}
.sidebar .brand{display:flex;align-items:center;gap:9px;padding:6px 8px 14px;color:var(--ink);font-weight:700;font-size:15px;letter-spacing:.3px}
.sidebar .brand .mk{width:26px;height:26px;border-radius:7px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800}
.sidebar .brand small{display:block;font-weight:400;font-size:14px;color:var(--muted);letter-spacing:0;margin-top:-2px}
.sidebar .grp{font-size:14px;color:var(--faint);padding:14px 10px 4px;font-weight:500}
.sidebar a{display:flex;align-items:center;gap:9px;color:var(--ink2);padding:6px 10px;border-radius:7px;font-size:14px;margin:1px 0;border:1px solid transparent}
.sidebar a .ic{color:var(--muted)}
.sidebar a:hover{background:#ecebea;color:var(--ink)}
.sidebar a.on{background:#fff;color:var(--ink);font-weight:600;border-color:var(--line);box-shadow:var(--sh-xs)}.sidebar a.on .ic{color:var(--accent)}
.sidebar a .n{margin-inline-start:auto;color:var(--muted);font-size:14px;font-weight:600;min-width:18px;text-align:center}
.sidebar a .n.alert{background:var(--accent);color:#fff;border-radius:99px;padding:0 6px}
.sidebar .me{margin-top:auto;border-top:1px solid var(--line);padding-top:8px}
.main{flex:1;min-width:0}
.topbar{display:flex;align-items:center;gap:10px;padding:10px 24px;background:rgba(250,250,249,.88);backdrop-filter:saturate(1.4) blur(8px);position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line)}
.search{flex:1;max-width:420px;position:relative}.search input{width:100%;padding:7px 34px 7px 44px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:14px}
.search .ic{position:absolute;right:11px;top:9px;color:var(--faint)}.search kbd{position:absolute;left:8px;top:7px}
kbd{font-family:inherit;font-size:14px;color:var(--muted);border:1px solid var(--line2);border-bottom-width:2px;border-radius:5px;padding:0 5px;background:#fff}
.wrap{max-width:1560px;margin:0 auto;padding:22px 28px 90px;overflow-wrap:anywhere}
.mnav{display:none}
@media(max-width:900px){
 .sidebar{display:none}.topbar{padding:8px 12px}.wrap{padding:14px 12px 96px}.search kbd{display:none}.search input{padding-left:12px}
 .mnav{display:flex;position:fixed;bottom:0;left:0;right:0;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line);z-index:40;padding:4px 4px calc(4px + env(safe-area-inset-bottom))}
 .mnav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:14px;color:var(--muted);padding:6px 0;position:relative}.mnav a.on{color:var(--accent);font-weight:600}
 .mnav a .n{position:absolute;top:2px;left:calc(50% - 18px);background:var(--accent);color:#fff;border-radius:99px;font-size:14px;padding:0 5px}
 .hide-m{display:none!important}
}
.tile-sec{font-size:14px;font-weight:600;color:var(--muted);margin:18px 2px 8px;letter-spacing:.2px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.tile{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:12px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;color:var(--ink);transition:border-color .12s,box-shadow .12s}
.tile:hover{border-color:var(--line2);box-shadow:0 4px 14px -8px rgba(28,25,23,.25);text-decoration:none}
.tile-ic{grid-row:1/4;width:40px;height:40px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center}
.tile-t{font-weight:600;font-size:15px}.tile-d{font-size:14px;color:var(--muted);line-height:1.45;margin-top:2px}.tile-s{font-size:14px;color:var(--accent-ink);margin-top:8px;font-weight:500}
.avatar.sm{width:28px;height:28px;border-radius:8px;font-size:14px}
.unit{display:flex;align-items:center;border:1px solid var(--line2);border-radius:var(--r-sm);background:#fff;overflow:hidden}.unit input{border:0!important;box-shadow:none!important;flex:1;min-width:0}.unit span{padding:0 10px;color:var(--muted);font-size:14px;border-inline-start:1px solid var(--line);background:var(--bg2,#faf9f7);align-self:stretch;display:flex;align-items:center}
.checks{margin-top:14px;border-top:1px solid var(--line)}
.ck{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.ck:last-child{border-bottom:0;padding-bottom:0}
.ck > .ic{color:var(--faint)}.ck.ok > .ic{color:var(--good)}.ck b{display:block;font-weight:600;font-size:14px}.ck span{font-size:14px;color:var(--muted)}
details.card > summary{cursor:pointer;list-style:none}details.card > summary::-webkit-details-marker{display:none}details.card > summary::before{content:'›';display:inline-block;margin-left:8px;color:var(--muted);transition:transform .12s}details.card[open] > summary::before{transform:rotate(90deg)}
tr.dim td{opacity:.62}details.more{border-top:1px solid var(--line)}details.more > summary{padding:10px 16px;font-size:14px;color:var(--accent);cursor:pointer;list-style:none}details.more > summary::-webkit-details-marker{display:none}details.more[open] > summary{border-bottom:1px solid var(--line)}.warn-t{color:#a16207}
.modal{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px;overflow:auto}
.modal-bg{position:fixed;inset:0;background:rgba(28,25,23,.42)}
.modal-box{position:relative;background:#fff;border-radius:14px;box-shadow:0 24px 60px -20px rgba(28,25,23,.45);width:100%;max-width:620px;padding:20px 22px;animation:pop .14s ease-out}
.modal-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.modal-h h2{margin:0;font-size:17px}
@keyframes pop{from{transform:translateY(6px);opacity:.6}to{transform:none;opacity:1}}
.sheet{display:none;position:fixed;inset:0;background:rgba(28,25,23,.35);z-index:60}.sheet.show{display:block}
.sheet .in{position:absolute;bottom:0;left:0;right:0;background:#fff;border-radius:16px 16px 0 0;padding:10px 14px 20px;max-height:80vh;overflow:auto}
.sheet .in a{display:flex;gap:10px;align-items:center;padding:12px 6px;color:var(--ink);border-bottom:1px solid var(--line)}
/* ---------- page header ---------- */
.ph{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 18px}
.ph h1{margin:0;font-size:22px;font-weight:600;letter-spacing:-.2px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.crumb{font-size:14px;color:var(--muted);margin-bottom:4px}.crumb a{color:var(--muted)}.crumb a:hover{color:var(--ink)}
.ph .sub{color:var(--muted);font-size:14px;margin-top:3px}
h1{font-size:22px;font-weight:600;margin:0 0 14px}h2{font-size:14px;margin:0 0 12px;font-weight:600;color:var(--ink)}h3{font-size:14px;margin:0 0 8px;color:var(--muted);font-weight:500}
/* ---------- surfaces ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:14px}
.card.pad0{padding:0;overflow:hidden}.card.flat{background:var(--sunk);border-color:transparent}
.card h2:has(> .act){display:flex;align-items:baseline;gap:8px}.card h2 > .act{margin-inline-start:auto}.card h2 .act,.sec-h .act{font-size:14px;font-weight:500}
.sec-h{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line)}.sec-h h2{margin:0}
.grid{display:grid;gap:14px;align-items:start}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.g5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid>*{min-width:0}
.grid.side{grid-template-columns:minmax(0,1fr) 340px}.grid.side-r{grid-template-columns:340px minmax(0,1fr)}
@media(max-width:1100px){.g5{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.side{grid-template-columns:minmax(0,1fr) 280px}}
.row>input,.row>select{min-width:0}
@media(max-width:900px){.g2,.g3,.g4,.g5,.grid.side,.grid.side-r{grid-template-columns:minmax(0,1fr)}.stats{display:grid;grid-template-columns:1fr 1fr}.stats .v{font-size:19px}.tw table.fixed{min-width:0}table.fixed th.w-name{width:42%!important}.stats>div{border-bottom:1px solid var(--line)}.grid.side-r > aside{order:2}.ph h1{font-size:19px}.rec-h > .row:last-child{width:100%}}
/* ---------- tables ---------- */
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:right;padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
th{color:var(--muted);font-weight:500;font-size:14px;background:var(--sunk);white-space:nowrap}
tbody tr:hover td{background:var(--hover)}tr[data-href]{cursor:pointer}table.rows td{padding-top:8px;padding-bottom:8px}td{overflow-wrap:anywhere}td.nowrap,th{overflow-wrap:normal}table.fixed{table-layout:fixed;width:100%}.clip{display:-webkit-box;-webkit-line-clamp:unset;-webkit-box-orient:vertical;overflow:visible;overflow-wrap:anywhere}.clip1{white-space:normal;overflow:visible;;overflow-wrap:anywhere}tbody tr:last-child td{border-bottom:0}
.tw{overflow-x:auto;margin:0 -16px}.tw table{min-width:560px}.tw th:first-child,.tw td:first-child{padding-right:16px}.tw th:last-child,.tw td:last-child{padding-left:16px}
.card > .tw:first-child{margin-top:-16px}.card > .tw:last-child{margin-bottom:-16px}
.muted{color:var(--muted)}.small{font-size:14px}.nowrap{white-space:nowrap}.hint{font-size:14px;color:var(--muted);margin-top:4px}
.late{color:var(--bad)!important;font-weight:600}.num{font-variant-numeric:tabular-nums}
/* ---------- tags ---------- */
.pill{display:inline-flex;align-items:center;gap:6px;padding:1px 8px;border-radius:6px;font-size:14px;font-weight:500;background:var(--sunk);color:var(--ink2);white-space:nowrap;border:1px solid var(--line);line-height:20px}
.pill:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--faint)}
.pill.hot:before{background:var(--hot)}.pill.warm:before{background:#f0ad4e}.pill.lukewarm:before{background:#0e9384}.pill.cold:before,.pill.closed:before{background:#a8a29e}
.pill.good{background:var(--good-soft);border-color:#c6efd6;color:var(--good)}.pill.good:before{background:var(--good)}
.pill.bad{background:var(--bad-soft);border-color:#fdd5d1;color:var(--bad)}.pill.bad:before{background:var(--bad)}
.pill.warn{background:var(--warn-soft);border-color:#fde7b0;color:var(--warn)}.pill.warn:before{background:#f0ad4e}
.pill.plain:before{display:none}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--faint);flex:none}.dot.hot{background:var(--hot)}.dot.warm{background:#f0ad4e}.dot.lukewarm{background:#0e9384}.dot.cold{background:#d6d3d1}
.lvl{font-size:14px;padding:0 6px;border-radius:5px;color:var(--muted);border:1px solid var(--line);font-weight:500;white-space:nowrap}
.lvl.call{color:#428bca;border-color:#bcdadf;background:#f2f8f9}.lvl.document{color:var(--good);border-color:#c6efd6;background:var(--good-soft)}.lvl.lender{color:#6941c6;border-color:#e4d7fb;background:#f9f5ff}
/* ---------- forms ---------- */
form.inline{display:inline}
input,select,textarea{font:inherit;font-size:14px;padding:7px 10px;border:1px solid var(--line2);border-radius:var(--r-sm);background:#fff;color:var(--ink);max-width:100%;transition:border-color .12s,box-shadow .12s}
input:hover,select:hover,textarea:hover{border-color:#a8a29e}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px #d9ecef}
.card input:not([type=checkbox]):not([type=radio]):not([type=file]),.card select,.card textarea{width:100%}
.row input,.row select{width:auto!important}
input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px;vertical-align:middle}
textarea{width:100%;min-height:76px;resize:vertical;line-height:1.55}
label{display:block;font-size:14px;color:var(--ink2);margin:12px 0 5px;font-weight:500}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.row.between{justify-content:space-between}
.actions{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap;align-items:center}
/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;font-weight:500;font-size:14px;height:32px;padding:0 12px;border-radius:var(--r-sm);border:1px solid var(--ink);background:var(--ink);color:#fff;cursor:pointer;text-decoration:none!important;white-space:nowrap;transition:background .12s,border-color .12s,color .12s}
.btn:hover{background:#292524;color:#fff}.btn:active{transform:translateY(.5px)}
.btn.sec{background:#fff;color:var(--ink);border-color:var(--line2);box-shadow:var(--sh-xs)}.btn.sec:hover{background:var(--hover);border-color:#a8a29e}
.btn.ghost{background:transparent;border-color:transparent;color:var(--muted);box-shadow:none}.btn.ghost:hover{color:var(--ink);background:var(--sunk)}
.btn.bad{background:var(--bad);border-color:var(--bad)}.btn.good,.btn.call{background:var(--good);border-color:var(--good)}.btn.good:hover,.btn.call:hover{background:#116330}
.btn.accent{background:var(--accent);border-color:var(--accent)}.btn.accent:hover{background:var(--accent-ink)}
.btn.sm{height:28px;padding:0 9px;font-size:14px}.btn.lg{height:38px;padding:0 16px;font-size:14px}.btn.wide{width:100%}.btn.icon{width:32px;padding:0}.btn.sm.icon{width:28px}
.chip{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:7px;border:1px solid var(--line);background:#fff;color:var(--ink2);font-size:14px;cursor:pointer;white-space:nowrap}
.chip:hover{border-color:var(--line2);background:var(--hover);color:var(--ink)}.chip.on{background:var(--ink);border-color:var(--ink);color:#fff}
.seg{display:inline-flex;background:var(--sunk);border:1px solid var(--line);border-radius:8px;padding:2px;gap:2px}.seg a{padding:3px 10px;border-radius:6px;color:var(--muted);font-size:14px;font-weight:500}
.seg a.on{background:#fff;color:var(--ink);box-shadow:var(--sh-xs)}
/* ---------- stats ---------- */
.stats{display:flex;background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:14px;overflow-x:auto}
.stats > div{flex:1;padding:12px 16px;border-left:1px solid var(--line);min-width:120px}.stats > div:last-child{border-left:0}
.stats .v{white-space:nowrap;overflow-wrap:normal;font-size:22px;font-weight:600;letter-spacing:-.3px;line-height:1.2}.stats .l{font-size:14px;color:var(--muted)}.stats .v.bad{color:var(--bad)}.stats .v.good{color:var(--good)}
.kpi{font-size:24px;font-weight:600;letter-spacing:-.3px}.kpi-l{color:var(--muted);font-size:14px}
.stat-bar{height:6px;border-radius:4px;background:var(--sunk);overflow:hidden}.stat-bar>i{display:block;height:100%;background:var(--accent);border-radius:4px}
.kv{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--sunk);font-size:14px}.kv:last-child{border-bottom:0}.kv > span:first-child{color:var(--muted)}
/* ---------- lists ---------- */
.li{display:flex;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid var(--sunk);color:var(--ink)}.li:last-child{border-bottom:0}a.li:hover{background:var(--hover)}
.qi{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 16px;border-bottom:1px solid var(--line);transition:background .1s}.qi:last-child{border-bottom:0}.qi:hover{background:var(--hover)}
.qi .nm{font-weight:600;color:var(--ink);font-size:14px}.qi .nm:hover{color:var(--accent)}
.qi .meta{font-size:14px;color:var(--muted);display:flex;gap:6px;flex-wrap:wrap;margin-top:1px}.qi .meta span+span:before{content:"·";margin-left:6px;color:var(--faint)}
.qi .when{font-size:14px;color:var(--muted);white-space:nowrap;text-align:left}
.qi .acts{display:flex;gap:6px;align-items:center;opacity:.9}
/* ---------- steps ---------- */
.steps{display:flex;gap:4px;margin:0 0 18px}.steps .s{flex:1;min-width:0;font-size:14px;color:var(--faint);text-align:center;white-space:normal;overflow:visible;;overflow-wrap:anywhere}
.steps .s i{display:block;height:4px;border-radius:3px;background:var(--line);margin-bottom:6px}.steps .s.done i{background:#7fb3bc}.steps .s.done{color:var(--muted)}.steps .s.cur i{background:var(--accent)}.steps .s.cur{color:var(--ink);font-weight:600}
/* ---------- tabs ---------- */
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin:0 0 16px;overflow-x:auto}.tabs a{padding:8px 12px;color:var(--muted);font-weight:500;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;cursor:pointer}
.tabs a:hover{color:var(--ink)}.tabs a.on{color:var(--ink);border-bottom-color:var(--ink)}.tabs a .c{color:var(--faint);font-size:14px;margin-right:3px}
[data-pane]{display:none}[data-pane].on{display:block}
/* ---------- timeline ---------- */
.tl{position:relative;padding-right:22px}.tl:before{content:"";position:absolute;right:7px;top:8px;bottom:8px;width:1px;background:var(--line)}
.tl .ev{position:relative;padding:2px 0 14px}.tl .ev:before{content:"";position:absolute;right:-19px;top:7px;width:9px;height:9px;border-radius:50%;background:#fff;border:2px solid var(--line2)}
.tl .ev.call:before{border-color:var(--accent)}.tl .ev.message_in:before{border-color:var(--good)}.tl .ev.message_out:before{border-color:#78716c}
.tl .ev.agent:before{border-color:#7c3aed}.tl .ev.status:before{border-color:#f0ad4e}.tl .ev.agreement:before,.tl .ev.case:before{background:var(--good);border-color:var(--good)}
.ev .meta{font-size:14px;color:var(--muted)}.ev .meta b{color:var(--ink2);font-weight:600}.ev .body{margin-top:4px;color:var(--ink2)}
.ev .body.box{background:var(--sunk);border-radius:8px;padding:8px 10px;max-height:16em;overflow:auto;overflow-wrap:anywhere}
.ev pre,.pre{white-space:pre-wrap;font-family:inherit;margin:0}
/* ---------- record (lead card) ---------- */
.rec-h{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}
.avatar{width:44px;height:44px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;flex:none}
.props .p{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px;padding:6px 0;font-size:14px;align-items:baseline}.props .p > span:first-child{color:var(--muted)}
.props .p b{font-weight:500}.props .p b[dir=ltr]{text-align:right;unicode-bidi:plaintext}.props .empty-v{color:var(--faint)}
.next{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;margin-bottom:16px}
.next.late{border-color:#fecdca;background:#fffbfa}.next .what{font-weight:600}.next .lbl{color:var(--muted);font-size:14px}
details.inline > summary{list-style:none;cursor:pointer}details.inline > summary::-webkit-details-marker{display:none}
.menu{position:relative}.menu > summary{list-style:none}.menu > summary::-webkit-details-marker{display:none}
.menu .pop{position:absolute;left:0;top:36px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--sh-pop);padding:4px;min-width:200px;z-index:30}
.menu .pop a,.menu .pop button{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;border-radius:6px;color:var(--ink);font:inherit;font-size:14px;background:none;border:0;cursor:pointer;text-align:right}
.menu .pop a:hover,.menu .pop button:hover{background:var(--sunk)}
/* ---------- feedback ---------- */
.toast{position:fixed;bottom:20px;left:20px;z-index:90;padding:10px 14px;border-radius:9px;background:var(--ink);color:#fff;font-size:14px;font-weight:500;box-shadow:var(--sh-pop);animation:tin .2s ease;max-width:90vw;display:flex;gap:8px;align-items:center}
.toast:before{content:"";width:7px;height:7px;border-radius:50%;background:#4ade80}.toast.err:before{background:#f87171}
@keyframes tin{from{opacity:0;transform:translateY(6px)}}
@media(max-width:900px){.toast{bottom:84px;left:12px;right:12px}}
.flash{padding:10px 12px;border-radius:8px;margin-bottom:14px;background:var(--good-soft);color:var(--good);font-size:14px;border:1px solid #c6efd6}
.flash.err{background:var(--bad-soft);color:var(--bad);border-color:#fdd5d1}.flash.info{background:var(--accent-soft);color:var(--accent-ink);border-color:#bce8f1}
.empty{color:var(--muted);padding:32px 16px;text-align:center;font-size:14px}.empty b{display:block;color:var(--ink);font-size:15px;font-weight:600;margin-bottom:4px}
details summary{cursor:pointer;color:var(--accent);font-weight:500;font-size:14px}
code{background:var(--sunk);padding:1px 6px;border-radius:5px;font-size:14px;border:1px solid var(--line)}code.copy{display:block;padding:8px 10px;word-break:break-all;user-select:all;margin-top:6px}
/* ---------- chat ---------- */
.chat{max-height:540px;overflow:auto;display:flex;flex-direction:column;gap:4px;padding:14px;background:var(--sunk);border-radius:10px}
.bubble{max-width:76%;padding:7px 11px;border-radius:12px;white-space:pre-wrap;font-size:14px;line-height:1.5}
.bubble.in{background:#fff;align-self:flex-start;border:1px solid var(--line);border-top-right-radius:4px}
.bubble.out{background:#dff3ee;align-self:flex-end;border-top-left-radius:4px}.bubble.agent{background:#efebfd}
.bubble .t{font-size:14px;color:var(--muted);margin-top:2px}
/* ---------- softphone ---------- */
#phone{position:fixed;left:20px;bottom:20px;z-index:50;background:var(--ink);color:#fff;border-radius:12px;padding:12px 14px;min-width:260px;box-shadow:var(--sh-pop);display:none;font-size:14px}
#phone.show{display:block}#phone .who{font-weight:600;font-size:15px}#phone .btn{margin-top:8px}#phone .btn.sec{background:transparent;color:#fff;border-color:#57534e;box-shadow:none}
@media(max-width:900px){#phone{left:8px;right:8px;bottom:80px}}
.signer{border:1px solid var(--line);border-radius:10px;padding:2px 12px 12px;margin-top:10px;background:var(--hover)}
.score{display:inline-flex;gap:3px}.score i{width:14px;height:5px;border-radius:2px;background:var(--line)}.score i.on{background:var(--accent)}
.doc{overflow:auto}
/* ---------- client card ---------- */
.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:14px;overflow:hidden}
.kpi-b{display:block;padding:11px 14px;border-left:1px solid var(--line);color:var(--ink);min-width:0;transition:background .1s}.kpi-b:last-child{border-left:0}.kpi-b:hover{background:var(--hover);color:var(--ink)}
.kpi-b .kl{font-size:14px;color:var(--muted)}.kpi-b .kv2{font-size:19px;font-weight:600;letter-spacing:-.2px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kpi-b .kv2.good{color:var(--good)}.kpi-b .kv2.bad{color:var(--bad)}
.kpi-b .ks{font-size:14px;color:var(--muted);white-space:normal;overflow:visible;;overflow-wrap:anywhere}.kpi-b.best{background:var(--accent-soft)}.kpi-b.best:hover{background:#dcebed}.kpi-b.best .ks{color:var(--accent-ink)}
.cur:not(.s){position:relative}.cur:not(.s):after{content:"₪";position:absolute;left:9px;top:50%;transform:translateY(-50%);color:var(--faint);font-size:14px;pointer-events:none}.cur:not(.s) input{padding-left:22px!important}
.kmiss{font-size:14px;font-weight:500;color:var(--bad)}
.tabs a .c.bad{color:var(--bad);font-weight:600}
.grid.tight{gap:14px}.grid.tight > .card{margin-bottom:0}.grid.tight + *{margin-top:14px}
.pfr{display:grid;grid-template-columns:128px minmax(0,1fr) auto;gap:8px;align-items:center;padding:4px 0}.pfr > label{margin:0;font-weight:400;color:var(--muted)}
.pfr input,.pfr select{height:32px;padding:4px 8px}.pfr .lvsel{font-size:14px;color:var(--muted);background:var(--sunk);border-color:var(--line)}.pfr .pf-h{grid-column:2/4;margin-top:-2px}
.savebar{position:sticky;bottom:0;z-index:5;display:flex;gap:12px;align-items:center;background:rgba(250,250,249,.94);backdrop-filter:blur(6px);padding:10px 0;border-top:1px solid var(--line);margin-top:14px}
.upl{padding:12px 14px}.upl-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.upl-row select{width:auto!important;min-width:180px}
.filebtn{position:relative;display:inline-flex;align-items:center;height:32px;padding:0 12px;border:1px dashed var(--line2);border-radius:var(--r-sm);color:var(--ink2);cursor:pointer;margin:0;font-weight:500;flex:1;min-width:160px;background:var(--hover)}
.filebtn:hover{border-color:var(--accent);color:var(--accent)}.filebtn input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%!important}
.ckl{display:flex!important;align-items:center;gap:6px;margin:0!important;font-weight:400!important;color:var(--ink2)}
.dlist .dtype{padding:10px 16px;border-bottom:1px solid var(--line)}.dlist .dtype:last-child{border-bottom:0}
.dt-h{display:flex;align-items:center;gap:10px}.dt-n{font-weight:600;flex:1;min-width:0}.dtype.na .dt-n{color:var(--faint);font-weight:500}
.frow{display:flex;align-items:center;gap:10px;padding:6px 0 0 0;margin-inline-start:2px}.frow .fname{display:flex;align-items:center;gap:6px;min-width:0;flex:1;color:var(--ink2);font-size:14px}.frow .fname:hover{color:var(--accent)}.frow .acts{display:flex;gap:6px;flex:none}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi-b:nth-child(3n){border-left:0}.kpi-b:nth-child(-n+3){border-bottom:1px solid var(--line)}}
@media(max-width:900px){.qi{grid-template-columns:minmax(0,1fr)!important}.qi .acts{flex-wrap:wrap}.qi .acts form.row{flex-wrap:wrap!important}.rec-h .menu .pop{left:auto;right:0}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi-b{border-bottom:1px solid var(--line)}.kpi-b:nth-child(3n){border-left:1px solid var(--line)}.kpi-b:nth-child(2n){border-left:0}.pfr{grid-template-columns:110px minmax(0,1fr)}.pfr .lvsel{grid-column:2}.pfr .pf-h{grid-column:1/3}}
/* ---------- auth ---------- */
.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg);padding:16px;background-image:radial-gradient(circle at 80% 0%,#d9edf7 0,transparent 45%)}
.auth .card{width:100%;max-width:400px;padding:28px;box-shadow:var(--sh-pop)}
.auth .logo{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;color:var(--ink)}.auth .logo:before{content:"O";width:30px;height:30px;border-radius:8px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}
.auth .logo small{display:block;font-size:14px;font-weight:400;color:var(--muted)}

[hidden]{display:none!important}
.dlg .fld input:not([type=checkbox]):not([type=radio]),.dlg .fld select,.dlg .fld textarea{width:100%}
.teststripe{position:absolute;top:0;left:0;right:0;height:3px;background:repeating-linear-gradient(-45deg,#f0ad4e 0 10px,#fdb022 10px 20px)}
.topbar{position:sticky}.sres{display:none;position:absolute;top:38px;right:0;left:0;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--sh-pop);padding:4px;z-index:40;max-height:60vh;overflow:auto}
.sres.on{display:block}.sres a{display:block;padding:7px 10px;border-radius:7px;color:var(--ink)}.sres a b{font-weight:600}.sres a span{display:block;font-size:14px;color:var(--muted)}.sres a.on,.sres a:hover{background:var(--sunk)}.sres .none{padding:10px;color:var(--muted);font-size:14px}
#nextcall a{display:inline-flex;gap:6px;align-items:center;font-size:14px;color:var(--ink2);border:1px solid var(--line);border-radius:8px;padding:3px 8px;background:#fff}#nextcall a b{font-weight:600}
.topbar .menu .pop{left:0;right:auto}
.toast .tx{background:none;border:0;color:#fff;font-size:18px;line-height:1;cursor:pointer;margin-inline-start:6px;opacity:.8}
.fld{min-width:0}.fld > label{margin-top:12px}
.backl{display:inline-block;font-size:14px;color:var(--muted);margin-bottom:6px}.backl:hover{color:var(--ink)}
dialog.dlg{border:0;border-radius:14px;padding:18px 20px;width:min(560px,calc(100vw - 24px));box-shadow:0 24px 60px -20px rgba(28,25,23,.45)}dialog.dlg.wide{width:min(860px,calc(100vw - 24px))}
dialog.dlg::backdrop{background:rgba(28,25,23,.42)}.dlg-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.dlg-h h2{margin:0;font-size:16px}
.dlg .actions{justify-content:flex-start}
.chip[data-when]{margin-inline-end:4px}
form .busy{opacity:.6;pointer-events:none}form .busy:after{content:"…"}
tr.kfocus td,.qi.kfocus{background:var(--accent-soft)!important}
input[type=file]:not(.filebtn input){font-size:14px}
@media(max-width:900px){
 table.rs thead{display:none}table.rs,table.rs tbody,table.rs tr,table.rs td{display:block;width:100%}.tw table.rs{min-width:0}
 table.rs tr{border:1px solid var(--line);border-radius:10px;margin:0 0 8px;padding:6px 10px;background:#fff}table.rs td{border:0;padding:3px 0;display:flex;gap:10px;justify-content:space-between;text-align:left}
 table.rs td:before{content:attr(data-l);color:var(--muted);font-size:14px;text-align:right;flex:none}table.rs td[data-l=""]:before{display:none}
 .tw:has(table.rs){margin:0}
 .topbar .search{max-width:none}
}
/* ---- the client strip in the top bar (every page of one client) ---- */
.wrap.wide{max-width:none;padding-top:16px}
.topbar.has-ctx{gap:12px;padding-top:7px;padding-bottom:7px}
.topbar.has-ctx .search{flex:0 1 230px;max-width:230px}
.has-ctx #nextcall{display:none}
.cbar{flex:1;min-width:0;display:flex;align-items:center;gap:12px;justify-content:space-between}
.cb-who{display:flex;align-items:center;gap:10px;min-width:0;color:var(--ink);padding:3px 10px 3px 12px;border-radius:10px;max-width:380px}
.cb-who:hover,.cb-who.on{background:var(--sunk);color:var(--ink)}
.cb-av{width:34px;height:34px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-weight:700;flex:none;font-size:15px}
.cb-t{display:flex;flex-direction:column;min-width:0;line-height:1.25}.cb-t b{font-size:15px;font-weight:700}
.cb-t small{font-size:14px;color:var(--muted);white-space:normal;overflow:visible;;overflow-wrap:anywhere}
.cb-jr{display:flex;gap:2px;margin-top:4px;width:150px;max-width:100%}.cb-jr i{flex:1;height:3px;border-radius:2px;background:var(--line)}.cb-jr i.d{background:#bce8f1}.cb-jr i.c{background:var(--accent)}
.cb-acts{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;min-width:0}.cb-acts .btn{white-space:nowrap;gap:5px}
.cb-acts .btn.ghost.on{background:var(--accent-soft);color:var(--accent-ink);font-weight:600}
.cb-sep{width:1px;height:22px;background:var(--line);margin:0 4px;flex:none}
@media(max-width:1440px){.has-ctx > .pill.warn{display:none}.topbar.has-ctx .search{flex-basis:170px}.cb-jr{width:110px}}
@media(max-width:1700px){.cb-acts .lb{display:none}.cb-acts .btn.call .lb{display:inline}.cb-acts .btn{padding-inline:8px}}
@media(max-width:900px){.topbar.has-ctx .search{display:none}.cb-acts > *:not(.call):not(.cb-more){display:none}.cb-who{max-width:none;padding:0;flex:1}.cb-jr{display:none}.cbar{gap:6px}.cb-av{width:30px;height:30px}}

/* ---- the client card: three columns ---- */
.c3{display:grid;grid-template-columns:300px minmax(0,1fr) 380px;grid-template-areas:"cli work act";gap:16px;align-items:start}
.c3-cli{grid-area:cli;min-width:0}.c3-work{grid-area:work;min-width:0}.c3-act{grid-area:act;min-width:0}
.c3 .col > .card,.c3 .col > form.card,.c3 .col > .flash{margin-bottom:12px}
.c3 .col > .card{padding:12px 14px}.c3 .col > .card h2{font-size:14px;margin-bottom:8px}
.c3-cli,.c3-act{position:sticky;top:76px;max-height:calc(100vh - 88px);overflow:auto;scrollbar-width:thin;padding-bottom:8px}
.c3-work > .tabs{position:sticky;top:64px;z-index:5;background:var(--bg);margin-bottom:12px}
.c3-work .tabs .c{margin-inline-start:6px}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:12px;align-items:start}.pgrid > .card{margin:0}
.snap .r{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid var(--sunk);font-size:14px;align-items:baseline;color:var(--ink)}
.snap .r:hover{background:var(--hover)}.snap .r > span{color:var(--muted);flex:none}.snap .r > b{font-weight:600;text-align:left;min-width:0}
.snap .r small{display:block;font-size:14px;color:var(--muted);font-weight:400;margin-top:1px}.snap .r .kmiss{color:var(--bad);font-weight:500}
.snap .best{display:flex;flex-direction:column;gap:2px;margin-top:10px;background:var(--accent-soft);border:1px solid #bce8f1;border-radius:10px;padding:9px 11px;color:var(--ink)}.snap .best:hover{border-color:var(--accent)}
.good-t{color:var(--good)}
.c3 .props .p{grid-template-columns:76px minmax(0,1fr);padding:5px 0}.c3 .props [data-copy]{padding:0 6px;height:22px;min-height:0;font-size:14px;vertical-align:middle}
.c3-act .next{margin-bottom:12px;padding:10px 12px;gap:8px;align-items:flex-start}.c3-act .next .what{font-weight:600}
.c3-act details.inline > form.card{margin-top:-4px!important}.c3-act form .grid{grid-template-columns:minmax(0,1fr)!important;gap:0}
.compose{padding:8px 10px!important}.compose textarea{border:0;box-shadow:none;min-height:44px;padding:4px;resize:vertical}.compose textarea:focus,.compose textarea:not(:placeholder-shown){min-height:90px}
.tlc h2{display:flex;align-items:center}.tlc .tlf{margin-bottom:8px}
.mtabs{display:none}
@media(max-width:1499px){
 .c3{grid-template-columns:330px minmax(0,1fr);grid-template-areas:"cli work" "act work";grid-template-rows:auto 1fr}
 .c3-cli,.c3-act{position:static;max-height:none;overflow:visible;padding:0}
 .pgrid{grid-template-columns:repeat(auto-fill,minmax(380px,1fr))}
}
@media(max-width:1099px){
 .c3{display:block}.c3 > .col{display:none;position:static;max-height:none;overflow:visible}
 .c3[data-m=act] > .c3-act,.c3[data-m=work] > .c3-work{display:block}.c3[data-m=cli] > .c3-cli{display:grid;grid-template-columns:minmax(0,1fr)}
 .c3-work > .tabs{display:none}
 .mtabs{display:flex;gap:2px;position:sticky;top:52px;z-index:15;background:var(--bg);border-bottom:1px solid var(--line);margin:-6px -12px 12px;padding:0 8px;overflow-x:auto}
 .mtabs a{padding:10px 12px;color:var(--muted);font-weight:500;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;cursor:pointer}
 .mtabs a.on{color:var(--accent-ink);border-bottom-color:var(--accent);font-weight:700}.mtabs .c{margin-inline-start:5px;font-size:14px;background:var(--sunk);border-radius:99px;padding:1px 6px}.mtabs .c.bad{background:var(--bad-soft);color:var(--bad)}
}
/* credit status and other multi-choice fields: chips, not a long column of boxes */
.cqf .cqg{display:flex;align-items:center;gap:8px;margin:14px 0 6px;font-weight:700;font-size:14px;color:var(--ink)}
.cqf .cqg .n{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);font-size:14px;font-weight:700}
.cqgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
.cq{display:flex;flex-direction:column;gap:2px;min-width:0}.cq.w{grid-column:1/-1}
.cq > b{font-size:14px;font-weight:600;color:var(--ink)}.cq .q{font-size:14px;color:var(--muted);line-height:1.35;min-height:16px}
.cq input:not([type=checkbox]):not([type=hidden]),.cq select{width:100%;box-sizing:border-box;margin-top:2px}.cq .cur{display:block}
.cqrep{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 2px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--accent-soft)}
.cqrep b{font-size:14px}.cqrep .q{font-size:14px;color:var(--ink2)}
dialog.drawer .cqsave{position:sticky;bottom:-24px;background:#fff;padding:10px 0 12px;margin-bottom:-12px;border-top:1px solid var(--line)}
@media(max-width:520px){.cqgrid{grid-template-columns:1fr}}
.mchoice{display:flex;flex-wrap:wrap;gap:6px}.mchoice .ckl{margin:0!important;border:1px solid var(--line);border-radius:999px;padding:3px 11px;font-size:14px;background:#fff;cursor:pointer;color:var(--ink2)}
.mchoice .ckl:has(input:checked){background:var(--accent-soft);border-color:#bce8f1;color:var(--accent-ink);font-weight:600}.mchoice .ckl input{position:absolute;opacity:0;pointer-events:none}
/* documents: type on the right, its files next to it – no empty middle */
.dlist .dtype{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);column-gap:16px;align-items:center}
.dtype > .dt-h{grid-column:1;grid-row:1 / span 40;flex-wrap:wrap;gap:4px 8px;align-self:start;padding-top:2px}.dtype > .dt-h .dt-n{flex:1 0 100%}
.dtype > .frow,.dtype > .rejr{grid-column:2}.dtype > .frow{padding:3px 0}
.dtype:not(:has(.frow))::after{content:"לא הועלה קובץ";grid-column:2;grid-row:1;color:var(--faint);font-size:14px}
.dtype.na:not(:has(.frow))::after{content:"לא רלוונטי"}
@media(max-width:700px){.dlist .dtype{display:block}.dtype:not(:has(.frow))::after{content:none}}
/* side panel: AI readers and document pages open next to the card */
dialog.panel{margin:0;inset:0 auto 0 0;height:100%;max-height:100%;width:min(1040px,96vw);border-radius:0 14px 14px 0;padding:0;overflow:hidden}
dialog.panel[open]{display:flex;flex-direction:column;animation:pslide .2s ease-out}@keyframes pslide{from{transform:translateX(-30px);opacity:.3}to{transform:none;opacity:1}}
.panel .ph2{display:flex;align-items:center;gap:8px;padding:12px 18px;border-bottom:1px solid var(--line);background:#fff;flex:none}.panel .ph2 .pt{flex:1;font-size:16px;font-weight:700;min-width:0}
.panel .pb{overflow:auto;padding:16px 18px 40px;flex:1;background:var(--bg)}.panel .pb .backl,.panel .pb h1{display:none}.panel .pb .paperm h1{display:block}.panel .pb .ph{margin-bottom:8px}
.pload{display:flex;gap:10px;align-items:center;color:var(--muted);padding:40px 0;justify-content:center}.pload i{width:16px;height:16px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

:root{
--bg:#ffffff;--card:#fff;--sunk:#f6f8fa;--hover:#f3f6f9;--bg2:#f6f8fa;
--ink:#333333;--ink2:#333333;--muted:#666666;--faint:#666666;
--line:#e3e8ef;--line2:#cdd5df;
--accent:#428bca;--accent-ink:#3071a9;--accent-soft:#d9edf7;--accent-2:#2563eb;
--good:#067647;--good-soft:#dcfae6;--warn:#b54708;--warn-soft:#fef0c7;--bad:#d9534f;--bad-soft:#ffe4e8;--hot:#e04f16;
--info:#175cd3;--info-soft:#dbeafe;--violet:#6941c6;--violet-soft:#f0ebff;
--radius:12px;--r-sm:8px;
--sh-card:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.04);
--sh-xs:0 1px 2px rgba(16,24,40,.05);--sh-pop:0 16px 40px -12px rgba(16,24,40,.25),0 4px 10px -4px rgba(16,24,40,.08)}
body{background:var(--bg);color:var(--ink);font-size:14px}
a{color:var(--accent)}a:hover{color:var(--accent-ink)}

/* ---- navigation frame: dark ---- */
.sidebar{width:232px;background:#0f2433;border-left:0;padding:14px 12px;color:#c7d3dd}
.sidebar .brand{color:#fff;padding:4px 8px 16px}.sidebar .brand small{color:#8aa0b2}
.sidebar .brand .mk{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#14a3b8,#428bca);font-size:14px}
.sidebar .grp{color:#6f8799;font-size:14px;font-weight:600;letter-spacing:.4px;padding:16px 10px 6px}
.sidebar a{color:#c7d3dd;padding:7px 10px;border-radius:8px;font-size:14px;border:0;margin:1px 0}
.sidebar a .ic{color:#8aa0b2}
.sidebar a:hover{background:rgba(255,255,255,.07);color:#fff}.sidebar a:hover .ic{color:#fff}
.sidebar a.on{background:rgba(20,163,184,.18);color:#fff;font-weight:600;box-shadow:inset -3px 0 0 #2cc5d9}.sidebar a.on .ic{color:#5ad6e6}
.sidebar a .n{color:#c7d3dd;background:rgba(255,255,255,.1);border-radius:99px;padding:0 7px;font-size:14px;line-height:19px}
.sidebar a .n.alert{background:#f04438;color:#fff}
.sidebar .me{border-top:1px solid rgba(255,255,255,.08)}
.topbar{background:#fff;border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(16,24,40,.02);padding:10px 24px;min-height:60px}
.search input{background:var(--sunk);border-color:var(--line);height:38px;border-radius:10px}.search input:focus{background:#fff}
.wrap{padding:20px 24px 90px}

/* ---- page header ---- */
.ph{margin:0 0 16px;align-items:center}.ph h1{font-size:22px;font-weight:700;letter-spacing:-.3px}.ph .sub{font-size:14px}
h1{font-weight:700}h2{font-size:15px;font-weight:700;color:var(--ink)}h3{font-size:14px;font-weight:600;color:var(--muted);letter-spacing:.2px}

/* ---- cards: one header style everywhere ---- */
.card{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--sh-card);padding:16px;margin-bottom:16px}
.card.flat{background:#f8fafc;border:1px solid var(--line);box-shadow:none}
.card > h2:first-child{display:flex;align-items:center;gap:8px;margin:-16px -16px 14px;padding:13px 16px;border-bottom:1px solid var(--line);font-size:15px;min-height:50px}
.card > h2:first-child > .act,.card > h2:first-child > .btn{margin-inline-start:auto}
.card > h2:first-child .muted{font-weight:500;font-size:14px}
.sec-h{padding:13px 16px;min-height:50px;border-bottom:1px solid var(--line)}.sec-h h2{font-size:15px}
.card.pad0 > .sec-h:first-child{border-radius:var(--radius) var(--radius) 0 0}

/* ---- tables ---- */
th{background:#f8fafc;color:var(--muted);font-weight:600;font-size:14px;letter-spacing:.2px;padding:10px 12px;border-bottom:1px solid var(--line)}
td{padding:11px 12px;border-bottom:1px solid #eef1f5}
tbody tr:hover td{background:#f8fafc}

/* ---- status: soft filled ---- */
.pill{border:0;border-radius:999px;padding:2px 10px;font-weight:600;font-size:14px;line-height:18px;background:#ffffff;color:var(--ink2)}
.pill:before{width:6px;height:6px}
.pill.good{background:var(--good-soft);color:var(--good)}.pill.bad{background:var(--bad-soft);color:var(--bad)}.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.plain{background:#ffffff;color:var(--ink2)}
.pill.hot{background:#fff1ea;color:var(--hot)}.pill.warm{background:#fff6e0;color:#b54708}.pill.lukewarm{background:#d9edf7;color:var(--accent-ink)}.pill.cold{background:#ffffff;color:var(--muted)}
.lvl{border:0;border-radius:6px;padding:1px 7px;font-weight:600;background:#ffffff}
.lvl.call{background:var(--info-soft);color:var(--info)}.lvl.document{background:var(--good-soft);color:var(--good)}.lvl.lender,.lvl.report{background:var(--violet-soft);color:var(--violet)}

/* ---- controls ---- */
input,select,textarea{border-color:var(--line2);border-radius:var(--r-sm);font-size:14px}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select{min-height:36px}
input:hover,select:hover,textarea:hover{border-color:#98a2b3}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(11,114,133,.15)}
label{font-size:14px;color:var(--ink2);font-weight:600}

/* ---- buttons: brand colour for the main action ---- */
.btn{height:36px;padding:0 14px;border-radius:var(--r-sm);font-weight:600;background:var(--accent);border-color:var(--accent);color:#fff}
.btn:hover{background:var(--accent-ink);border-color:var(--accent-ink);color:#fff}
.btn.sec{background:#fff;color:var(--ink2);border-color:var(--line2);box-shadow:var(--sh-xs)}.btn.sec:hover{background:var(--hover);color:var(--ink);border-color:#98a2b3}
.btn.ghost{color:var(--ink2)}.btn.ghost:hover{background:#ffffff;color:var(--ink)}
.btn.accent{background:var(--accent);border-color:var(--accent)}
.btn.good,.btn.call{background:#5cb85c;border-color:#5cb85c}.btn.good:hover,.btn.call:hover{background:#067647;border-color:#067647}
.btn.bad{background:#d92d20;border-color:#d92d20}
.btn.sm{height:30px;padding:0 10px;font-size:14px}.btn.sm.icon{width:30px}.btn.icon{width:36px}.btn.lg{height:42px;padding:0 18px}
.chip{height:28px;border-radius:999px;padding:0 12px;border-color:var(--line);font-weight:500}
.chip.on{background:var(--accent);border-color:var(--accent);color:#fff}.chip.on b,.chip.on .muted{color:#d6f1f5!important}
.seg{background:#ffffff;border:0;border-radius:10px;padding:3px}.seg a{padding:4px 12px;border-radius:8px;font-weight:600}.seg a.on{color:var(--accent-ink)}

/* ---- tabs ---- */
.tabs{border-bottom:1px solid var(--line);gap:4px}
.tabs a{padding:12px 14px;font-weight:600;color:var(--muted);border-bottom-width:2px}
.tabs a:hover{color:var(--ink)}.tabs a.on{color:var(--accent-ink);border-bottom-color:var(--accent)}
.tabs a .c{display:inline-block;min-width:20px;text-align:center;padding:0 6px;border-radius:99px;background:#ffffff;color:var(--muted);font-size:14px;font-weight:600;line-height:18px;margin-inline-start:6px}
.tabs a.on .c{background:var(--accent-soft);color:var(--accent-ink)}.tabs a .c.bad{background:var(--bad-soft);color:var(--bad)}

/* ---- lists, stats ---- */
.stats{border-radius:var(--radius);box-shadow:var(--sh-card);border-color:var(--line)}
.stats > div{padding:14px 18px}.stats .v{font-size:24px;font-weight:700}.stats .l{font-weight:500}
.qi{padding:12px 16px}.qi .nm{font-weight:700}
.kv{padding:9px 0;border-bottom:1px solid #eef1f5}
.empty{padding:22px 16px;font-size:14px}.empty b{font-size:14px}
.flash{border-radius:10px;border:0;padding:11px 14px}.flash.info{background:var(--info-soft);color:#1849a9}.flash.err{background:var(--bad-soft)}
.toast{border-radius:10px}
.tl .ev:before{border-color:var(--line2)}
.ev .body.box{background:#f6f8fa;border:1px solid #eef1f5;border-radius:10px}
.savebar{background:rgba(238,242,246,.94)}
.score i.on{background:var(--accent)}

/* =========================== the client strip =========================== */
.cb-who{padding:4px 12px 4px 14px;border-radius:12px}
.cb-who:hover,.cb-who.on{background:#f6f8fa}
.cb-av{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#14a3b8,#428bca);color:#fff;font-size:16px}
.cb-t b{font-size:15.5px}
.cb-acts{gap:6px}
.cb-acts .btn.sec{box-shadow:none}
.cb-acts .btn.ghost{color:var(--muted)}.cb-acts .btn.ghost:hover{color:var(--ink)}
.cb-acts .btn.ghost.on{background:var(--accent-soft);color:var(--accent-ink)}
.cb-jr i{height:4px}.cb-jr i.d{background:#7cc8d4}
@media(max-width:1440px){.cb-acts .btn{padding:0 8px}.topbar.has-ctx .search{flex-basis:150px}.cb-acts .cb-card:not(.on){display:none}}

/* =========================== the client card =========================== */
/* the path: the stages of the deal, Salesforce style */
.path{display:flex;margin:0 0 16px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--sh-card);padding:6px;gap:4px;overflow-x:auto}
.path .st{flex:1;min-width:84px;position:relative;display:flex;align-items:center;justify-content:center;gap:6px;height:36px;font-size:14px;font-weight:600;color:var(--muted);background:#ffffff;
  clip-path:polygon(100% 0,calc(100% - 0px) 50%,100% 100%,14px 100%,0 50%,14px 0);padding:0 18px 0 14px;white-space:nowrap}
.path .st:first-child{border-radius:0 8px 8px 0;clip-path:polygon(100% 0,100% 100%,14px 100%,0 50%,14px 0)}
.path .st:not(:first-child){clip-path:polygon(100% 0,calc(100% - 14px) 50%,100% 100%,14px 100%,0 50%,14px 0);margin-right:-10px}
.path .st:last-child{clip-path:polygon(100% 0,calc(100% - 14px) 50%,100% 100%,0 100%,0 0);border-radius:8px 0 0 8px}
.path .st.d{background:#cdeef2;color:var(--accent-ink)}.path .st.d:before{content:"✓";font-size:14px}
.path .st.c{background:var(--accent);color:#fff}
.path .st.x{background:var(--bad-soft);color:var(--bad)}
.c3{grid-template-columns:320px minmax(0,1fr) 390px;gap:16px}
.c3-cli,.c3-act{position:static;max-height:none;overflow:visible;padding:0}
.c3 .col > .card,.c3 .col > form.card,.c3 .col > details,.c3 .col > .flash{margin-bottom:16px}
.c3 .col > .card{padding:16px}
.c3 .col > .card > h2:first-child{font-size:14px}
/* the work column: tabs are the head of one big surface */
.c3-work > .tabs{position:static;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--sh-card);margin:0;padding:0 8px;min-height:50px;align-items:stretch}
.c3-work > .tabs a{display:flex;align-items:center}
.c3-work > [data-pane]{background:transparent;padding-top:16px}.c3-work > .tabs a{border-bottom-width:3px;margin-bottom:-1px}
/* snapshot rows */
.snap .r{padding:9px 0;font-size:14px;border-bottom:1px solid #eef1f5}.snap .r:hover{background:transparent}.snap .r:hover > span{color:var(--ink)}
.snap .r > b{font-size:14px;font-weight:700}.snap .r small{font-size:14px}
.snap .best{margin-top:12px;border-radius:10px;background:linear-gradient(135deg,#d9edf7,#f0f9fb);border:1px solid #b9e3ea;padding:11px 13px}
.snap .best b{font-size:15px}
.c3 .props .p{grid-template-columns:84px minmax(0,1fr);padding:7px 0;border-bottom:1px solid #eef1f5;align-items:center}.c3 .props .p:last-child{border-bottom:0}
.c3 .props .p > span:first-child{font-size:14px}
.c3 .props select{min-height:32px;height:32px}
/* next step */
.c3-act details.inline{margin:0 0 16px}
.c3-act .next{background:#fff;border:1px solid var(--line);box-shadow:var(--sh-card);border-radius:var(--radius);padding:14px 16px;margin:0}
.c3-act .next .ic{color:var(--accent)}.c3-act .next.late{background:#fff;border-color:#fecdd6;box-shadow:inset 3px 0 0 #f63d68, var(--sh-card)}.c3-act .next.late .ic{color:var(--bad)}
.c3-act .next .lbl{display:block;font-size:14px;font-weight:600;color:var(--muted)}.c3-act .next .what{font-size:15px;font-weight:700;color:var(--ink)}
.tlc .compose{padding:8px 10px!important;border:1px solid var(--line);border-radius:10px;margin:0 0 14px;background:#f8fafc}.compose textarea{background:transparent;min-height:40px}.tlc .compose:focus-within{background:#fff;border-color:var(--accent)}
.tlc .tlf .chip{height:26px;font-size:14px;padding:0 10px}
/* case management strip → a proper card */
.cm-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cm-g > *{min-width:0}.cm-g + *{margin-top:12px}
.cm-l{font-size:14px;font-weight:600;color:var(--muted);margin-bottom:4px}.cm-v{font-size:15px;font-weight:700;color:var(--ink)}
@media(max-width:700px){.cm-g{grid-template-columns:1fr}}
.c3 .empty,.c3-work .empty{padding:18px 12px}
/* data pane groups */
.pgrid{gap:16px}.pgrid > .card{padding:16px}
.pfr{padding:5px 0}.pfr > label{font-weight:500;color:var(--muted)}

/* a table right under a card header: no gap */
.card > h2:first-child + .tw,.card > h2:first-child + table{margin-top:-14px}
.card > h2:first-child + .tw:last-child,.card > h2:first-child + table:last-child{margin-bottom:-16px}
/* documents as a three-column list: type | files | status */
.dlist .dtype{grid-template-columns:minmax(160px,230px) minmax(0,1fr) auto;column-gap:18px;row-gap:4px;padding:12px 16px;align-items:center}
.dtype > .dt-h{display:contents}
.dtype > .dt-h > .dt-n{grid-column:1;grid-row:1;align-self:center}
.dtype > .dt-h > .pill{grid-column:3;grid-row:1;justify-self:end}
.dtype > .dt-h > form{grid-column:3;grid-row:2;justify-self:end}
.dtype > .frow,.dtype > .rejr{grid-column:2}
.dtype:not(:has(.frow))::after{grid-column:2;grid-row:1;align-self:center}
@media(max-width:700px){.dlist .dtype{display:block}.dtype > .dt-h{display:flex;flex-wrap:wrap;gap:6px}}
/* centred narrow pages (forms) */
.narrow{max-width:760px;margin:0 auto}
@media(max-width:1499px){.c3{grid-template-columns:340px minmax(0,1fr)}}
@media(max-width:1099px){.path{margin-bottom:12px;overflow:hidden}.path .st{min-width:0;font-size:0;padding:0 4px}.path .st.d:before{font-size:14px}.path .st.c{font-size:14px;min-width:84px;flex:none}.c3-work > .tabs{display:none}.c3-work > [data-pane]{padding-top:0}}
@media(max-width:900px){.sidebar{display:none}.topbar{min-height:0}}

/* debts table */
table.debts td{vertical-align:middle}table.debts tr.dim td{color:var(--muted)}table.debts tr.dim b{font-weight:500;color:var(--muted)}
table.debts tfoot td{background:var(--sunk);border-top:1px solid var(--line);padding:9px 16px;color:var(--ink2,#555555)}
.tg{font:inherit;font-size:14px;font-weight:600;height:26px;padding:0 10px;border-radius:13px;border:1px solid var(--line);background:#fff;color:var(--muted);cursor:pointer;white-space:nowrap}
.tg.on{background:var(--accent-soft,#e6f4f6);border-color:transparent;color:var(--accent)}.tg:hover{border-color:var(--accent)}
.flash.warn{background:var(--warn-soft,#fff7e6);border-color:#f5d9a8;color:#7a4b00}.flash.warn .btn{flex:none}
/* client header: slim system bar + header row (sticky) + tabs row */
.topbar.slim{min-height:46px;padding-top:6px;padding-bottom:6px}.topbar.slim .search input{height:32px}
.chead{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:46px;z-index:19;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.ch-row{display:flex;align-items:center;gap:14px;padding:9px 24px;min-height:58px}
.ch-who{display:flex;align-items:center;gap:10px;min-width:0;max-width:230px;color:inherit;flex:none}.ch-who:hover b{color:var(--accent)}
.ch-av{width:36px;height:36px;border-radius:10px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;flex:none}
.ch-t{display:flex;flex-direction:column;min-width:0;line-height:1.25}.ch-t b{font-size:15.5px;font-weight:700}.ch-t small{font-size:14px;color:var(--muted)}
.ch-st{display:flex;align-items:center;gap:8px;min-width:0;flex:none}
.ch-stage{font:inherit;font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 10px;border-radius:13px;border:0;background:var(--accent-soft);color:var(--accent-ink,#3071a9);white-space:nowrap;cursor:pointer}
.ch-stage svg{opacity:.6}.ch-stage.plain{background:var(--sunk);color:var(--muted)}.ch-stage.bad{background:var(--bad-soft,#fdecec);color:var(--bad)}.ch-stage.good{background:var(--good-soft);color:var(--good)}
.ch-deals{display:flex;gap:4px;min-width:0;overflow:hidden}
.ch-deals .dc{display:flex;flex-direction:column;line-height:1.15;padding:3px 9px;border-radius:8px;border:1px solid var(--line);font-size:14px;font-weight:600;color:var(--ink);white-space:normal;max-width:130px;overflow:visible;;overflow-wrap:anywhere}
.ch-deals .dc small{font-size:14px;font-weight:400;color:var(--muted)}.ch-deals .dc.on{border-color:var(--accent);background:var(--accent-soft)}.ch-deals .dc.off{opacity:.55}
.ch-facts{display:flex;flex:1;min-width:0;justify-content:center}
.ch-facts .f{font:inherit;background:none;border:0;border-inline-start:1px solid var(--line);padding:1px 14px;text-align:start;display:flex;flex-direction:column;line-height:1.3;min-width:0;max-width:210px;color:inherit;cursor:pointer}
.ch-facts .f:first-child{border-inline-start:0}.ch-facts .f:hover b{color:var(--accent)}
.ch-facts .f small{font-size:14px;color:var(--muted);font-weight:500}.ch-facts .f b{font-size:14px;font-weight:600;white-space:normal;overflow:visible;;overflow-wrap:anywhere}.ch-facts .f i{font-style:normal;font-size:14px;color:var(--muted);white-space:normal;overflow:visible;;overflow-wrap:anywhere}
.ch-acts{display:flex;align-items:center;gap:6px;flex:none}.ch-acts .menu .pop{left:0;right:auto;min-width:230px}.ch-acts .pop form{display:contents}.ch-acts .pop button{font:inherit;display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:0;background:none;border-radius:7px;text-align:start;cursor:pointer;color:var(--ink)}.ch-acts .pop button:hover{background:var(--hover)}
.ch-tabs{display:flex;align-items:center;gap:2px;padding:0 20px;background:#fff;border-bottom:1px solid var(--line)}
.ch-tabs a{padding:9px 14px;font-size:14px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}.ch-tabs a:hover{color:var(--ink)}.ch-tabs a.on{color:var(--accent);border-bottom-color:var(--accent)}
.ch-nav{margin-inline-start:auto;display:flex;align-items:center;gap:6px;font-size:14px;color:var(--muted)}.ch-nav a{padding:4px 10px;border:1px solid var(--line);border-radius:7px;font-weight:600;color:var(--ink);margin:0;font-size:14px}.ch-nav a:hover{border-color:var(--accent);color:var(--accent)}
.chead + .wrap{padding-top:0}.chead ~ .wrap > .ph .crumb{display:none}
.bell{position:relative}.bell .bn{position:absolute;top:-3px;inset-inline-start:-3px;min-width:16px;height:16px;border-radius:8px;background:var(--bad);color:#fff;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 4px}.bell .bn[hidden]{display:none}
.bell .pop{left:0;right:auto;width:330px;max-height:70vh;overflow:auto;padding:4px}.bell .pop a{display:flex;flex-direction:column;gap:1px;padding:8px 10px;border-radius:7px;color:var(--ink)}.bell .pop a:hover{background:var(--hover)}.bell .pop a small{color:var(--muted);font-size:14px}.bell .pop .bh{font-size:14px;font-weight:700;color:var(--muted);padding:8px 10px 2px}
@media(max-width:1500px){.ch-acts .btn .lb{display:none}.ch-acts .btn.call .lb{display:inline}.ch-facts .f{max-width:170px;padding:1px 10px}}
@media(max-width:1250px){.ch-deals{display:none}.ch-facts .f:nth-child(3){display:none}}
@media(max-width:1100px){.ch-facts .f:nth-child(2){display:none}.ch-row{padding:8px 14px;gap:10px}.ch-tabs{padding:0 8px}}
@media(max-width:900px){.chead{top:0;position:static}.ch-facts{display:none}.ch-st{display:none}.ch-who{max-width:none;flex:1}.ch-acts > .btn:not(.call){display:none}.ch-tabs{overflow-x:auto}.ch-nav{display:none}.ch-row{min-height:0}}
.whatnext .wn{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line);color:inherit}.whatnext h2 + .wn{border-top:0;padding-top:0}
.whatnext .wi{width:26px;height:26px;border-radius:7px;background:var(--sunk);color:var(--muted);display:flex;align-items:center;justify-content:center;flex:none;border:0;padding:0}
.whatnext button.wi.chk{cursor:pointer;border:1px solid var(--line);background:#fff}.whatnext button.wi.chk:hover{border-color:var(--good);color:var(--good)}
.whatnext .wb{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}.whatnext .wb b{font-size:14px;font-weight:600;overflow-wrap:anywhere}.whatnext .wb small{font-size:14px;color:var(--muted)}
.whatnext .wn.late .wi{background:var(--bad-soft,#fdecec);color:var(--bad)}.whatnext .wn.none .wb b{color:var(--muted);font-weight:500}
.ev .evx{float:left;display:flex;gap:2px;opacity:0;transition:opacity .12s}.ev:hover .evx,.ev:focus-within .evx{opacity:1}@media(hover:none){.ev .evx{opacity:1}}
.path button.st{font-family:inherit;border:0;cursor:pointer}.path button.st:hover{filter:brightness(.96)}
/* ---- quiet colours (plan 5.1–5.6): a strong colour only for an action, red only for something late or wrong ---- */
/* journey bar: lower, past steps in soft grey with a check, only the current step is coloured */
.path{padding:4px;margin-bottom:14px;box-shadow:none}.path .st{height:28px;font-size:14px;background:#f3f5f8;color:#666666;font-weight:500}
.path .st.d{background:#f3f5f8;color:#666666}.path .st.d:before{color:#666666}.path .st.c{background:var(--accent);color:#fff;font-weight:600}
.path.cold .st.c{background:#e4e9f0;color:#555555}.path.cancelled .st.c,.path.closed .st.c{background:#fdf1f3;color:var(--bad)}.path.done .st.c{background:#e7f6ec;color:var(--good)}
/* tags: much lighter backgrounds; "missing" is amber, red is kept for "replace" and for late */
.pill.good{background:#edfaf1;color:#067647}.pill.warn{background:#fff8e8;color:#93570a}.pill.bad{background:#fdf1f3;color:#b0103f}.pill.plain,.pill{background:#f1f4f7}
.pill.miss{background:#fff8e8;color:#93570a}
.lvl.call{background:#eef4fd;color:#2456a6}.lvl.document{background:#edfaf1;color:#067647}.lvl.lender,.lvl.report{background:#f4f1fd;color:#5b3fb0}
.tabs a .c.bad{background:#fff8e8;color:#93570a}.mtabs .c.bad{background:#fff8e8;color:#93570a}
/* a figure that was not collected yet is not a fault */
.snap .r .kmiss,.kmiss{color:#666666;font-weight:500;font-size:14px}.kmiss u{text-decoration:none;color:var(--accent);font-size:14px;margin-inline-start:4px}
/* system bar: one coloured button on the screen (the call). "new" is an outline, test mode is a dot */
.topbar > .menu > summary.btn{background:#fff;color:var(--ink);border-color:var(--line2,#d0d5dd)}.topbar > .menu > summary.btn:hover{border-color:var(--accent);color:var(--accent)}
.tdot{width:9px;height:9px;border-radius:50%;background:#f0ad4e;flex:none;box-shadow:0 0 0 3px #fff3dc;cursor:help}
/* sidebar counters: brand colour; red only when something in it is late */
.sidebar a .n.alert{background:rgba(255,255,255,.16);color:#fff}.sidebar a .n.late{background:#f04438;color:#fff}
/* pinned notes and message bars: white with a thin colour strip on the side */
.card.pinned{background:#fff;border-color:var(--line);border-inline-start:3px solid #f5c542}.card.pinned > h2:first-child{background:none}
.flash{background:#fff;border:1px solid var(--line);border-inline-start:3px solid var(--info);color:var(--ink);box-shadow:var(--sh-card)}
.flash.info{background:#fff;color:var(--ink)}.flash.err{background:#fff;border-inline-start-color:var(--bad)}.flash.warn{background:#fff;border-color:var(--line);border-inline-start-color:#f0ad4e;color:var(--ink)}
/* history: every dot is grey, the kind of event is a small grey icon next to its label; the filter stays on one line */
.tl .ev:before,.tl .ev.call:before,.tl .ev.message_in:before,.tl .ev.message_out:before,.tl .ev.agent:before,.tl .ev.status:before{border-color:#d0d5dd;background:#fff}
.tl .ev.agreement:before,.tl .ev.case:before{background:#d0d5dd;border-color:#d0d5dd}
.ev .meta .evi{display:inline-flex;vertical-align:-2px;color:#666666;margin-inline-end:4px}
.tlc .tlf{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.tlc .tlf .chip{flex:none}
/* the work column's tab row ends with the next action of the deal */
.tabs .tabs-act{margin-inline-start:auto;align-self:center;border:0!important;padding:0!important}.c3-work > .tabs{overflow-y:hidden}.tabs .tabs-act .btn{margin:0;color:#fff;border:1px solid var(--accent);padding:0 10px;height:28px}.tabs .tabs-act .btn.sec{color:var(--ink);border-color:var(--line2,#d0d5dd)}
@media(max-width:900px){.chead.on-card .ch-acts .call{display:none}}
@media(max-width:1099px){.path .st{font-size:0;min-width:0;padding:0 4px}.path .st.d:before{font-size:14px}.path .st.c{font-size:14px;min-width:84px;flex:none}}
/* the data tab: one column in a fixed order – no holes between cards of different heights */
.c3-work .pgrid{grid-template-columns:minmax(0,1fr)}
/* borrowers */
.bor{border-top:1px solid var(--line)}.bor:first-of-type{border-top:0}
.bor-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px 6px}.bor-h .who{display:flex;flex-direction:column;min-width:0}.bor-h .who b{font-weight:600}
.bor-i{display:grid;grid-template-columns:minmax(0,1fr) 96px 110px auto;gap:10px;align-items:center;padding:6px 16px 6px 12px;margin-inline-start:16px;border-inline-start:2px solid var(--line)}
.bor-i.none{display:block;padding:4px 12px 10px}.bor-i:last-of-type{margin-bottom:10px}
.pfr > label .q{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;background:var(--sunk);color:var(--muted);font-size:14px;font-weight:700;margin-inline-start:5px;cursor:help}
.pfr .rv{display:flex;align-items:center;gap:8px;min-height:32px}.pfr .pf-h{color:var(--muted)!important}
@media(max-width:700px){.bor-i{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}.bor-h{flex-wrap:wrap}}

/* ---- the floating assistant ---- */
.aib{position:fixed;left:20px;bottom:20px;z-index:60;width:52px;height:52px;border-radius:50%;border:0;background:var(--accent);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(11,114,133,.35),0 2px 4px rgba(16,24,40,.12);transition:transform .12s}
.aib:hover{transform:scale(1.06)}.aib.on{background:#0f2433}
#phone.show ~ .aib{bottom:190px}body:has(.aib) .toast{left:84px}
.aip{position:fixed;left:20px;bottom:84px;z-index:61;width:410px;max-width:calc(100vw - 24px);height:min(640px,calc(100vh - 110px));background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 50px rgba(16,24,40,.22);display:flex;flex-direction:column;overflow:hidden}
.aip[hidden]{display:none}
.aih{display:flex;align-items:center;gap:6px;padding:10px 12px 10px 8px;border-bottom:1px solid var(--line);background:var(--sunk)}
.aih .ait{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}.aih .ait b{font-size:15px}.aih .ait small{font-size:14px;color:var(--muted);white-space:normal;overflow:visible;;overflow-wrap:anywhere}
.aim{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:#fff}
.aib-m{max-width:88%;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.aib-m.out{align-self:flex-start;background:var(--accent);color:#fff;border-bottom-right-radius:4px}
.aib-m.in{align-self:flex-end;background:var(--sunk);color:var(--ink);border-bottom-left-radius:4px}
.aib-m.wait{color:var(--muted);font-style:italic}.aib-m.err{background:#fdf1f3;color:#b0103f}
.aib-m .btn{margin-top:6px}
.aib-m.act{max-width:100%;align-self:stretch;background:#fff;border:1px solid var(--accent);border-radius:12px;padding:10px 12px}
.aia-t{font-weight:600;font-size:14px;margin-bottom:6px}.aia{display:flex;gap:8px;align-items:flex-start;padding:5px 0;border-top:1px solid var(--line);font-size:14px;cursor:pointer}.aia input{margin-top:3px;flex:none}
.aia-d{font-size:14px;color:var(--muted);margin-top:6px}.aia-b{display:flex;gap:6px;margin-top:8px}
.aif{display:flex;gap:6px;align-items:flex-end;padding:10px;border-top:1px solid var(--line);background:#fff}.aif textarea{flex:1;min-width:0;resize:none;min-height:42px;max-height:140px;font-size:14px}
@media(max-width:900px){.aib{left:12px;bottom:calc(74px + env(safe-area-inset-bottom));width:46px;height:46px}body:has(.mbar) .aib{bottom:calc(138px + env(safe-area-inset-bottom))}
 .aip{left:0;right:0;top:0;bottom:0;width:auto;max-width:none;height:auto;border-radius:0;border:0;z-index:95}}
@media print{.aib,.aip{display:none!important}}
/* ---- top bar ---- */
.topbar{gap:10px;min-height:56px;padding:8px 20px}
.topbar .tb-gap{flex:1;min-width:6px}
.topbar .search{flex:0 1 300px;max-width:300px}.topbar.has-client .search{flex-basis:220px;max-width:220px}
.topbar .search input{height:34px}.topbar .search kbd{top:6px}
.tb-ctx{display:flex;align-items:center;gap:10px;min-width:0;flex:0 0 auto;max-width:100%}.topbar .search{min-width:44px}
.tb-ctx .ch-who{max-width:250px}.tb-ctx .ch-acts{margin-inline-start:4px}
#nextcall a{height:32px;padding:0 10px;gap:6px;border-radius:8px;border:1px solid var(--line2,#d0d5dd);font-weight:600;color:var(--ink);white-space:nowrap}
#nextcall a:hover{border-color:var(--accent);color:var(--accent)}#nextcall .nl{color:var(--muted);font-weight:500}#nextcall .nw{color:var(--muted);font-weight:400}#nextcall b{max-width:130px;overflow:visible;;overflow-wrap:anywhere}
.tb-deals summary.tb-deal{list-style:none;display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:13px;border:1px solid var(--line2,#d0d5dd);background:#fff;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;max-width:230px;overflow:hidden}
.tb-deals summary.tb-deal::-webkit-details-marker{display:none}.tb-deals summary.tb-deal small{font-weight:500;color:var(--muted)}.tb-deals summary.tb-deal svg{opacity:.55;flex:none}.tb-deals summary.tb-deal:hover{border-color:var(--accent)}
.tb-deals .pop{min-width:270px;right:0;left:auto}.tb-deals .pop .ph-l{font-size:14px;font-weight:700;color:var(--muted);padding:6px 10px 4px}
.tb-deals .pop a span{display:flex;flex-direction:column;line-height:1.3}.tb-deals .pop a small{font-size:14px;color:var(--muted);font-weight:400}.tb-deals .pop a.on{background:var(--accent-soft)}
.tb-deals .pop button{font:inherit;display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:0;border-top:1px solid var(--line);background:none;text-align:start;cursor:pointer;color:var(--accent);font-weight:600;margin-top:4px}
/* ---- under the bar: journey, then the client's screens ---- */
.csub{background:#fff;border-bottom:1px solid var(--line)}
.csub .path{margin:0;border:0;border-radius:0;box-shadow:none;background:none;padding:8px 20px 2px}
.csub .ch-tabs{border-bottom:0;padding:0 14px}
.csub ~ .wrap{padding-top:16px}
/* tabs + figures + list navigation share one band */
.csub-row{display:flex;align-items:stretch;gap:4px 10px;padding:0 14px;flex-wrap:wrap}
.csub-row .ch-tabs{padding:0;border:0;flex:none}.csub-row .ch-nav{align-self:center;margin-inline-start:0}
.kline{display:flex;align-items:stretch;margin-inline-start:auto;min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:none}
.kline .kf{display:flex;flex-direction:column;justify-content:center;padding:3px 13px;border-inline-start:1px solid var(--line);line-height:1.3;color:inherit;white-space:nowrap;min-width:0}
.kline .kf:first-child{border-inline-start:0}.kline a.kf:hover b{color:var(--accent)}
.kline .kf small{font-size:14px;color:var(--muted);font-weight:500}.kline .kf b{font-size:14px;font-weight:700}
.kline .kf b i{font-style:normal;font-size:14px;font-weight:500;color:var(--muted)}.kline .kf b i.late{color:var(--bad)}
.kline .kf .kno{color:#b3bcc8;font-weight:500}.kline .kf.good b{color:var(--good)}.kline .kf.warn b{color:#b54708}.kline .kf.deal b{color:var(--accent-ink,#3071a9)}
/* the stage tag doubles as the switcher between the client's cases and inquiries */
.tb-deals summary.ch-stage{list-style:none}.tb-deals summary.ch-stage::-webkit-details-marker{display:none}.tb-deals summary.ch-stage small{font-weight:500;opacity:.75}
.dealsc .dl .dh{display:flex;align-items:center;justify-content:space-between;gap:8px}.dealsc .dl .dh b{min-width:0}.dealsc .dl .dh .pill{flex:none;font-size:14px;padding:1px 8px}
.dealsc .dl small.clip1{font-style:italic}.dealsc h2{white-space:nowrap}
.ph.sth{margin:0 2px 12px;align-items:center;gap:8px 12px}.ph.sth h1{font-size:19px;margin:0}.ph.sth .sub{margin-top:2px;font-size:14px}.ph.sth .sub b{font-weight:700;color:var(--ink)}.ph.sth .sub b.good{color:var(--good)}.sth-a{gap:6px;flex-wrap:wrap}
@media(max-width:700px){.ph.sth{flex-direction:column;align-items:stretch}.sth-a .btn{flex:1 1 auto}}
.intro2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;margin-bottom:12px;align-items:start}.intro2 > .card{margin:0}.intro2 .assume{margin-top:8px;background:#fffaf0;border:1px solid #f5d48a;border-radius:10px;padding:8px 12px;font-size:14px}.intro2 .assume b{font-weight:600}.intro2 .assume ul{margin:4px 0 0;padding-inline-start:18px}
.needs{display:flex;flex-direction:column}.needs .nd{display:flex;justify-content:space-between;gap:10px;align-items:center;border:0;border-bottom:1px solid var(--line);background:none;padding:7px 2px;font:inherit;color:inherit;cursor:pointer;text-align:start}.needs .nd:last-child{border-bottom:0}.needs .nd:hover{background:var(--accent-soft)}.needs .nd em{font-style:normal;color:var(--accent);font-size:14px;font-weight:600;white-space:nowrap}
@media(max-width:1100px){.intro2{grid-template-columns:1fr}}
/* ---- the figures strip ---- */
.kstrip{display:flex;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:14px;box-shadow:var(--sh-card)}
.kstrip .k{flex:1 1 150px;padding:11px 16px 12px;display:flex;flex-direction:column;gap:1px;min-width:0;color:inherit;border-inline-end:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 0 -1px;margin-inline-end:-1px}
.kstrip a.k:hover{background:var(--hover)}
.kstrip .k small{font-size:14px;color:var(--muted);font-weight:500;white-space:normal;overflow:visible;;overflow-wrap:anywhere}
.kstrip .k b{font-size:17px;font-weight:700;letter-spacing:-.2px;white-space:normal;overflow:visible;line-height:1.4;overflow-wrap:anywhere}
.kstrip .k i{font-style:normal;font-size:14px;color:var(--muted);white-space:normal;overflow:visible;min-height:18px;overflow-wrap:anywhere}
.kstrip .k .kno{color:#b3bcc8;font-weight:500}.kstrip .k.good b{color:var(--good)}.kstrip .k.warn b{color:#b54708}
.kstrip .k.deal{flex:2.2 1 320px;background:#f3fafb}.kstrip a.k.deal:hover{background:#e9f6f8}.kstrip .k.deal b .kr{font-size:14px;font-weight:500;color:var(--muted)}
.kfoot{margin:-6px 4px 14px;font-size:14px;color:var(--muted);display:flex;gap:6px 18px;flex-wrap:wrap}.kfoot > *{margin:0!important}
/* ---- client column ---- */
.props .p select{height:30px;min-height:30px;padding:0 8px;max-width:180px;font-size:14px}.props .p form{margin:0}
.lnk{font:inherit;background:none;border:0;padding:0;color:var(--accent);cursor:pointer}.lnk:hover{text-decoration:underline}
.dealsc .dl{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;margin-top:6px;color:inherit}.dealsc h2 + .dl{margin-top:0}
.dealsc .dl:hover{border-color:var(--accent)}.dealsc .dl.on{border-color:var(--accent);background:var(--accent-soft)}.dealsc .dl.off b{color:var(--muted);font-weight:500}
.dealsc .dl .dt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}.dealsc .dl b{font-weight:600;overflow:visible;white-space:normal;overflow-wrap:anywhere}.dealsc .dl small{font-size:14px;color:var(--muted)}
/* ---- case tab ---- */
.cmeta{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--ink2,#555555);padding:0 4px;margin:0 0 10px}
.stepn{display:inline-flex;width:20px;height:20px;border-radius:50%;background:var(--sunk);border:1px solid var(--line);color:var(--muted);font-size:14px;font-weight:700;align-items:center;justify-content:center;margin-inline-end:8px;vertical-align:1px}
.c3-work .card.pad0 > .sec-h:only-child{border-bottom:0;border-radius:var(--radius)}
/* ---- widths ---- */
@media(max-width:1560px){.tb-ctx .btn .lb{display:none}.tb-ctx .btn.call .lb{display:inline}}
@media(max-width:1300px){#nextcall b,#nextcall .nw{display:none}.topbar.has-client #nextcall{display:none}.topbar.has-client .search{flex-basis:150px}.tb-ctx .ch-who{max-width:170px}.tb-deals summary.tb-deal{max-width:130px}.topbar{gap:8px;padding:8px 14px}.tb-ctx{gap:8px}}
@media(max-width:1120px){.tb-deals{display:none}.topbar.has-client .search{flex-basis:130px}.topbar .search kbd{display:none}}
@media(max-width:900px){
 .topbar{flex-wrap:wrap;padding:8px 12px;min-height:0}.topbar .tb-gap{display:none}.topbar .search,.topbar.has-client .search{flex:1;max-width:none;order:1}.topbar .bell{order:2}.topbar > .menu:last-of-type{order:3}
 .tb-ctx{order:9;flex-basis:100%;padding-top:8px;margin-top:2px;border-top:1px solid var(--line)}.tb-ctx .ch-who{max-width:none;flex:1}.tb-ctx .ch-stage,.tb-ctx .tb-deals{display:none}
 .tb-ctx .ch-acts > .btn:not(.call){display:none}.tb-ctx.on-card .ch-acts .call{display:none}
 .csub .path{padding:8px 12px 2px}.csub-row{padding:0 6px}.csub-row .ch-tabs{overflow-x:auto;flex:1 1 100%}.kline{flex:1 1 100%;margin:0;border-top:1px solid var(--line);padding:4px 0}
 .kstrip{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.kstrip .k{flex:0 0 150px}.kstrip .k.deal{flex:0 0 280px}
 .tb-ctx{flex:1 1 100%}
}

.csub-row{gap:0 4px;align-items:stretch;flex-wrap:nowrap}.c3-work > [data-pane]{padding-top:0}
.ch-tabs{gap:1px;align-items:stretch}
.ch-tabs a{display:flex;align-items:center;gap:6px;padding:0 12px;min-height:44px;font-size:14px;font-weight:600;color:#555555;border-bottom:3px solid transparent;margin:0;border-radius:8px 8px 0 0;position:relative}
.ch-tabs a:hover{color:var(--ink);background:#f6f8fa}
.ch-tabs a.on{color:var(--accent-ink,#3071a9);background:var(--accent-soft);border-bottom-color:var(--accent);font-weight:700}
.ch-tabs .ct{display:none}.ch-tabs .tsep{width:1px;background:var(--line2,#d0d5dd);margin:10px 7px;flex:none}
/* the deal's work screens come in the order of the work: a faint arrow between them says so */
.ch-tabs a.wf + a.wf{margin-inline-start:12px}.ch-tabs a.wf + a.wf:before{content:"";position:absolute;inset-inline-start:-10px;top:50%;width:6px;height:6px;border-left:1.5px solid #c4cbd5;border-bottom:1.5px solid #c4cbd5;transform:translateY(-50%) rotate(45deg)}
.ch-tabs .tk{display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;line-height:18px;border-radius:99px;padding:0 7px;white-space:nowrap}
.ch-tabs .tk.ok{width:18px;height:18px;padding:0;background:#e7f6ec;color:var(--good)}
.ch-tabs .tk.miss{background:#fff4e0;color:#93570a}.ch-tabs .tk.wait{background:#ffffff;color:#555555}
.kline{margin-inline-start:8px;flex:0 1 auto}.kline .kf{padding:3px 11px;flex:none}
.kline .kf:first-child{border-inline-start:1px solid var(--line)}
.csub-gap{flex:1 1 0;min-width:0}
.csub-row .ch-nav{flex:none;gap:2px;white-space:nowrap;margin-inline-end:6px}.ch-nav .ar{padding:0;width:26px;height:28px;display:flex;align-items:center;justify-content:center;font-size:17px;line-height:1}.ch-nav .ar.off{color:#c4cbd5}.ch-nav a.cnt{border:0;padding:0 4px;color:var(--muted);font-weight:500}.ch-nav a.cnt:hover{color:var(--accent)}
.wnb{display:flex;align-items:stretch;gap:6px;flex:0 8 auto;min-width:230px;padding:5px 0}
.wnx{display:flex;align-items:center;gap:8px;background:#f6f8fa;border:1px solid var(--line);border-radius:9px;padding:2px 12px 2px 14px;min-width:0;max-width:360px;cursor:pointer;font:inherit;color:inherit;text-align:start}
.wnx:hover{border-color:var(--accent)}.wnx.still{cursor:default}.wnx.still:hover{border-color:var(--line)}
.wnx .wi{color:var(--accent);display:flex;flex:none}.wnx .wt{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.wnx small{font-size:14px;color:var(--muted);font-weight:500;white-space:nowrap}.wnx small i{font-style:normal}
.wnx b{font-size:14px;font-weight:700;white-space:normal;overflow:visible;;overflow-wrap:anywhere}
.wnx.late{background:#fff5f6;border-color:#fecdd6}.wnx.late .wi{color:var(--bad)}.wnx.late small i{color:var(--bad);font-weight:700}
.wnx.none b{color:var(--muted);font-weight:500}
.wnd{position:relative;display:flex}
.wnd > summary{list-style:none;display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:9px;padding:0 11px;cursor:pointer;font-size:14px;font-weight:600;color:var(--ink);background:#fff;white-space:nowrap}
.wnd > summary::-webkit-details-marker{display:none}.wnd[open] > summary,.wnd > summary:hover{border-color:var(--accent);color:var(--accent)}
.wnd > summary b{min-width:20px;text-align:center;padding:0 6px;border-radius:99px;background:var(--accent-soft);color:var(--accent-ink);font-size:14px;line-height:18px}
.wnd > summary.late b{background:var(--bad-soft);color:var(--bad)}
.wnpop{position:absolute;left:0;top:calc(100% + 2px);width:390px;max-width:calc(100vw - 24px);background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--sh-pop);padding:12px 14px 10px;z-index:40;cursor:default}
.wnph{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.wnph b{font-size:14px}
.wnph + .wn{border-top:0;padding-top:0}.wnpop .wndone{margin-top:6px;border-top:1px solid var(--line);padding-top:8px}
.sc{display:inline-flex;align-items:center;gap:5px;font-size:14px;color:var(--muted);margin-inline-end:10px}.sc b{font-weight:500;color:var(--ink2)}
/* the people of the deal (the client and the other borrowers) – first card of the client's column, on every screen */
.ppl .pp{border-top:1px solid var(--line);padding:10px 0 4px}.ppl h2 + .pp,.ppl .row + .pp{border-top:0;padding-top:0}
.pp-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:2px}.pp-h > span{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.pp-h b{font-size:15px;font-weight:700;overflow-wrap:anywhere}.pp-h small{font-size:14px;color:var(--muted)}
.c3 .ppl .props .p{padding:4px 0;border-bottom:0}.c3 .ppl .props .p b{font-weight:600}
.c3 .ppl .pp-care{border-top:1px solid var(--line);margin-top:6px;padding-top:6px}.c3 .ppl .pp-care .p{padding:5px 0}.c3 .ppl .pp-care .p b{font-weight:500}
.lnk.bad-t{color:var(--bad)}
/* activity: shared by the card's left column and the drawer next to the deal screens */
.tlf{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px}.tl-dh{font-size:14px;font-weight:600;color:var(--muted);margin:4px 0 8px}.tl-d + .tl-d{margin-top:6px}
.ev .pinb{float:left;font-size:14px;opacity:.55;background:none;border:0;cursor:pointer;color:var(--muted)}.ev:hover .pinb{opacity:1}
.pinned{border-color:#fde7b0;background:#fffcf2}.pinned .ev{padding-bottom:8px}
dialog.drawer{margin:0 0 0 auto;inset:0 0 0 auto;height:100%;max-height:100%;width:min(560px,100vw);border-radius:0;padding:16px 18px 24px;overflow:auto}
dialog.drawer.dact{width:min(460px,100vw);background:var(--bg);margin:0 auto 0 0;inset:0 auto 0 0}dialog.drawer.dact .card{padding:14px 16px;margin-bottom:12px}dialog.drawer.dact .card > h2{display:none}
.evgrp{margin:0 0 10px;padding-inline-start:0}.evgrp > summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:14px;color:var(--muted);padding:6px 10px;border:1px dashed var(--line2,#d0d5dd);border-radius:8px;background:#f9f9f9}
.evgrp > summary::-webkit-details-marker{display:none}.evgrp > summary b{color:var(--ink2,#333333);font-weight:600}.evgrp > summary .more{margin-inline-start:auto;color:var(--accent);font-weight:600}
.evgrp[open] > summary{margin-bottom:10px}.evgrp[open] > summary .more{display:none}.evgrp > summary:hover{border-color:var(--accent)}
.wnt{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:9px;padding:0 11px;cursor:pointer;font:inherit;font-size:14px;font-weight:600;color:var(--ink);background:#fff;white-space:nowrap}
.csub-row > .act-b{align-self:center;height:38px;margin-inline-start:2px}.wnt:hover{border-color:var(--accent);color:var(--accent)}
/* the data tab: parts in the order of a conversation, a small jump row on top, typed fields right under the table they belong to */
.secnav{position:sticky;top:57px;z-index:6;display:flex;gap:6px;flex-wrap:wrap;background:var(--bg);padding:0 0 10px;margin:0}
.secnav button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px solid var(--line);border-radius:99px;background:#fff;font:inherit;font-size:14px;font-weight:600;color:#555555;cursor:pointer}
.secnav button:hover{border-color:var(--accent);color:var(--accent)}.secnav .tk{font-size:14px;font-weight:600;line-height:18px;border-radius:99px;padding:0 7px;background:#ffffff;color:#555555}
.c3-work [id^=sec-]{scroll-margin-top:104px}
.sect{margin-bottom:16px}.sect > .card{margin-bottom:0!important}.sect > .card:not(:last-child){border-bottom-left-radius:0;border-bottom-right-radius:0}
.sect > .pg-join{border-top:0;border-top-left-radius:0;border-top-right-radius:0;padding:12px 16px 14px!important;background:#fbfcfd}
.pfs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px;align-items:start}.pfs > .pfr{min-width:0}
@media(max-width:1699px){.pfs{grid-template-columns:minmax(0,1fr)}}
/* the deal screens (planning, memo, agreement, document readers): the client's column stays, the screen takes the place of the card's middle and left */
.cf-main{grid-area:work;min-width:0}
.cf-main > .ph{margin:0 2px 12px;align-items:center;min-height:30px;gap:8px 12px}
.cf-main > .ph > div:first-child{display:flex;align-items:baseline;gap:2px 10px;flex-wrap:wrap;min-width:0;flex:1 1 300px}
.cf-main > .ph .crumb,.cf-main > .ph .backl{display:none}.cf-main > .ph h1{font-size:15px;font-weight:700;letter-spacing:0;gap:8px}.cf-main > .ph .sub{font-size:14px;margin:0}
.cf-main > .ph .btn{height:30px;padding:0 11px;font-size:14px}
.cf-main > .flash{margin-bottom:16px}
@media(max-width:1779px){.csub-row{flex-wrap:wrap}.kline{order:9;flex:1 1 100%;margin:0;border-top:1px solid var(--line);padding:3px 0}.kline .kf:first-child{border-inline-start:0}}
@media(max-width:1099px){.csub-row > .act-b{display:none}.secnav{position:static}.ch-tabs .pt,.ch-tabs .tsep{display:none}.ch-tabs .ct{display:flex}.ch-tabs a{min-height:40px}.wnb{flex:1 1 100%;padding:4px 6px 6px}.wnx{flex:1 1 auto;max-width:none}.wnpop{left:0}}

/* ---- round 21: one path. The five steps sit in the top bar, the numbers of the deal in the client's column, the agent and the history in the left column ---- */
.s5{display:flex;align-items:stretch;gap:3px;flex:1 1 auto;min-width:0;margin-inline-start:6px}
.s5i{flex:1 1 0;min-width:0;max-width:200px;display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:10px;padding:4px 9px;background:#fff;color:inherit;line-height:1.2;min-height:38px}
.s5i .n{width:22px;height:22px;border-radius:50%;background:var(--sunk);color:var(--muted);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex:none}
.s5i .tx{min-width:0;display:flex;flex-direction:column}.s5i b{font-size:14px;font-weight:600;white-space:nowrap}
.s5i small{font-size:14px;color:var(--muted);white-space:normal;overflow:visible;;overflow-wrap:anywhere}
.s5i.is-done .n{background:#e7f6ec;color:#5cb85c}.s5i.is-cur .n{background:var(--accent);color:#fff}.s5i.is-cur b{color:var(--accent-ink)}
.s5i.is-later{opacity:.72}.s5i.off{opacity:.45;cursor:default}a.s5i:hover{border-color:var(--accent);opacity:1}
.s5i.on{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 2px rgba(11,114,133,.13);opacity:1}
.s5a{align-self:center;color:#b3bcc8;font-style:normal;font-size:14px;flex:none}
.s5.cold .s5i.is-cur .n{background:#98a2b3}.s5.closed .s5i.is-cur .n,.s5.cancelled .s5i.is-cur .n{background:var(--bad)}
.topbar.has-client .tb-gap{display:none}.topbar.has-client .ch-nav{margin-inline-start:2px;flex:none}
.kcard .kline{display:block;margin:0;overflow:visible;max-width:none;border-top:0;padding:0}
.kcard .kline .kf{flex-direction:row;justify-content:space-between;align-items:baseline;gap:10px;padding:5px 0;border:0;border-bottom:1px solid var(--line);white-space:normal}
.kcard .kline .kf:last-child{border-bottom:0}.kcard .kline .kf small{font-size:14px;font-weight:400}.kcard .kline .kf b{font-size:14px;font-weight:600;text-align:left}
.c3-ai{display:flex;flex-direction:column;gap:10px;overflow:hidden;height:calc(100vh - 88px)}
.c3-ai .wnb{flex:none;padding:0;min-width:0;position:relative}.c3-ai .wnx{flex:1 1 auto;max-width:none;min-height:44px}
.c3-ai .wnd{position:static}.c3-ai .wnd[open] > .wnpop{left:0;right:0;width:auto;max-width:none}
.aitabs{display:flex;flex:none;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.aitabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 0;border:0;border-bottom:2px solid transparent;background:none;font:inherit;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer}
.aitabs button.on{color:var(--accent-ink);border-bottom-color:var(--accent);background:var(--accent-soft)}
.aidock{flex:1 1 auto;min-height:0;display:flex}.aidock[hidden],.aihist[hidden]{display:none}
.aihist{flex:1 1 auto;min-height:0;overflow:auto;scrollbar-width:thin;padding-bottom:8px}
.aip.dock{position:static;width:auto;max-width:none;height:auto;flex:1 1 auto;min-height:0;box-shadow:none;border-radius:12px;z-index:auto}
.aip.dock #aix{display:none}body.aidocked .aib{display:none}body.aidocked .toast{left:24px}
.cframe{grid-template-columns:300px minmax(0,1fr) 380px;grid-template-areas:"cli work act"}
/* the top bar of a client: the steps need the room, so the search folds to an icon (it opens when focused) and "next in line" is left to the queue arrows */
.topbar.has-client #nextcall{display:none}.topbar.has-client .tb-ctx .btn .lb{display:none}.topbar.has-client .tb-ctx .btn.call .lb{display:inline}
.topbar.has-client .tb-ctx .ch-who{max-width:200px}
.topbar.has-client .search{flex:0 0 40px;max-width:40px;min-width:40px}.topbar.has-client .search kbd{display:none}
.topbar.has-client .search input{padding:0;color:transparent;cursor:pointer}.topbar.has-client .search input::placeholder{color:transparent}
.topbar.has-client .search:focus-within{position:absolute;left:130px;top:9px;width:340px;max-width:340px;z-index:6}
.topbar.has-client .search:focus-within input{padding:7px 34px 7px 12px;color:inherit;cursor:text;background:#fff}.topbar.has-client .search:focus-within input::placeholder{color:var(--faint)}
.only-narrow{display:none!important}
@media(max-width:1839px){.topbar.has-client .tb-ctx > .ch-stage,.topbar.has-client .tb-ctx > .tb-deals{display:none}.topbar.has-client .ch-acts > .btn:not(.call):not([data-open=dwa]){display:none}.only-narrow{display:flex!important}.topbar.has-client > .menu:last-of-type .hide-m{display:none}}
@media(max-width:1499px){.topbar.has-client{flex-wrap:wrap}.topbar.has-client .s5{order:30;flex:1 1 100%;margin:2px 0 0}.s5i{max-width:none}}
@media(max-width:1499px){.cframe{display:grid;grid-template-columns:330px minmax(0,1fr);grid-template-areas:"cli work" "act work";grid-template-rows:auto 1fr}.cframe > .c3-cli{display:block}
 .c3-ai{height:auto;overflow:visible}.aidock{height:560px}.aihist{overflow:visible}}
@media(max-width:1099px){.cframe{display:block}.cframe > .c3-cli{display:none}.aitabs,.aidock{display:none}.c3-ai{gap:8px}
 .topbar.has-client .s5{overflow-x:auto;scrollbar-width:none;gap:2px}.s5i{flex:0 0 auto;padding:3px 8px;min-height:34px}.s5i small{display:none}.s5a{display:none}}

/* ---- round 26: the screens as in the approved sketch – a quiet top bar (name, call, WhatsApp, the steps, search), a short client card with three doors, summary boxes in the intro ---- */
.wnd:not([open]) > .wnpop{display:none}
/* the deal screen: the tracks read like the table of the sketch (one header row, quiet fields that show their frame when touched) */
#df .trk{grid-template-columns:1.25fr 1.25fr 1.05fr .8fr .8fr 1.1fr;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:6px 30px 2px 4px;background:none}
#df .trk ~ .trk .tf > span:first-child{display:none}#df .trk .tf > span:first-child{font-size:14px;font-weight:600;color:var(--muted);padding-bottom:4px;border-bottom:1px solid var(--line);margin-bottom:6px}
#df .trk input,#df .trk select{border-color:transparent;background-color:transparent;font-weight:600;box-shadow:none}#df .trk input:hover,#df .trk select:hover,#df .trk input:focus,#df .trk select:focus{border-color:var(--line2,#d0d5dd);background-color:#fff}
#df .trk input:disabled{background:transparent;opacity:.35}#df .trk .x{top:auto;bottom:22px}#df .dtot{padding:10px 4px 0}
@media(max-width:900px){#df .trk{grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;padding:10px 34px 4px 12px}#df .trk ~ .trk .tf > span:first-child{display:block}#df .trk input,#df .trk select{border-color:var(--line2,#d0d5dd);background-color:#fff}}
.ph.sth > div:first-child{display:block;min-width:0}.ibx.g2 .ir b{white-space:nowrap;overflow-wrap:normal;flex:none}.ibx.g2 .ir > span{overflow-wrap:anywhere}
.ph.sth h1,.cf-main > .ph.sth h1{font-size:22px;font-weight:800;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ph.sth h1 .pill{font-size:14px;font-weight:600}.ar input.pc{flex:none;width:70px}.cf-main > .ph.sth{align-items:flex-start}
.topbar.has-client .tb-ctx .btn .lb{display:inline}.topbar.has-client .tb-ctx > .ch-stage,.topbar.has-client .tb-ctx > .tb-deals{display:none}
.topbar.has-client > details.menu:not(.bell){display:none}.topbar.has-client .tdot{display:none}
.topbar.has-client .search{flex:0 0 150px;max-width:150px;min-width:110px}.topbar.has-client .search kbd{display:none}
.topbar.has-client .search input{padding:7px 32px 7px 10px;color:inherit;cursor:text}.topbar.has-client .search input::placeholder{color:var(--faint)}
.topbar.has-client .tb-ctx .ch-who{max-width:230px}.topbar.has-client .tb-ctx .ch-who small{white-space:normal;overflow:visible;max-width:180px;display:block;overflow-wrap:anywhere}
.s5all{white-space:nowrap;margin-inline-start:6px}
.ppl2 h2{margin-bottom:6px}.pp2{padding:2px 0 8px;border-bottom:1px solid var(--line);margin-bottom:8px}.pp2:last-of-type{border-bottom:0;margin-bottom:0}
.pp2-n{display:block;width:100%;text-align:start;border:0;background:none;padding:2px 0 6px;font:inherit;color:inherit;cursor:pointer}.pp2-n b{display:block;font-size:15.5px;font-weight:700}.pp2-n small{display:block;color:var(--muted);font-size:14px}.pp2-n:hover b{color:var(--accent)}
.p2{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-top:1px solid var(--line);font-size:14px}.p2 > span{color:var(--muted)}.p2 b{font-weight:700;min-width:0}.p2 b a{color:inherit}
.pp2-add{display:inline-block;margin-top:4px;font-weight:600;color:var(--muted)}.lnk.miss{color:#b45309;font-weight:600}
.card.lnks{padding-top:6px;padding-bottom:6px}.lnks .lr{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:9px 0;border:0;border-bottom:1px solid var(--line);background:none;font:inherit;color:inherit;cursor:pointer;text-align:start}
.lnks .lr:last-child{border-bottom:0}.lnks .lr b{font-weight:700;font-size:14px}.lnks .lr span{color:var(--muted);font-size:14px}.lnks .lr:hover b{color:var(--accent)}
dialog.drawer.dleft.dwide{width:min(980px,96vw);padding:0 18px 18px}dialog.drawer.dwide > .dlg-h{position:sticky;top:0;background:var(--bg,#ffffff);z-index:3;margin:0 -18px 12px;padding:12px 18px;border-bottom:1px solid var(--line)}dialog.drawer.dwide{background:var(--bg,#ffffff)}
.fup{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 14px;margin:0 0 12px;font-size:14px}.fup > span{color:var(--muted)}.fup .fup-n{color:var(--ink);font-weight:700}.fup .fup-n.late{color:var(--bad)}
.ibx{display:grid;gap:12px;margin-bottom:12px;align-items:stretch}.ibx.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.ibx.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.ibx > .card{margin:0}
.ibx h3{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 0 6px;font-size:14px;font-weight:700;color:var(--muted)}.ibx h3 b{color:var(--ink);font-size:15px}
.ir{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}.ir:last-child{border-bottom:0}.ir > span{color:var(--muted);min-width:0}.ir b{font-weight:700;text-align:end;min-width:0;overflow-wrap:anywhere}
.ibx .needs .nd{padding:7px 0;font-size:14px}.ibx .needs .nd span{font-weight:700}.ibx .needs .nd em{color:var(--muted);font-weight:500}
.dgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:10px 0}.dg{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}.dg b{font-weight:700;white-space:nowrap}.dg b.good{color:var(--good)}.dg b.miss{color:#b45309}
.ddrop{margin:0}.ddrop label{display:block;border:2px dashed #9fd0d8;border-radius:12px;padding:14px;text-align:center;cursor:pointer;background:#f4f8fc;margin:0}.ddrop label b{display:block;color:var(--accent);font-size:15px}.ddrop label small{color:var(--muted)}.ddrop.drag label,.ddrop label:hover{background:var(--accent-soft)}
.c3-ai .wnb.wn2{display:block;background:#fff5f6;border:1px solid #fbd0d8;border-radius:14px;padding:10px 12px 6px}.c3-ai .wnb.wn2 .wnx{display:flex;width:100%;border:0;background:none;padding:0;min-height:0;box-shadow:none}.c3-ai .wnb.wn2 .wnx .wi{display:none}
.c3-ai .wnb.wn2 .wnx small{color:var(--bad);font-weight:700;font-size:14px}.c3-ai .wnb.wn2 .wnx b{font-size:15.5px;font-weight:700;white-space:normal;text-align:start}
.wn2-l{margin-top:6px}.wn2-t{display:flex;align-items:center;gap:8px;padding:4px 0;font-size:14px}.wn2-t > span.clip1{flex:1;min-width:0}.wn2-t small{color:var(--muted);white-space:nowrap}.wn2-t.late small{color:var(--bad)}
.wn2-c{width:16px;height:16px;border:1.5px solid #f3a6b4;border-radius:4px;background:#fff;cursor:pointer;padding:0;flex:none;display:block}.wn2-c.still{border-style:dashed;cursor:default}.wn2-c:hover{background:var(--good);border-color:var(--good)}
.c3-ai .wnb.wn2 .wnd{position:static;margin-top:2px}.c3-ai .wnb.wn2 .wnt{border:0;background:none;padding:4px 0;font-size:14px;color:var(--muted);box-shadow:none;min-height:0}.c3-ai .wnb.wn2 .wnt svg{display:none}
@media(max-width:1100px){.ibx.g3,.ibx.g2,.dgrid{grid-template-columns:1fr}.topbar.has-client .search{flex:0 0 40px;max-width:40px;min-width:40px}.topbar.has-client .search input{padding:0;color:transparent}.topbar.has-client .search input::placeholder{color:transparent}.topbar.has-client .tb-ctx .btn:not(.call) .lb{display:none}}

.kx{font-family:OpenSansHebrew,"Open Sans","Heebo",Arial,system-ui,sans-serif;color:#333333;font-size:14px;line-height:1.45}
.kx *{box-sizing:border-box}
.kx a{color:inherit;text-decoration:none}
.kx h2,.kx h3,.kx h4{color:#333333}
.kx table{width:100%;border-collapse:collapse;font-size:14px}
.kx th{color:#666666;font-weight:600;text-align:right;padding:6px 6px;border-bottom:1px solid #e4e7ec;font-size:14px;background:none;white-space:nowrap}
.kx td{padding:8px 6px;border-bottom:1px solid #f2f4f7;vertical-align:top;text-align:right}
.kx tr.tot td{font-weight:700;border-bottom:0;background:#f9fafb}
.kx label{display:inline;margin:0;font-size:inherit;font-weight:inherit;color:inherit}
.kx small{font-size:max(12px,.86em)}
/* buttons */
.kbtn{border:1px solid #d0d5dd;background:#fff;border-radius:8px;padding:7px 13px;font-size:14px;font-weight:600;color:#333333;cursor:pointer;font-family:inherit;white-space:nowrap;line-height:1.45;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
a.kbtn{color:#333333}.kbtn:hover{background:#f9fafb}
.kbtn.call,a.kbtn.call{background:#5cb85c;color:#fff;border-color:#5cb85c}.kbtn.call:hover{background:#067a47}
.kbtn.pri,a.kbtn.pri{background:#428bca;color:#fff;border-color:#428bca}.kbtn.pri:hover{background:#3071a9}
.kbtn.big{padding:10px 18px;font-size:14.5px}
.kbtn.sm{padding:4px 10px;font-size:14px}
.kbtn.off{opacity:.45}
.kbtn[disabled]{opacity:.45;cursor:not-allowed}
.ksp{flex:1}
.klnk{color:#428bca;font-weight:600;font-size:14px;cursor:pointer;background:none;border:0;padding:0;font-family:inherit;text-decoration:none;white-space:normal;text-align:start}
a.klnk{color:#428bca}.klnk:hover{text-decoration:underline}
/* top bar: the client and the five steps in one row */
.ktop{background:#fff;border-bottom:1px solid #e4e7ec;padding:10px 24px;display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:30}
/* the bar and, under it, the facts of the deal: always in sight */
.kqd{margin:4px 0 0}.kqd > summary{list-style:none;display:inline-flex;width:17px;height:17px;border-radius:50%;border:1px solid #cfd4dc;color:#666666;font-size:14px;font-weight:700;align-items:center;justify-content:center;cursor:pointer;background:#fff}
.kqd > summary::-webkit-details-marker{display:none}.kqd[open] > summary{background:#428bca;color:#fff;border-color:#428bca}.kqd > div{font-size:14px;color:#555555;margin-top:4px;line-height:1.55}
.khdr{position:sticky;top:0;z-index:30}.khdr > .ktop{position:static}
.main.kpage:has(.kfx){--kfx:53px}
.kfx{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);background:#fff;border-bottom:1px solid #d9dee5;padding:0 24px;box-shadow:0 2px 4px rgba(16,24,40,.05)}
.kx.kfx .kfc{display:block;margin:0;padding:7px 12px 8px;min-width:0;border-inline-start:1px solid #eef0f3;position:relative;font-size:14px;cursor:default}
.kx.kfx .kfc:first-child{border-inline-start:0;padding-inline-start:2px}
.kx.kfx label.kfc{cursor:text}
.kx.kfx .kfc > span{display:block;font-size:14px;font-weight:600;color:#666666;margin:0 0 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:15px}
.kx.kfx .kfv{display:block;font-size:15.5px;font-weight:700;color:#333333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none;line-height:22px;height:22px;font-variant-numeric:tabular-nums}
.kx.kfx a.kfv:hover{color:#428bca;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.kx.kfx .kfv.kmiss{color:#b42318}
.kx.kfx .kfi{display:flex;direction:ltr;justify-content:flex-end;align-items:center;gap:0;height:22px;min-width:0}
.kx.kfx .kfi i{font-style:normal;font-size:15.5px;font-weight:700;color:#333333;line-height:22px;flex:none}
.kx.kfx .kfi input{flex:1 1 auto;min-width:0;width:100%;border:0;border-bottom:1px dashed #c3c9d2;border-radius:0;background:none;box-shadow:none;margin:0;padding:0 1px;height:22px;min-height:0;font:inherit;font-size:15.5px;font-weight:700;line-height:22px;color:#333333;text-align:right;font-variant-numeric:tabular-nums}
@supports (field-sizing:content){.kx.kfx .kfi input{flex:0 1 auto;width:auto;field-sizing:content;min-width:30px;max-width:100%;text-align:left;padding:0}}
.kx.kfx .kfi input::placeholder{color:#b54708;font-weight:600;font-size:14px;opacity:1}
.kx.kfx .kfi:has(input:placeholder-shown) i{display:none}
.kx.kfx .kfc:hover .kfi input{border-bottom-color:#428bca}
.kx.kfx .kfi input:focus{outline:0;border-bottom:2px solid #428bca;background:#eef8fa}
.kx.kfx .kfi input[readonly]{border-bottom-color:transparent;cursor:default}
.kx.kfx .kfc.c{background:#f4f9fa}.kx.kfx .kfc.c > span{color:#40616b}
.kx.kfx .kfc:not(.c) + .kfc.c{border-inline-start:2px solid #cfe3e7}
.kx.kfx .k3f.ok .kfi input{border-bottom:2px solid #5cb85c}
.kx.kfx .k3f.err .kfi input{border-bottom:2px solid #f04438;background:#fef3f2}
.kx.kfx .k3f.now .kfi input{border-bottom:2px solid #428bca;background:#eef8fa}
.kx.kfx .k3f.heard .kfi input{border-bottom:2px solid #5cb85c;background:#f0fdf6}
.kx.kfx .k3f em.k3hm{position:absolute;inset-inline-end:6px;top:5px;bottom:auto;font-size:14px;background:none}
.kx.kfx .k3f .k3err{position:absolute;top:100%;inset-inline-start:0;z-index:5;background:#fff;border:1px solid #fda29b;border-radius:6px;padding:3px 8px;white-space:nowrap;box-shadow:0 4px 10px rgba(16,24,40,.12);margin:2px 0 0;font-size:14px}
.kav{width:38px;height:38px;border-radius:10px;background:#428bca;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;flex:none}
.kwho{flex:0 1 auto;min-width:120px;max-width:340px;color:inherit;background:none;border:0;padding:0;text-align:right;cursor:pointer;font-family:inherit}.kwho b{font-size:16.5px;display:block;white-space:normal;overflow:visible;;overflow-wrap:anywhere}.kwho small{color:#666666;white-space:normal;display:block;overflow:visible;;overflow-wrap:anywhere}
.kpath{flex:1;display:flex;gap:5px;align-items:stretch;min-width:0;margin:0 6px}
.kst{flex:1;min-width:0;display:flex;align-items:center;gap:8px;border:1px solid #e4e7ec;border-radius:11px;padding:6px 10px;background:#fff;cursor:pointer;text-align:right;font-family:inherit;color:inherit;text-decoration:none}
a.kst{color:inherit}
.kst .n{width:25px;height:25px;border-radius:50%;background:#ffffff;color:#666666;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none;font-size:14px}
.kst .tx{min-width:0}
.kst b{display:block;font-size:14px;white-space:nowrap}/* the line under a step says where it stands: it wraps to a second line before it is ever cut */
.kst small{color:#666666;font-size:14px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;line-height:1.25}
.kst.done .n{background:#e7f6ec;color:#5cb85c}.kst.done b{color:#333333}
.kst.now .n{background:#428bca;color:#fff}.kst.now b{color:#3071a9}
.kst.on{border-color:#428bca;background:#d9edf7;box-shadow:0 0 0 2px #0b728522}
.kst.later:not(.on){opacity:.62}
.kst.off{cursor:default}
.karr{align-self:center;color:#666666;font-size:14px;flex:none}
.kallbar{flex:1;display:flex;align-items:center;gap:8px;margin:0 6px;color:#555555;font-size:14px;min-width:0;flex-wrap:wrap}
.ksearch{border:1px solid #e4e7ec;background:#f9fafb;border-radius:8px;width:140px;flex:none;font-size:14px;position:relative;margin:0}
.ksearch input{border:0;background:none;padding:8px 12px;font-size:14px;width:100%;color:#333333;border-radius:8px;box-shadow:none;font-family:inherit}.ksearch input::placeholder{color:#666666}
.ksearch input:focus{background:#fff;box-shadow:0 0 0 2px #0b728533}
.ksearch:focus-within{width:300px}.ksearch .sres{top:40px;left:0;right:auto;width:340px}
.kmore{position:relative;flex:none}.kmore > summary{list-style:none;cursor:pointer}.kmore > summary::-webkit-details-marker{display:none}
.kmore .pop{position:absolute;top:calc(100% + 6px);right:0;left:auto;background:#fff;border:1px solid #e4e7ec;border-radius:12px;box-shadow:0 12px 32px -12px #0f243355;padding:6px;min-width:230px;z-index:60;font-size:14px}
.kmore .pop > *,.kmore .pop form > button{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:0;background:none;border-radius:7px;text-align:right;cursor:pointer;color:#333333;font:inherit}
.kmore .pop form{display:block;padding:0;margin:0}.kmore .pop > *:hover,.kmore .pop form > button:hover{background:#f2f4f7}
/* three columns */
.kmain{display:grid;grid-template-columns:270px minmax(0,1fr) 390px;gap:18px;padding:18px 24px;align-items:start}
.kmain > div{min-width:0}
.kcard{background:#fff;border:1px solid #e4e7ec;border-radius:14px;padding:15px 18px;margin-bottom:14px}
.kcard h3,.kh3{margin:0 0 9px;font-size:14px;color:#666666;font-weight:700}
.kp{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid #f2f4f7}
.kp:last-child{border:0}.kp > span{color:#666666}.kp b{font-weight:600;min-width:0;text-align:left}
.kp b[data-copy]{cursor:copy}
.kpp > b,.kpp .kpp-n b{font-size:15.5px;display:block}.kpp small{color:#666666;display:block;margin-bottom:6px}
.kpp-n{display:block;width:100%;background:none;border:0;padding:0;text-align:right;cursor:pointer;font-family:inherit;color:inherit}.kpp-n:hover b{color:#428bca}
.kpp .kpp2{margin-top:8px;padding-top:8px;border-top:1px solid #e4e7ec}
.kmiss,.kx b.kmiss,.kx .kmiss{color:#b54708;font-weight:600}
.kq{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;padding:0 !important;box-sizing:border-box;border-radius:50%;border:1px solid #d0d5dd;color:#666666;font-size:14px;font-weight:700;cursor:help;position:relative;vertical-align:middle;margin-inline-start:5px;background:#fff;font-style:normal;line-height:1;flex:none}
.kq:hover,.kq:focus{color:#428bca;border-color:#428bca;outline:0}
.kq:hover::after,.kq:focus::after{content:attr(data-tip);position:absolute;top:calc(100% + 6px);inset-inline-start:-8px;z-index:60;width:max-content;max-width:min(260px,70vw);background:#333333;color:#fff;font-size:14px;font-weight:500;line-height:1.5;padding:7px 10px;border-radius:8px;white-space:normal;text-align:start}
button.kmiss{background:none;border:0;padding:0;cursor:pointer;font-family:inherit;font-size:inherit}
/* the head of a step: the title on the right, the main action on the left, always at the top */
.ksh{display:flex;align-items:flex-start;gap:14px;margin-bottom:12px}
.ksh h2{margin:0 0 2px;font-size:21px;display:flex;align-items:center;gap:6px 10px;font-weight:700;flex-wrap:wrap}.ksh > div:first-child{min-width:0}
.ksh p{color:#666666;margin:0;font-size:14px}
.ksha{display:flex;gap:8px;flex:none;align-items:center;margin-right:auto}
.kgrid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.kgrid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.kgrid3 .kf{grid-template-columns:74px 1fr}.kgrid3 .kf b{white-space:normal;overflow:visible;;overflow-wrap:anywhere}
.kgrid2 > .kcard,.kgrid3 > .kcard{min-width:0}
.kg4{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.kg3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.kbox{background:#f9fafb;border:1px solid #eef0f3;border-radius:10px;padding:9px 12px;min-width:0}
.kbox small{color:#666666;display:block;font-size:14px}.kbox b{font-size:16.5px}
.kf{display:grid;grid-template-columns:112px 1fr;align-items:start;padding:6px 0;border-bottom:1px solid #f2f4f7}
.kf:last-child{border:0}.kf > span{color:#666666}.kf b{font-weight:600}
.kf.k2{grid-template-columns:1fr auto}.kf.k2{gap:8px}.kf.k2 b{white-space:normal;overflow:visible}
.kchips{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.kchip{border:1px solid #d0d5dd;border-radius:99px;padding:4px 12px;font-size:14px;font-weight:600;background:#fff;color:#333333;white-space:nowrap;cursor:pointer;font-family:inherit;line-height:1.45;text-decoration:none;display:inline-block}
a.kchip{color:#333333}
.kchip.on,a.kchip.on{background:#428bca;border-color:#428bca;color:#fff}
.kchip.me{border-color:#fecdd6;color:#d9534f}.kchip.me.on{background:#d9534f;border-color:#d9534f;color:#fff}
.kstrip{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:9px 14px;margin-bottom:14px;font-size:14px;color:#555555}
.kstrip b{color:#333333}
.kpill{background:#d9edf7;color:#3071a9;border-radius:99px;padding:2px 10px;font-size:14px;font-weight:700;white-space:nowrap;display:inline-block;line-height:1.45}
.kpill.g{background:#ffffff;color:#555555}.kpill.ok{background:#e7f6ec;color:#067647}.kpill.no{background:#fee4e2;color:#b42318}.kpill.w{background:#fff3d6;color:#93570a}
.khd{display:flex;align-items:center;gap:10px;margin-bottom:6px;flex-wrap:wrap}
.khd h3{margin:0}
.kfit{display:grid;grid-template-columns:112px 92px 1fr 70px;gap:10px;align-items:center;padding:9px 8px;border-bottom:1px solid #f2f4f7;cursor:pointer;border-radius:8px;width:100%;background:none;border-left:0;border-right:0;border-top:0;font-family:inherit;font-size:inherit;color:inherit;text-align:right}
.kfit:hover{background:#f4f8fc}.kfit b{font-weight:600}.kfit span{color:#555555}.kfit em{font-style:normal;color:#428bca;font-weight:600;font-size:14px;text-align:left}
.kfit .kpill{justify-self:start}
.kfoot{color:#666666;font-size:14px;margin-top:8px}
.kdocs{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.kdoc{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #f2f4f7}
.kok{color:#067647;font-weight:600}.kgr{color:#666666}
.knum{display:inline-flex;width:22px;height:22px;border-radius:50%;background:#0f2433;color:#fff;align-items:center;justify-content:center;font-size:14px;font-weight:700;margin-left:6px}
.kx label.kdrop,.kdrop{display:block;width:auto;max-width:none;float:none;box-sizing:border-box;font-size:14px;border:2px dashed #9ed0d8;background:#f4f8fc;border-radius:12px;padding:13px 16px;text-align:center;color:#3071a9;font-weight:600;margin:8px 0;cursor:pointer}
.kdrop small{display:block;color:#666666;font-weight:400;margin-top:2px;font-size:max(12px,.86em)}
.kdrop.drag,.kdrop:hover{background:#d9edf7}
.kroad{border:1px solid #d0d5dd;border-radius:10px;padding:10px 12px;background:#fcfcfd;font-size:14px;line-height:1.6;white-space:pre-wrap}
.kroad.edit{padding:0;border:0;background:none}
.kroad textarea{width:100%;min-height:190px;border:1px solid #428bca;border-radius:10px;padding:10px 12px;font:inherit;font-size:14px;line-height:1.6;background:#fff;color:#333333;resize:vertical}
.kcb{display:inline-flex;align-items:center;gap:6px;margin-left:14px;cursor:pointer}
.kcb i{width:17px;height:17px;border-radius:4px;background:#428bca;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-style:normal;font-size:14px;flex:none}
.kcb input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.kcb input:not(:checked) + i{background:#fff;border:1.5px solid #98a2b3;color:transparent}
.kcb input:not(:checked) ~ span{color:#666666;text-decoration:line-through}
.kcnd{display:grid;grid-template-columns:1fr 104px 130px 22px;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #f2f4f7}
.kcnd:last-child{border:0}.kcnd small{color:#666666;display:block;font-size:max(12px,.86em)}.kcnd b{font-weight:700}
.kcnd.na b{color:#666666}
.kban{background:#e7f6ec;border:1px solid #abe0bf;color:#067647;border-radius:12px;padding:10px 14px;font-weight:600;margin-bottom:14px}
.kban.w{background:#fffaf0;border-color:#f5d48a;color:#93570a}
.kown{border-style:dashed;background:#fbfbfc}
.kdots{color:#666666;font-weight:700;cursor:pointer;text-align:left;position:relative;list-style:none}
.kdots > summary{list-style:none;cursor:pointer;padding:0 4px}.kdots > summary::-webkit-details-marker{display:none}
.kdots .pop{position:absolute;left:0;top:22px;background:#fff;border:1px solid #e4e7ec;border-radius:10px;box-shadow:0 12px 32px -12px #0f243355;padding:5px;min-width:150px;z-index:20;font-weight:400;text-align:right}
.kdots .pop form{margin:0}.kdots .pop button{display:block;width:100%;text-align:right;background:none;border:0;padding:7px 10px;border-radius:6px;font:inherit;font-size:14px;color:#333333;cursor:pointer}.kdots .pop button:hover{background:#f2f4f7}.kdots .pop button.bad{color:#b42318}
/* the left column: what is next, the agent and the history */
.knext{background:#fff5f6;border:1px solid #fecdd6;border-radius:12px;padding:11px 14px;margin-bottom:12px}
.knext small{color:#d9534f;font-weight:700}.knext .nb{display:block;font-size:15px;margin-bottom:6px;font-weight:700;background:none;border:0;padding:0;text-align:right;cursor:pointer;font-family:inherit;color:#333333;width:100%}
.knext .nb i{font-style:normal;font-weight:400;color:#666666;font-size:14px}.knext.late .nb i{color:#d9534f}
.ktk{display:flex;gap:8px;align-items:center;font-size:14px;padding:3px 0;color:#333333}
.ktk form{margin:0;display:inline-flex}.ktk .bx{width:15px;height:15px;border:1.5px solid #d0a0ab;border-radius:4px;display:inline-block;flex:none;background:#fff;padding:0;cursor:pointer}.ktk .bx:hover{background:#5cb85c;border-color:#5cb85c}
.ktk .bx.still{cursor:default;border-style:dashed}.ktk .bx.still:hover{background:#fff;border-color:#d0a0ab}
.ktk .t{min-width:0;overflow:visible;display:-webkit-box;-webkit-line-clamp:unset;-webkit-box-orient:vertical;line-height:1.35}.ktk{align-items:flex-start}.ktk .bx{margin-top:2px}
.ktk > span.d{margin-right:auto;color:#666666;font-size:14px;white-space:nowrap}.ktk.late > span.d{color:#d9534f}
.kag{background:#fff;border:1px solid #e4e7ec;border-radius:14px;overflow:hidden}
.ktabs{display:flex;border-bottom:1px solid #e4e7ec}
.ktab{flex:1;text-align:center;padding:11px 0;font-weight:700;color:#666666;cursor:pointer;border:0;background:#fff;font-size:14px;font-family:inherit;border-bottom:3px solid transparent}
.ktab.on{color:#3071a9;border-bottom-color:#428bca}
.khist{padding:10px 14px 14px;min-height:560px}
.kev{padding:9px 0;border-bottom:1px solid #f2f4f7;font-size:14px}
.kev .h{display:flex;gap:8px;align-items:center;min-width:0}.kev .h b{min-width:0;overflow:visible;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:unset;line-height:1.3}.kev .h small{margin-right:auto;color:#666666;white-space:nowrap}
.kev .s{background:#f9fafb;border-radius:8px;padding:7px 9px;margin-top:6px;color:#333333;white-space:pre-wrap;overflow-wrap:anywhere}
.kev .s i{font-style:normal;color:#666666}.kev .s b{font-weight:700}
.kev .x{display:flex;gap:10px;margin-top:4px}.kev .x form{margin:0;display:inline}
.kev.pin{background:#fffaf0;border-radius:8px;padding:9px 8px;border:1px solid #f5d48a;margin-bottom:6px}
details.kev > summary{list-style:none;cursor:pointer}details.kev > summary::-webkit-details-marker{display:none}
.kty{font-weight:700;border-radius:6px;padding:1px 7px;font-size:14px;background:#ffffff;color:#333333;white-space:nowrap;flex:none}
.kty.c{background:#e7f6ec;color:#067647}.kty.w{background:#e6f7ea;color:#157a3a}.kty.m{background:#e8eefc;color:#2b4fa8}.kty.a{background:#d9edf7;color:#3071a9}.kty.n{background:#fee4e2;color:#b42318}.kty.t{background:#fff3d6;color:#93570a}
/* the agent, docked in the left column: the sketch's chat */
.kag .aidock{display:block}
.kag .aip.dock{position:static;display:flex;flex-direction:column;width:auto;max-width:none;height:auto;border:0;border-radius:0;box-shadow:none;background:#f9fafb}
.kag .aip.dock .aih{display:none}
.kag .aip.dock .aim{padding:14px;display:flex;flex-direction:column;gap:10px;min-height:430px;max-height:calc(100vh - 330px);overflow:auto;background:#f9fafb}
.kag .aib-m{font-size:14px;line-height:1.45;border-radius:14px;padding:9px 12px}
.kag .aib-m.out{align-self:flex-start;background:#428bca;color:#fff;border-radius:14px 14px 14px 4px;max-width:88%}
.kag .aib-m.in{align-self:flex-end;background:#fff;border:1px solid #e4e7ec;color:#333333;border-radius:14px 14px 4px 14px;max-width:94%}
.kag .aib-m.act,.aib-m.act.kund{align-self:stretch;max-width:100%;width:100%;background:#fff;border:1px solid #b9dfe5;border-radius:12px;padding:0;overflow:hidden}
.kund h4{margin:0;background:#d9edf7;color:#3071a9;padding:8px 12px;font-size:14px}
.kx label.ku,.ku{margin:0;font-weight:400;color:inherit;font-size:14px;display:grid;grid-template-columns:82px 1fr;gap:8px;padding:6px 12px;border-bottom:1px solid #f2f4f7;font-size:14px;align-items:start}
.ku > span{color:#666666}.ku b{font-weight:600}.ku.m b{color:#b54708}
.ku input{margin:2px 0 0;display:none}.kund.fix .ku input{display:inline-block}.kund.fix .ku{grid-template-columns:18px 82px 1fr}
.kq{padding:9px 12px;background:#fffaf0;border-bottom:1px solid #f2f4f7;font-size:14px}.kq b{display:block;margin-bottom:6px}
.kacts{display:flex;gap:8px;padding:10px 12px;flex-wrap:wrap}
.kdraft{background:#f0fdf4;border:1px solid #bbe7c8;border-radius:10px;padding:8px 10px;margin:8px 0;font-size:14px}
.kag .aif{border-top:1px solid #e4e7ec;padding:10px;display:flex;gap:8px;align-items:flex-end;background:#fff}
.kag .aif textarea{flex:1;border:1px solid #d0d5dd;border-radius:10px;padding:10px 12px;min-height:54px;font-size:14px;font-family:inherit;resize:none;box-shadow:none}
.kag .aif textarea::placeholder{color:#666666}
.kag .aif .btn{background:#428bca;border-color:#428bca;color:#fff;border-radius:8px;padding:7px 13px;font-size:14px;font-weight:600;height:auto;min-height:0}
.kag .ainew2{display:flex;justify-content:flex-start;padding:6px 12px 0;background:#f9fafb}
.kag .aip.drag .aim{outline:2px dashed #428bca;outline-offset:-8px}
/* the drawer: from the left, over a dimmed screen */
dialog.kdr{position:fixed;inset:0 auto 0 0;margin:0;height:100%;max-height:100%;width:640px;max-width:100vw;border:0;border-radius:0;padding:20px 24px 28px;background:#fff;overflow:auto;box-shadow:8px 0 30px #0003;color:#333333}
dialog.kdr.wide{width:820px}
dialog.kdr::backdrop{background:#0f243366}
dialog.kdr[open]{animation:kdrin .18s ease-out}@keyframes kdrin{from{transform:translateX(-24px);opacity:.4}to{transform:none;opacity:1}}
.kdr > .kx-x{position:absolute;left:18px;top:16px}
.kdr h2{margin:0 0 4px;font-size:20px;display:flex;align-items:center;gap:10px;font-weight:700;padding-left:40px}
.kdr h3{margin:18px 0 6px;font-size:14px;color:#666666;font-weight:700}
.kck{display:grid;grid-template-columns:120px 1fr 78px;gap:10px;padding:8px 0;border-bottom:1px solid #f2f4f7;align-items:center}.kck b{font-weight:700}
.kneedb{background:#fffaf0;border:1px solid #f5d48a;border-radius:10px;padding:10px 12px;font-weight:600}
.kdr .kbar{display:flex;gap:8px;margin-top:20px;flex-wrap:wrap}
.kdr .ksticky{position:sticky;bottom:-28px;background:#fff;padding:12px 0 6px;margin-top:16px;border-top:1px solid #e4e7ec;display:flex;gap:8px;align-items:center}
.kmemo{border:1px solid #e4e7ec;border-radius:10px;padding:22px 26px;margin-top:12px;line-height:1.7;font-size:14px;outline:none}
.kmemo h4{margin:14px 0 4px;font-size:14.5px;color:#3071a9}.kmemo h4:first-child{margin-top:0}
.kdeals td{cursor:pointer;vertical-align:middle;padding:9px 6px}.kdeals tr:hover td{background:#f4f8fc}
.kdeals small{color:#666666;display:block;font-size:14px;white-space:nowrap}.kdeals th,.kdeals td b,.kdeals td{white-space:nowrap}
.ktag{font-size:14px;color:#666666;background:#f2f4f7;border-radius:6px;padding:0 6px;margin-right:6px;white-space:nowrap}
/* editing in place: a field looks like the sketch's text, and shows its frame only when touched */
.kin{border:1px solid transparent;background:transparent;font:inherit;font-weight:600;color:#333333;padding:1px 6px;margin:-2px -6px;border-radius:6px;width:calc(100% + 12px);min-width:0;text-align:right;box-shadow:none;height:auto;min-height:0;line-height:1.45}
.kin:hover{border-color:#d0d5dd;background:#fff}.kin:focus{outline:0;border-color:#428bca;background:#fff;box-shadow:0 0 0 2px #0b728522}
.kin::placeholder{color:#b54708;font-weight:600;opacity:1}.kin.opt::placeholder{color:#666666;font-weight:400}select.kin.opt.empty{color:#666666;font-weight:400}
.kx input.kin,.kx select.kin{height:auto;min-height:0;padding:1px 6px;margin:-2px -6px;box-shadow:none;font-size:inherit;line-height:1.45;border-radius:6px}
.kx select.kin{width:auto;max-width:calc(100% + 12px);padding-left:20px}
select.kin{appearance:none;-webkit-appearance:none;cursor:pointer;padding-left:18px;background-image:linear-gradient(45deg,transparent 50%,#98a2b3 50%),linear-gradient(135deg,#98a2b3 50%,transparent 50%);background-position:6px 55%,10px 55%;background-size:4px 4px,4px 4px;background-repeat:no-repeat}
select.kin.empty{color:#b54708}
.kmon{display:inline-flex;align-items:baseline;gap:1px;direction:ltr;width:100%;justify-content:flex-end}.kmon i{font-style:normal;font-weight:600;color:#333333}.kmon .kin{text-align:left;width:100%;margin-right:-6px}
.kbox .kin{font-size:16.5px;font-weight:700}.kbox .kmon{justify-content:flex-start}
.kf .kin,.kf .kmon{max-width:100%}
.kf .kmon .kin,.kbox .kmon .kin{field-sizing:content;width:auto;min-width:5ch;max-width:100%;margin-right:0}
.kf .kmon{justify-content:flex-end}.kbox .kmon{justify-content:flex-end}
.ksrc{color:#666666;font-weight:400;font-size:14px;white-space:nowrap}
.kdirty{display:none}.kdirty.on{display:inline}
/* the tracks of the deal: the sketch's table; a row opens for editing in place */
.ktrk td{vertical-align:middle}.ktrk tr.r td{cursor:pointer}.ktrk tr.r:hover td{background:#f4f8fc}
.ktrk tr.ed td{background:#f4f8fc;border-bottom:1px solid #e4e7ec}
.ktrk .ef{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 10px;padding:4px 0}
.ktrk .ef label{display:block;font-size:14px;color:#666666;font-weight:600}
.ktrk .ef input,.ktrk .ef select{display:block;width:100%;margin-top:3px;border:1px solid #d0d5dd;border-radius:8px;padding:6px 8px;font:inherit;font-size:14px;background:#fff;height:34px}
.ktrk .ef .two{display:grid;grid-template-columns:1fr 64px;gap:4px}
.ktrk .ef .two select,.ktrk .ef .two input{margin-top:3px}
.ktrk .eb{display:flex;gap:10px;align-items:center;padding:6px 0 2px}
/* the deal: what is not saved yet, in one quiet bar at the bottom of the card */
.kdirtyb{display:flex;align-items:center;gap:8px;margin-top:12px;padding:9px 12px;background:#fffaf0;border:1px solid #f5d48a;border-radius:10px;font-size:14px;font-weight:600;color:#93570a}
.kdirtyb[hidden]{display:none}.ksp{flex:1}
.kx .pty{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 30px 8px 10px;border:1px solid #e4e7ec;border-radius:10px;margin-bottom:8px;position:relative}
.kx .pty .tf{margin:0}.kx .pty .tf > span{display:block;font-size:14px;color:#666666;font-weight:600}.kx .pty input,.kx .pty select{width:100%;height:32px;border:1px solid #d0d5dd;border-radius:8px;padding:0 8px;font:inherit;font-size:14px}
.kx .pty .x{position:absolute;right:6px;top:6px;border:0;background:none;color:#666666;cursor:pointer;font-size:18px}
.kflash{animation:kfl 1.6s ease-out}@keyframes kfl{0%,40%{background:#fff3d6}100%{background:transparent}}
.kx .off{opacity:.55}
/* inline values line up with their labels, the shekel sign sits on the number */
.kf:has(.kin){align-items:center}.kx .kbox input.kin{font-size:16.5px;font-weight:700}.kx .kmon input.kin{padding-left:1px;padding-right:2px}.kx .kmon i{font-weight:700}
/* the deal: details the sketch leaves out, folded under one quiet line */
.kmored{margin-top:4px}.kmored > summary{list-style:none;cursor:pointer;color:#666666;font-size:14px;font-weight:600;padding:6px 0}.kmored > summary::-webkit-details-marker{display:none}.kmored[open] > summary{color:#666666}
/* the live call panel (left column) */
.klive{border-color:#f04438;box-shadow:0 0 0 3px #f0443814}
.klt{max-height:230px;overflow:auto;background:#f9fafb;border:1px solid #eef0f3;border-radius:10px;padding:8px 10px;font-size:14px;line-height:1.5}
.klt .l{margin:3px 0}.klt .l b{font-size:14px;margin-left:6px;padding:0 6px;border-radius:6px}.klt .l.a b{background:#d9edf7;color:#3071a9}.klt .l.c b{background:#fff3d6;color:#93570a}.klt .l i{color:#666666;font-style:normal}.klt .l.now{opacity:.85}
.klh{font-size:14px;color:#666666;font-weight:700;margin:10px 0 4px}
.kls{display:grid;grid-template-columns:92px 1fr auto auto;gap:6px;align-items:center;padding:5px 0;border-bottom:1px solid #f2f4f7}
.kls .lb{font-size:14px;color:#333333;font-weight:600}.kls input{height:28px;border:1px solid #d0d5dd;border-radius:7px;padding:0 6px;font:inherit;font-size:14px;min-width:0}
.kls small{grid-column:1/-1;color:#666666;font-size:14px}
.klc{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.klc > div{background:#f9fafb;border:1px solid #eef0f3;border-radius:8px;padding:5px 7px;min-width:0}.klc small{display:block;color:#666666;font-size:14px}.klc b{font-size:14px}
.klx{border:0;background:none;font-size:20px;line-height:1;color:#666666;cursor:pointer;padding:0 2px;margin-inline-start:6px}.klx:hover{color:#333333}
.klph{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:14px;color:#666666;margin:2px 0 8px}.klph span{padding:2px 7px;border-radius:999px}.klph span.past{color:#666666}.klph span.on{background:#0f2433;color:#fff;font-weight:700}.klph i{font-style:normal;color:#d0d5dd}.klph em{margin-inline-start:auto;font-style:normal;background:#fff3d6;color:#93570a;border-radius:999px;padding:2px 8px;font-weight:600}
.klsay{background:#0f2433;color:#fff;border-radius:12px;padding:10px 12px;margin:6px 0}.klsay small{display:block;color:#bce8f1;font-size:14px;font-weight:700;margin-bottom:3px}.klsay b{display:block;font-size:15.5px;line-height:1.5;font-weight:600}.klsay span{display:block;color:#b8c4cc;font-size:14px;margin-top:4px}
.klob{background:#fff3d6;border:1px solid #fcd9a0;border-radius:10px;padding:8px 10px;margin:6px 0}.klob small{display:block;color:#93570a;font-size:14px;margin-bottom:2px}.klob b{font-size:14px;line-height:1.5;color:#3d2a06}
.klcl{border:1px dashed #b7dfe6;border-radius:10px;padding:8px 10px;margin:8px 0 2px;font-size:14px;color:#3071a9}.klcl small{display:block;font-weight:700;color:#666666;font-size:14px}.klcl.yes{border:2px solid #5cb85c;background:#ecfdf3;color:#05603a}.klcl.almost{border-color:#5cb85c}
.klw{background:#fef3f2;color:#b42318;border-radius:8px;padding:5px 9px;margin:4px 0;font-size:14px;font-weight:600}
.kltr summary{cursor:pointer;list-style:none}.kltr summary::before{content:'▾ ';color:#666666}.kltr:not([open]) summary::before{content:'◂ '}
.kldot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#bce8f1;animation:kldot 1s infinite alternate;vertical-align:middle}@keyframes kldot{from{opacity:.3}to{opacity:1}}
#kliveov{position:fixed;z-index:60;top:64px;bottom:12px;left:12px;width:min(1240px,calc(100vw - 270px));background:#fff;border:2px solid #f04438;border-radius:16px;box-shadow:0 24px 60px #0f243340,0 0 0 4px #f0443814;display:flex;flex-direction:column;overflow:hidden;font-size:14px}
#kliveov.mini{top:auto;bottom:12px;height:auto;width:min(620px,calc(100vw - 24px))}
@media (max-width:1100px){#kliveov{width:auto;right:12px}}
.klo-h{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #eef0f3;background:#fcfcfd;flex-wrap:wrap}.klo-h > b{font-size:15px}
.klo-h .klph{margin:0}.klmood{font-style:normal;background:#fff3d6;color:#93570a;border-radius:999px;padding:2px 9px;font-weight:600;font-size:14px}
.klmode{display:flex;border:1px solid #d0d5dd;border-radius:9px;overflow:hidden}.klmode button{border:0;background:#fff;padding:5px 10px;font:inherit;font-size:14px;cursor:pointer;color:#555555}.klmode button.on{background:#0f2433;color:#fff;font-weight:700}
.klbtn{border:1px solid #d0d5dd;background:#fff;border-radius:8px;width:30px;height:30px;font-size:17px;line-height:1;cursor:pointer;color:#555555}.klbtn:hover{background:#f2f4f7}
.klo-mini{padding:8px 14px 10px;font-size:14px;color:#0f2433}.klo-mini:empty,.klo-f:empty{display:none}#kliveov:not(.mini) .klo-mini{display:none}#kliveov.mini .klo-b,#kliveov.mini .klo-f{display:none}
.klsay.fresh{animation:klfresh .6s ease-out}@keyframes klfresh{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
.klnext{margin:2px 4px 10px;font-size:14px;color:#666666}.klnext small{font-weight:700;margin-inline-end:6px;color:#666666}
.klo-b{flex:1;display:grid;grid-template-columns:1.25fr 1fr 1fr;min-height:0}
.klo-c{padding:12px 14px;overflow:auto;border-inline-start:1px solid #eef0f3;min-width:0}.klo-c:first-child{border:0}
.klo-c.t{display:flex;flex-direction:column}.klo-c.t .klt{flex:1;max-height:none}
.klo-f{display:flex;gap:8px;padding:10px 14px;border-top:1px solid #eef0f3;background:#fcfcfd}
.klgoal{font-size:14px;color:#555555;margin:0 0 8px;line-height:1.5}.klgoal b{color:#0f2433}.klgoal span{display:block;color:#666666}
.klsay .klhint{display:block;color:#e6f1f3;font-size:14.5px;margin-top:6px;line-height:1.55}.klsay.stuck{box-shadow:0 0 0 3px #fdb022}
.klline{margin-top:8px;padding:8px 10px;border-radius:9px;background:#ffffff14;font-size:14.5px;line-height:1.55}.klob .klline{background:#fff;color:#3d2a06}
.klrev{display:inline-block;margin-top:8px;color:#bce8f1;font-size:14px;font-weight:700;text-decoration:none}.klob .klrev{color:#93570a}
.klbr details{border:1px solid #eef0f3;border-radius:9px;margin:4px 0;padding:6px 10px;font-size:14px}.klbr summary{cursor:pointer;font-weight:600;color:#333333}.klbr details > div{color:#555555;margin-top:4px;line-height:1.5}.klbr .klline{background:#f4f8fc;color:#3071a9}
.klta{display:flex;align-items:center;gap:10px;background:#f4f8fc;border-radius:12px;padding:10px 12px;margin-bottom:8px}.klta small{display:block;color:#666666;font-size:14px}.klta b{font-size:19px}.klta i{font-style:normal;color:#666666;font-size:18px}.klta .sv{margin-inline-start:auto;text-align:center;background:#ecfdf3;border-radius:9px;padding:4px 10px}.klta .sv b{color:#05603a}
#kliveov .klc{grid-template-columns:repeat(3,1fr)}#kliveov .klc b{font-size:15.5px}
.klpass{margin-top:6px;font-size:14px;color:#333333}
.klnew{font-style:normal;background:#d9edf7;color:#3071a9;border-radius:6px;padding:0 5px;font-size:14px}
.klgl{display:flex;flex-wrap:wrap;gap:5px}.klgl span{font-size:14px;border:1px solid #eef0f3;border-radius:999px;padding:3px 9px;color:#666666}.klgl span.ok{background:#ecfdf3;border-color:#abefc6;color:#05603a}
@media (max-width:900px){.klo-b{grid-template-columns:1fr}.klo-c{border:0;border-top:1px solid #eef0f3}}
/* the call map – on the card before the call and in the live window */
.kmphl{margin:0 0 8px;padding:8px 12px 8px 8px;background:#fffaeb;border-radius:10px;list-style:none;font-size:14px;color:#3d2a06;line-height:1.55}.kmphl li::before{content:'• ';color:#b54708}
.kltalk{font-size:14px;color:#555555;background:#f2f4f7;border-radius:999px;padding:3px 9px}.kltalk.hi{background:#fff3d6;color:#93570a}
.klsoft{background:#f4f8fc;color:#3071a9;border-radius:8px;padding:6px 10px;margin:4px 0 8px;font-size:14px}
.kmpgoal{display:flex;gap:8px;align-items:baseline;font-size:14px;color:#555555;margin:0 0 6px}.kmpgoal b{color:#0f2433}.kmpgoal .kgr{margin-inline-start:auto;font-size:14px}
.kmp{display:flex;gap:10px;align-items:flex-start;padding:8px 6px;border-radius:10px;border-bottom:1px solid #f2f4f7}
.kmp b{display:block;font-size:14.5px;color:#0f2433}.kmp small{display:block;color:#666666;font-size:14px;line-height:1.45;margin-top:1px}
.kmpn{flex:none;width:24px;height:24px;border-radius:50%;background:#ffffff;color:#555555;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px}
#kliveov .kmp{cursor:pointer}#kliveov .kmp:hover{background:#f9fafb}
.kmp.on{background:#f0f9fa;border-color:transparent;box-shadow:inset 3px 0 0 #428bca}.kmp.on .kmpn{background:#428bca;color:#fff}
.kmp.done b{color:#666666;text-decoration:line-through;font-weight:500}.kmp.done .kmpn{background:#ecfdf3;color:#05603a}
.kmpask{margin-top:6px;font-size:14px;color:#3071a9;background:#fff;border:1px dashed #b7dfe6;border-radius:8px;padding:6px 9px}
.kmprev{display:inline-block;margin-top:4px;font-size:14px;color:#428bca;font-weight:600;text-decoration:none}
.kmpk{margin-top:10px;font-size:14px;color:#666666}.kmpk summary{cursor:pointer;font-weight:600}.kmpk div{margin-top:4px;line-height:1.6}
.klq{background:#f4f8fc;border-radius:8px;padding:6px 9px;margin:4px 0;font-size:14px;color:#3071a9;font-weight:600}
/* the agreement's signers */
.ksg{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;padding:6px 0}
.ksg-f{flex:1 1 100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:#f9fafb;border-radius:10px;padding:8px 10px}
.ksg-f[hidden]{display:none}.ksg-f label{font-size:14px;color:#666666;font-weight:600}.ksg-f input{display:block;width:100%;margin-top:3px;height:32px;border:1px solid #d0d5dd;border-radius:8px;padding:0 8px;font:inherit;font-size:14px}
.kx details summary{list-style-position:inside}
/* the side panel (memo, documents read by the AI) opens on the left like the sketch's drawers */
dialog.panel.kpanel{width:min(820px,100vw);border-radius:0;background:#fff;color:#333333;box-shadow:8px 0 30px #0003}
dialog.panel.kpanel::backdrop{background:#0f243366}
.kpanel .ph2{border-bottom:0;padding:12px 18px 0}.kpanel.hasks .ph2 .pt{visibility:hidden}
.kpanel .pb{background:#fff;padding:4px 24px 28px}
.kpanel .pb .grid.side{grid-template-columns:minmax(0,1fr)}.kpanel .pb .grid.side > div:last-child{order:-1}.kpanel .pb .crumb{display:none}
/* phone and narrow screens */
@media(max-width:1500px){.kmain{grid-template-columns:240px minmax(0,1fr) 340px;gap:14px;padding:14px 16px}.ktop{padding:8px 16px;gap:10px}.kfx{padding:0 16px}.kx.kfx .kfc{padding-inline:9px}.kst{padding:5px 8px;gap:6px}.kst small{display:none}.ksearch{width:110px}}
@media(max-width:1180px){.kfx{grid-auto-columns:minmax(112px,1fr);overflow-x:auto;scrollbar-width:none;padding:0 10px}.kfx::-webkit-scrollbar{display:none}.kmain{grid-template-columns:minmax(0,1fr)}.kmain > .kcol-r{order:2}.kmain > .kcen{order:1}.kmain > .kcol-l{display:contents}.kmain > .kcol-l > *{order:3}.kmain > .kcol-l > .knext{order:0;margin-bottom:0}.ktop{flex-wrap:wrap}.kpath{order:10;flex:1 1 100%;margin:4px 0 0;overflow-x:auto}.kst{flex:0 0 auto}.karr{display:none}}
/* a phone: when the page is scrolled the bar slides away and the facts stay */
@media(max-width:760px){.khdr{top:calc(0px - var(--kth,150px))}}
@media(max-width:800px){.kstrip{flex-wrap:wrap}.kx table.kdeals,.kx #trks,.kdr table{display:block;overflow-x:auto;max-width:100%}.kx #trks td,.kx #trks th{white-space:nowrap}.ksearch{display:none}.kgrid2,.kgrid3,.kg4,.kg3,.kdocs{grid-template-columns:1fr}.ksh{flex-direction:column}.ksha{margin-right:0;flex-wrap:wrap}.kfit{grid-template-columns:1fr auto}.kfit span:not(.kpill){grid-column:1/-1}.kcnd{grid-template-columns:1fr auto}.ktrk .ef{grid-template-columns:1fr 1fr}dialog.kdr,dialog.kdr.wide{width:100vw;padding:16px}.ksearch{width:40px}.kwho{max-width:150px}}
/* a phone: the name of the client is never cut – it takes the room it needs and wraps */
@media(max-width:800px){.kwho{max-width:none;flex:1 1 150px}.kwho b,.kwho small{white-space:normal;overflow:visible}}

body{font-family:OpenSansHebrew,"Open Sans","Heebo",Arial,system-ui,sans-serif}
.main:not(.kpage){background:#ffffff}
.main:not(.kpage) .wrap{padding:18px 24px 90px}
.ph{margin:0 0 14px;gap:14px}.ph h1{font-size:21px;font-weight:700;letter-spacing:0;color:#333333}.ph .sub{font-size:14px;color:#666666;margin-top:2px}
.card{border:1px solid #e4e7ec;border-radius:14px;box-shadow:none;padding:15px 18px;margin-bottom:14px}
.card > h2:first-child{margin:-15px -18px 12px;padding:11px 18px;font-size:14px;font-weight:700;color:#666666;border-bottom:1px solid #f2f4f7;min-height:44px}
.card > h2:first-child b,.card > h2:first-child strong{color:#333333}
.card h2:not(:first-child),.card h3{font-size:14px;color:#666666;font-weight:700}
.stats{box-shadow:none;border:1px solid #e4e7ec;border-radius:14px;background:#fff}
.stats > div{padding:11px 16px}.stats .v{font-size:20px;font-weight:700;color:#333333}.stats .l{color:#666666;font-size:14px;font-weight:400}
.btn{border-radius:8px;font-weight:600;font-family:inherit;font-size:14px}
.btn.sec{background:#fff;border-color:#d0d5dd;color:#333333;box-shadow:none}
.btn.sm{font-size:14px}
.chip{border:1px solid #d0d5dd;color:#333333;font-weight:600;font-size:14px;background:#fff}
.chip.on{background:#428bca;border-color:#428bca;color:#fff}
.pill{font-weight:700;font-size:14px}
.pill.good{background:#e7f6ec;color:#067647}.pill.warn{background:#fff3d6;color:#93570a}.pill.bad{background:#fee4e2;color:#b42318}.pill.plain{background:#ffffff;color:#555555}
th{background:none;color:#666666;font-weight:600;font-size:14px;letter-spacing:0;border-bottom:1px solid #e4e7ec}
td{border-bottom-color:#f2f4f7}
tbody tr:hover td{background:#f4f8fc}
.flash{border-radius:12px;font-weight:600}
.flash.info{background:#d9edf7;color:#3071a9}
.hint{color:#666666}
.topbar{background:#fff;border-bottom:1px solid #e4e7ec;box-shadow:none}
.sidebar{background:#0f2433}
.sidebar a.on{background:#17384b;box-shadow:none;color:#fff}
input,select,textarea{font-family:inherit}
dialog.dlg{border-radius:14px}
dialog.dlg h2{font-size:17px}

.main.kpage{background:#ffffff}
/* two columns: the form, and tasks and activity – wide enough to read a line of the journal without cutting it */
.kmain.k3{grid-template-columns:minmax(0,1fr) clamp(420px,34vw,600px);gap:12px;padding:12px 14px 40px;align-items:start}
.k3own{border:0;background:none;padding:0 2px;font:inherit;font-size:14px;font-weight:500;color:#555555;cursor:pointer;white-space:nowrap}.k3own:hover{color:#428bca;text-decoration:underline}
.kmain.k3 > .kcol-l{display:block}.kmain.k3 > .kcol-r{display:flex}
.k3col{background:#fff;border:1px solid #dfe4ea;border-radius:10px;min-width:0}
.k3h{background:#d9edf7;border-bottom:1px solid #bce8f1;padding:7px 12px;display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;color:#31708f;margin:0;border-radius:10px 10px 0 0;min-height:42px;flex-wrap:wrap}
.kx h2.k3h{color:#31708f}
.k3b{padding:10px 12px}
.kbtn[hidden]{display:none}
.k3rov{display:block;font-weight:600;padding:4px 0 2px;color:#333333}
.k3no{font:inherit;font-size:14px;font-weight:700;letter-spacing:.02em;color:#31708f;background:#d9edf7;border:1px solid #bce8f1;border-radius:6px;padding:1px 8px;cursor:pointer;white-space:nowrap;font-variant-numeric:tabular-nums}.k3no:hover{background:#d4ecf1}
.k3tag{font-weight:500;font-size:14px;border:1px solid #bce8f1;border-radius:999px;padding:1px 8px;background:#fff;color:#333333;white-space:nowrap}
.k3saved{background:#067647;color:#fff;border-radius:999px;padding:2px 9px;font-size:14px;font-weight:700}
.k3saved.bad{background:#b42318}
.k3rec{background:#d92d20;color:#fff;border-radius:999px;padding:2px 9px;font-size:14px;font-weight:700;white-space:nowrap}
[data-k3form]{container-type:inline-size}
/* chapters */
.k3s{display:block;border-bottom:1px solid #d0d5dd;scroll-margin-top:calc(76px + var(--kfx,0px))}
.k3s > summary,.kx a.k3s.lnk{display:flex;align-items:baseline;gap:8px;padding:9px 0 7px;font-weight:700;font-size:14px;cursor:pointer;list-style:none;color:#333333;min-width:0}
.k3s > summary::-webkit-details-marker{display:none}
.k3s > summary::after,a.k3s.lnk::after{content:"⌄";margin-inline-start:auto;color:#666666;font-size:14px;font-weight:400;padding-inline-start:8px}
.k3s > summary b,a.k3s.lnk b{white-space:nowrap}
.k3s > summary small,a.k3s.lnk small{font-weight:400;color:#666666;font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.k3s > summary:hover,a.k3s.lnk:hover{color:#3071a9}
a.k3s.lnk.ld{opacity:.55;pointer-events:none}a.k3s.lnk.ld::after{content:"…"}
.k3s[open]{border-bottom:0}
.k3s[open] > summary{border-bottom:2px solid #17384d;color:#333333;margin-bottom:9px;padding-bottom:5px}
.k3s[open] > summary::after{content:"⌃"}
.k3s[open] > summary small{display:none}
.k3s.now[open] > summary,.k3s.here[open] > summary{color:#3071a9;border-color:#428bca}
.k3s.here[open] > summary::before{content:"כאן השיחה עכשיו";order:2;font-weight:400;font-size:14px;color:#428bca}
.k3sb{padding-bottom:10px}
.k3b > .k3s:first-of-type > summary{padding-top:2px}
/* fields */
.k3g{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 10px;margin-bottom:8px}
@container (max-width:540px){.k3g{grid-template-columns:repeat(2,minmax(0,1fr))}}
.kx label.k3f,.k3f{display:block;position:relative;margin:0;min-width:0;font-size:14px}
.k3f > span{display:block;font-size:14px;font-weight:700;margin-bottom:2px;color:#333333;white-space:normal;overflow:visible;;overflow-wrap:anywhere}
.k3f > span small{font-weight:400;color:#666666;margin-inline-start:6px}
.k3f.w2{grid-column:span 2}.k3f.w4{grid-column:1/-1}
.kx .k3col .k3f input,.kx .k3col .k3f select,.kx .k3col .k3f textarea{width:100%;border:1px solid #cfd4dc;border-radius:5px;padding:4px 8px;min-height:30px;height:30px;background:#fff;font:inherit;font-size:14px;box-shadow:none;margin:0;color:#333333;max-width:none}
.kx .k3col .k3f textarea{height:auto;min-height:120px;resize:vertical;display:block;line-height:1.5;padding:7px 9px}
.kx .k3col .k3f select{padding-inline-end:4px}
.kx .k3col .k3f input::placeholder,.kx .k3col .k3f textarea::placeholder{color:#666666;font-weight:400}
.kx .k3col .k3f input:focus,.kx .k3col .k3f select:focus,.kx .k3col .k3f textarea:focus{outline:0;border-color:#428bca;box-shadow:0 0 0 3px rgba(11,114,133,.15)}
.kx .k3col .k3f.ro input{background:#f2f4f7;color:#333333;cursor:default}
.kx .k3col .k3f.ro input:focus{box-shadow:none;border-color:#cfd4dc}
.k3f .cur{position:relative;display:block}
.kx .k3col .k3f.heard input,.kx .k3col .k3f.heard select{border-color:#5cb85c;background:#f0fdf6;font-weight:700;padding-inline-end:58px}
.k3f em.k3hm{position:absolute;inset-inline-end:6px;bottom:6px;font-style:normal;font-size:14px;color:#067647;font-weight:700;display:flex;gap:4px;align-items:center;background:#f0fdf6}
.k3f em.k3hm button{border:0;background:none;color:#666666;cursor:pointer;padding:0 2px;font-size:14px;line-height:1}
.k3f em.k3hm button:hover{color:#b42318}
.kx .k3col .k3f.now input,.kx .k3col .k3f.now select{border-color:#428bca;box-shadow:0 0 0 3px rgba(11,114,133,.15)}
.kx .k3col .k3f.err input,.kx .k3col .k3f.err select{border-color:#f04438;background:#fef3f2}
.k3f .k3err{display:block;color:#b42318;font-size:14px;margin-top:2px;font-style:normal}
.kx .k3col .k3f.ok input,.kx .k3col .k3f.ok select{border-color:#5cb85c}
.kx .k3col .k3f .mchoice input{width:auto;height:auto;min-height:0;border:0;padding:0}
.k3f .mchoice{gap:5px}.k3f .mchoice .ckl{padding:3px 9px;font-size:14px;position:relative}
.kx .k3col .k3f .mchoice .ckl{display:inline-block}
.k3row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:2px 0 8px}
.k3box{border:1px solid #e4e7ec;border-radius:8px;padding:8px 10px;margin:0 0 8px;background:#fcfcfd}
.k3rep{display:flex;gap:8px;align-items:center;justify-content:space-between;border:1px solid #cfd4dc;border-radius:5px;padding:3px 8px;min-height:30px;font-size:14px}
.k3rep.has{background:#f6fef9;border-color:#a6e3c0}
.k3ban{border-radius:8px;padding:8px 11px;margin-bottom:10px;font-size:14px;border:1px solid}
.k3ban b{display:block;font-size:14px}
.k3ban.r{background:#fef3f2;border-color:#fecdca;color:#912018}
.k3ban.b{background:#d9edf7;border-color:#bce8f1;color:#31708f}
.k3ban.g{background:#ecfdf3;border-color:#a6e3c0;color:#05603a}
.k3ban.w{background:#fffaf0;border-color:#f5d48a;color:#7a4a05}
[data-ro] .k3f input,[data-ro] .k3f select{background:#f2f4f7}
/* the screens that became chapters: no card inside a card */
.k3sb .card.pad0{border:0;box-shadow:none;border-radius:0;margin:0 0 10px;background:none}
.k3sb .card.pad0 > .sec-h{padding:4px 0 6px;border-bottom:1px solid #d0d5dd}
.k3sb .card.pad0 > .sec-h h2{font-size:14px;color:#333333}
.k3sb .card.pad0 table td:first-child,.k3sb .card.pad0 table th:first-child{padding-right:2px}
.k3sb .card.pad0 > div:last-child{padding-left:0;padding-right:0}
.k3sb .kcard{border:0;border-radius:0;padding:0;margin:0 0 12px;background:none}
.k3sb .kcard + .kcard,.k3sb .kgrid2 + .kcard,.k3sb .kcard + .kgrid2{border-top:1px solid #eaecf0;padding-top:12px}
.k3sb .kgrid2,.k3sb .kgrid3{gap:14px}
.k3sb .kcard h3,.k3sb .kh3{font-size:14px;color:#555555}
/* the head of a screen that became a chapter: its title is the chapter's title; the state and the action buttons stay */
.k3sb .ksh{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:0;border:0;background:none;flex-wrap:wrap}
.k3sb .ksh > div:first-child{flex:1;min-width:200px}
.k3sb .ksh h2{font-size:0;margin:0;line-height:1}.k3sb .ksh h2 .kpill{font-size:14px;margin:0 0 0 6px}
.k3sb .ksh p{margin:2px 0 0;font-size:14px;color:#666666}
.k3sb .ksha{margin:0;display:flex;gap:8px;flex-wrap:wrap}
.k3sb .kstick{position:static}
.k3ho h3{font-size:14px;color:#555555;margin:10px 0 4px}.k3ho .kbar{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.k3sb [data-close]{display:none}
.k3docs .kdocs{grid-template-columns:repeat(2,minmax(0,1fr))}
.k3docs > h3:first-child,.k3docs > .kx-x{display:none}
@container (max-width:640px){.k3sb .kgrid2,.k3sb .kgrid3,.k3sb .kg4,.k3sb .kg3,.k3ho h3{font-size:14px;color:#555555;margin:10px 0 4px}.k3ho .kbar{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.k3sb [data-close]{display:none}
.k3docs .kdocs{grid-template-columns:1fr}}
/* middle: tasks and activity */
.kmain.k3 > .k3act,.k3info{position:sticky;top:calc(70px + var(--kfx,0px))}
.k3act > .k3col{display:flex;flex-direction:column;max-height:calc(100vh - 82px - var(--kfx,0px))}
.k3act > .k3col > .k3b{overflow-y:auto;flex:1;min-height:120px;overscroll-behavior:contain}
.k3act .knext{border-radius:8px;padding:10px 12px;margin-bottom:10px}.k3act .knext .nb{font-size:15.5px;line-height:1.4}.k3act .ktk{font-size:14px}.k3act .ktk .t{-webkit-line-clamp:unset;display:block;overflow:visible}
#k3actb{display:flex;gap:8px;align-items:center}
.k3acts{margin:0 0 8px}
.k3act .knext > [data-open="tnewc"]{display:none}
.k3tries{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:14px;color:#333333}
.k3tries span{display:inline-flex;gap:4px}.k3tries i{width:11px;height:11px;border-radius:50%;background:#e4e7ec;display:block}
.k3tries i.no{background:#f04438}.k3tries i.now{background:#5cb85c;box-shadow:0 0 0 3px #d1fadf}.k3tries b{font-weight:600}
.k3hist{min-height:0;padding:0}
.k3hist [data-open="dnote"]{display:none}
/* the journal: one row of filters, then entries that are read without opening anything – a line wraps, nothing is cut */
.khfil{display:flex;flex-wrap:wrap;gap:6px 14px;margin:2px 0 8px}
.k3hist .kchips{gap:5px}.k3hist .kchip{border-radius:6px;padding:3px 10px;font-size:14px}
.k3hist .kev{border:1px solid #e4e7ec;border-radius:8px;padding:8px 11px;margin-bottom:6px;border-inline-start:3px solid #d0d5dd;font-size:14px;line-height:1.5}
.k3hist .kev .h{flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.k3hist .kev .h b{flex:1 1 50%;min-width:0;display:block;overflow:visible;white-space:normal;overflow-wrap:anywhere;font-weight:600;line-height:1.45}
.k3hist .kev .h small{margin-inline-start:auto;margin-right:0;font-size:14px;color:#666666;white-space:nowrap}
.k3hist .kev .s{background:none;border-radius:0;padding:0;margin-top:3px;color:#333333}
.k3hist .kev[data-g="calls"] .s{background:#f6f8fa;border-radius:6px;padding:8px 10px;margin-top:6px}
.k3hist .kev.q{border:0;border-inline-start:3px solid #e4e7ec;border-radius:0;padding:2px 11px;color:#555555}.k3hist .kev.q .h b{font-weight:500}
.k3hist .kev .x{display:none;gap:14px;margin-top:5px}.k3hist .kev:hover .x,.k3hist .kev:focus-within .x{display:flex}.k3hist .kev .x .klnk{font-size:14px;color:#555555;font-weight:500}
@media(hover:none){.k3hist .kev .x{display:flex}}
.k3hist details.kev > summary{display:flex}.k3hist details.kev > summary b:after{content:" ›";color:#666666}.k3hist details.kev[open] > summary{margin-bottom:6px}
.k3hist details.kev > .kev{margin-bottom:4px}
.k3hist .kev[data-g="calls"]{border-inline-start-color:#428bca}.k3hist .kev[data-g="wa"]{border-inline-start-color:#25a45c}.k3hist .kev[data-g="docs"]{border-inline-start-color:#f0ad4e}.k3hist .kev[data-g="tasks"]{border-inline-start-color:#067647}.k3hist .kev[data-g="agent"]{border-inline-start-color:#7a5af8}.k3hist .kev[data-g="notes"]{border-inline-start-color:#17384d}
.k3hist .kev.pin{border-color:#f5d48a}
.k3hist .kday{font-size:14px;font-weight:700;color:#333333;margin:12px 0 6px;display:flex;align-items:center;gap:8px}.k3hist .kday:first-child{margin-top:2px}.k3hist .kday:after{content:"";flex:1;border-top:1px solid #e4e7ec}
.k3hist .kev.q{margin-bottom:4px}
.k3hist [data-khl]:not(.all) > [data-o]{display:none!important}
.k3askw{border-top:1px solid #e4e7ec;padding:8px 12px;flex:none}
.k3ask{display:flex;gap:6px;margin:0;align-items:center}
.kx .k3ask input{flex:1;min-width:0;border:1px solid #cfd4dc;border-radius:7px;padding:6px 10px;height:34px;font:inherit;font-size:14px;margin:0;box-shadow:none}
.k3ai{margin-top:6px}.k3ai > summary{font-size:14px;color:#666666;cursor:pointer}.k3ai .aidock{display:block;margin-top:6px}
.k3ai:not([open]) > summary{display:none}
/* the call inside the card */
.k3act.live > .k3col{border:2px solid #d92d20}
.k3act.live .k3h{background:#fef3f2;border-color:#fecdca;color:#912018}.kx .k3act.live h2.k3h{color:#912018}
.k3ob{background:#fffaf0;border:1px solid #f5d48a;border-radius:8px;padding:9px 11px;margin-bottom:9px;font-size:14px}
.k3ob small{color:#7a4a05;display:block}.k3ob b{display:block;margin-top:3px;font-size:14px}.k3ob .ln{margin-top:5px;color:#31708f}
.k3warn{background:#fef3f2;border:1px solid #fecdca;color:#912018;border-radius:8px;padding:7px 10px;margin-bottom:8px;font-size:14px}
.k3soft{background:#f2f4f7;border-radius:8px;padding:7px 10px;margin-bottom:8px;font-size:14px;color:#333333}
.k3pt{display:flex;gap:8px;padding:6px 7px;border-radius:8px;align-items:flex-start;font-size:14px;border:1px solid transparent;background:none;width:100%;text-align:right;font-family:inherit;cursor:pointer;color:#333333;line-height:1.4}
.k3pt:hover{background:#f9fafb}
.k3pt i{font-style:normal;width:20px;height:20px;border-radius:50%;background:#f2f4f7;display:grid;place-items:center;font-size:14px;font-weight:700;flex:none;color:#555555}
.k3pt > span{min-width:0;flex:1}.k3pt b{font-weight:500;display:block}.k3pt em,.k3pt small{display:none;font-style:normal}
.k3pt.d{color:#666666}.k3pt.d i{background:#dcfae6;color:#067647;font-size:0}.k3pt.d i::before{content:"✓";font-size:14px}
.k3pt.on{background:#d9edf7;border-color:#bce8f1;cursor:default}.k3pt.on i{background:#428bca;color:#fff}.k3pt.on b{font-weight:700}
.k3pt.on em{display:block;margin-top:5px;font-size:14px;color:#31708f;background:#fff;border:1px dashed #bce8f1;border-radius:7px;padding:5px 8px}
.k3full .k3pt small{display:block;color:#666666;font-size:14px}.k3pt.d small{display:none!important}
.k3num{display:flex;gap:10px;align-items:center;background:#f9fafb;border:1px solid #e4e7ec;border-radius:8px;padding:8px 10px;margin:9px 0;font-size:14px}
.k3num:empty{display:none}
.k3num small{display:block;color:#666666;font-size:14px}.k3num b{font-size:14.5px}
.k3num .sv{margin-inline-start:auto;background:#ecfdf3;border-radius:7px;padding:4px 9px}.k3num .sv small,.k3num .sv b{color:#05603a}
.k3chips{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0}
.k3chips button{border:1px solid #d0d5dd;border-radius:999px;padding:3px 10px;font-size:14px;background:#fff;cursor:pointer;font-family:inherit;color:#333333}
.k3chips button.on{background:#428bca;color:#fff;border-color:#428bca}
.k3note{color:#666666;font-size:14px;margin:6px 0}
.k3tr{max-height:240px;overflow-y:auto;border:1px solid #e4e7ec;border-radius:8px;padding:7px 9px;margin:8px 0;font-size:14px;background:#fcfcfd}
.k3tr .l{margin-bottom:4px}.k3tr .l b{margin-inline-end:6px;color:#555555}.k3tr .l.c b{color:#428bca}.k3tr .l i{color:#666666;font-style:normal}
.k3extra{display:flex;gap:6px;align-items:center;font-size:14px;margin:4px 0;flex-wrap:wrap}.k3extra input{width:110px;height:28px;border:1px solid #5cb85c;border-radius:5px;padding:2px 6px;font:inherit;font-size:14px;background:#f0fdf6}
#k3end .k3f{margin-bottom:8px}
.k3help{display:flex;border:1px solid #d0d5dd;border-radius:7px;overflow:hidden;font-size:14px}.k3help button{border:0;background:#fff;padding:3px 8px;cursor:pointer;font-family:inherit;font-size:14px}.k3help button.on{background:#428bca;color:#fff}
/* left: contacts, who is responsible, the numbers */
.k3info{display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 82px);overflow-y:auto}
.k3info .k3col{flex:none}
.k3info .k3h{min-height:36px;font-size:14px}
.k3ct{border:1px solid #cfe9d6;border-radius:7px;overflow:hidden;margin-bottom:6px;font-size:14px}
.k3ct:last-child{margin-bottom:0}
.k3ctn{display:flex;gap:6px;align-items:baseline;background:#e7f6ea;padding:5px 9px;font-weight:700;flex-wrap:wrap}
.k3ctn small{font-weight:400;color:#555555;font-size:14px}
.k3ct > span,.k3ct > div:not(.k3ctn){padding:6px 9px;display:flex;justify-content:space-between;gap:6px;align-items:center;flex-wrap:wrap}
.k3kv{display:flex;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid #f2f4f7;font-size:14px;align-items:center;margin:0}
.k3kv:last-child{border-bottom:0}.k3kv > span{color:#666666;white-space:nowrap}.k3kv b{text-align:left;min-width:0}
.kx .k3kv select{border:1px solid transparent;background:none;font:inherit;font-weight:700;font-size:14px;padding:1px 2px;height:auto;margin:0;max-width:140px;box-shadow:none;border-radius:5px;cursor:pointer;text-align:left;direction:rtl}
.kx .k3kv select:hover,.kx .k3kv select:focus{border-color:#cfd4dc;background:#fff}
.kmore.k3mr .pop{right:auto;left:0;min-width:190px}
.k3strip{display:none}
.kbtn.k3hang{border-color:#f04438;color:#b42318;background:#fff}
.kx button.k3ctn,.kx a.k3ctn{width:100%;border:0;text-align:right;font-family:inherit;font-size:14px;cursor:pointer;color:#333333;text-decoration:none;margin:0}
.k3info .kp{padding:5px 0;font-size:14px;gap:8px}.k3info .kp > span{color:#666666;white-space:nowrap}
.kx .k3info .kp select{border:1px solid transparent;background:none;font:inherit;font-weight:700;font-size:14px;padding:1px 2px;height:auto;min-height:0;margin:0;max-width:130px;box-shadow:none;border-radius:5px;cursor:pointer}
.kx .k3info .kp select:hover,.kx .k3info .kp select:focus{border-color:#cfd4dc;background:#fff}
.k3info .kp form{margin:0}
.k3tabs{display:none}
@media(max-width:1500px){.kmain.k3{gap:10px;padding:10px 12px 40px}}
/* a small laptop: the left column becomes one line above; the form and the activity stay side by side */
@media(max-width:1180px){
.kmain.k3{grid-template-columns:minmax(0,1fr) 380px}
.kmain.k3 > .kcen{order:1}.kmain.k3 > .kcol-l{order:2;display:block;top:calc(116px + var(--kfx,0px))}.k3act > .k3col{max-height:calc(100vh - 128px - var(--kfx,0px))}.kmain.k3 > .kcol-l > *{order:0}
.kmain.k3 > .k3info{order:0;grid-column:1/-1;position:static;max-height:none;overflow:visible;flex-direction:row;flex-wrap:wrap;gap:8px}
.k3info > .k3col{display:none;flex:1 1 220px}
.k3info.open > .k3col{display:block}
.k3strip{display:flex;gap:6px;align-items:center;flex-wrap:wrap;flex:1 1 100%}
.k3strip .k3tag{font-size:14px;padding:2px 9px}
}
/* a phone: one column, three tabs, the next step on top */
@media(max-width:760px){
.kmain.k3{grid-template-columns:minmax(0,1fr);padding:8px 10px 90px;gap:8px}
.k3tabs{display:flex;order:-1;border:1px solid #d0d5dd;border-radius:9px;overflow:hidden;background:#fff}
.k3tabs button{flex:1;border:0;background:#fff;padding:11px 4px;font-weight:700;font-family:inherit;font-size:14px;color:#333333;min-height:44px}
.k3tabs button[aria-selected=true]{background:#428bca;color:#fff}
#k3top{order:-2}#k3top .knext{margin:0 0 6px;border-radius:8px}#k3top .k3acts{margin:0}
.kmain.k3 > .kcen,.kmain.k3 > .k3act,.kmain.k3 > .k3info{display:none}
.kmain.k3[data-tab=f] > .kcen,.kmain.k3[data-tab=a] > .k3act,.kmain.k3[data-tab=n] > .k3info{display:block}
.kmain.k3[data-tab=n] > .k3info{display:flex;flex-direction:column}
.k3strip{display:none}.k3info > .k3col{display:block;flex:none}
.kmain.k3 > .k3act,.k3info{position:static}.k3act > .k3col,.k3info{max-height:none}.k3act > .k3col > .k3b{overflow:visible}
.kx .k3col .k3f input,.kx .k3col .k3f select{min-height:44px;height:44px;font-size:16px}
.kx .k3ask input{height:44px;font-size:16px}
.k3acts .kbtn,.knext .kbtn,.k3ask .kbtn{min-height:44px}
.k3s > summary,.kx a.k3s.lnk{padding:13px 0 11px}
.k3s > summary small,a.k3s.lnk small{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
/* during a call: the call on top, only the chapter the call is in, and what was heard */
.kmain.k3.oncall > .k3tabs,.kmain.k3.oncall > #k3top{display:none}
.kmain.k3.oncall > .k3act{display:block;order:-1}.kmain.k3.oncall > .kcen{display:block}.kmain.k3.oncall > .k3info{display:none}
.kmain.k3.oncall .k3s:not(.here),.kmain.k3.oncall a.k3s.lnk,.kmain.k3.oncall .k3ban{display:none}
.kmain.k3.oncall .k3pt:not(.on){display:none}
.kmain.k3.oncall .k3pills{display:flex}
.kmain.k3.oncall .k3askw,.kmain.k3.oncall .k3chips,.kmain.k3.oncall .klh{display:none}
.kmain.k3.oncall.ending .k3s{display:none}
}
.k3pills{display:none;gap:5px;flex-wrap:wrap;margin-bottom:8px}
.k3pills span{border-radius:999px;padding:1px 8px;font-size:14px;font-weight:700;background:#f2f4f7;color:#333333;white-space:nowrap}
.k3pills span.d{background:#dcfae6;color:#05603a}.k3pills span.on{background:#d9edf7;color:#31708f}
.k3heard{display:none}
@media(max-width:760px){.kmain.k3.oncall .k3heard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0}
.k3heard div{border:1px solid #5cb85c;background:#f0fdf6;border-radius:6px;padding:5px 8px;font-size:14px}.k3heard small{display:block;color:#067647;font-size:14px;font-weight:700}.k3heard b{font-size:14px}}

/* ---------- 1. the frame ---------- */
body,.main{background:#ffffff}
@media(min-width:901px){
.app > .sidebar{width:86px;padding:12px 0 8px;overflow-x:hidden;margin:0;box-shadow:none;background:#333333;transition:none}
.app > .sidebar .brand{justify-content:center;padding:0 0 10px}
.app > .sidebar .brand > span:not(.mk){display:none}
.app > .sidebar .brand .mk{width:34px;height:34px;border-radius:9px;background:#428bca;font-size:15px}
.app > .sidebar .grp{display:block;height:1px;padding:0;margin:6px 12px;font-size:0;background:#23445a}
.app > .sidebar .brand + .grp{display:none}
.app > .sidebar a:not(.brand){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 2px;border-radius:0;margin:0;font-size:14px;text-align:center;position:relative;line-height:1.25;border:0;border-inline-start:3px solid transparent;color:#c5d2dc}
.app > .sidebar a:not(.brand) > span:not(.n){display:block}
.app > .sidebar a:not(.brand):hover{background:#14303f;color:#fff}
.app > .sidebar a.on{background:#17384d;box-shadow:none;border-inline-start-color:#5bc0de;color:#fff;font-weight:700}
.app > .sidebar a .n{position:absolute;top:2px;inset-inline-end:12px;font-size:14px;min-width:16px;line-height:16px;padding:0 4px;margin:0;font-weight:700}
.app > .sidebar .me{padding-top:6px;margin-top:auto}
}
.topbar{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;min-height:54px;padding:7px 14px;gap:9px;border-bottom:1px solid #e4e7ec}
.topbar .search{flex:0 1 210px;max-width:210px}
.topbar .ph{margin:0;flex:1 1 auto;min-width:0;flex-wrap:nowrap;align-items:center;gap:8px;min-height:0}
.topbar .ph > div:first-child{min-width:0;flex:0 1 auto}
.topbar .ph h1{font-size:17px;font-weight:700;white-space:nowrap;margin:0;letter-spacing:0;gap:8px;flex-wrap:nowrap}
.topbar .ph .sub{font-size:14px;margin:0;white-space:normal;overflow:visible;color:#666666;max-width:52vw;overflow-wrap:anywhere}
.topbar .ph .crumb{font-size:14px;color:#666666;margin:0;display:block}
.topbar .ph .crumb a{color:#428bca}
.topbar .ph > .k4sp{flex:1}
.topbar .ph + .tb-gap{display:none}
.k4ttl{display:flex;flex-direction:column;min-width:0;flex:none}
.k4ttl b{font-size:17px;white-space:nowrap;line-height:1.3}
.k4ttl span{font-size:14px;color:#666666;white-space:normal;overflow:visible;max-width:40vw;overflow-wrap:anywhere}
.k4fl{display:flex;gap:5px;flex-wrap:nowrap;align-items:center;min-width:0;overflow:hidden}
.k4fl a,.k4fl button{border:1px solid #d0d5dd;border-radius:6px;padding:3px 9px;font-size:14px;background:#fff;color:#333333;white-space:nowrap;text-decoration:none;font-family:inherit;cursor:pointer;line-height:1.5}
.k4fl a:hover,.k4fl button:hover{background:#f2f4f7}
.k4fl a.on,.k4fl button.on{background:#428bca;color:#fff;border-color:#428bca;font-weight:600}
.k4fl a.warn:not(.on){border-color:#fecdca;color:#912018;background:#fef3f2}
/* ---------- 2. the older screens in the same look ---------- */
.main:not(.kpage) .wrap,.main:not(.kpage) .wrap.wide{max-width:none;padding:12px 14px 70px}
.main:not(.kpage) .wrap.full{padding:0}
.wrap .card{border:1px solid #dfe4ea;border-radius:10px;box-shadow:none}
.wrap .card > .sec-h{background:#d9edf7;border-bottom:1px solid #bce8f1;border-radius:10px 10px 0 0;padding:7px 12px;min-height:40px}
.wrap .card > .sec-h h2,.wrap .card > .sec-h h3{font-size:14px;color:#31708f;font-weight:700}
.wrap .card.pad{padding:12px 14px}
.wrap table th{font-size:14px;color:#555555;font-weight:600;border-bottom:1px solid #d0d5dd;background:none}
.wrap table td{border-bottom:1px solid #f2f4f7}
.wrap .tabs{gap:5px;border:0;margin-bottom:10px;flex-wrap:wrap}
.wrap .tabs a{border:1px solid #d0d5dd;border-radius:6px;padding:4px 10px;font-size:14px;background:#fff;color:#333333;margin:0}
.wrap .tabs a.on{background:#428bca;color:#fff;border-color:#428bca;font-weight:600;box-shadow:none}
.wrap .tabs a.on .n,.wrap .tabs a.on small{color:#fff}
.wrap .card:not(.pad0):not(.flat) > h2:first-child{margin:-16px -16px 12px;padding:8px 12px;background:#d9edf7;border-bottom:1px solid #bce8f1;border-radius:10px 10px 0 0;font-size:14px;color:#31708f;font-weight:700;min-height:40px;display:flex;align-items:center;gap:8px}
@media(max-width:900px){.wrap .card:not(.pad0):not(.flat) > h2:first-child{margin:-12px -14px 10px}}
.wrap .card{margin-bottom:12px}
.k4 > .k4leg > .card:last-child,.k4c > .card{margin-bottom:0}
/* ---------- 3. the building blocks of the new screens ---------- */
.k4{display:grid;grid-template-columns:minmax(0,1fr) clamp(400px,24vw,470px) clamp(290px,19.5vw,370px);gap:12px;padding:12px 14px 50px;align-items:start}
.k4.t-two{grid-template-columns:minmax(0,1fr) clamp(236px,17vw,330px)}
.k4.t-mid{grid-template-columns:minmax(0,1fr) clamp(430px,26vw,500px) clamp(250px,16vw,320px)}
.k4.t-chat{grid-template-columns:clamp(300px,21vw,400px) minmax(0,1fr) clamp(260px,18vw,340px)}
.k4.t-menu{grid-template-columns:250px minmax(0,1fr) clamp(280px,18vw,340px)}
.k4.t-half{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
.k4.t-lst{grid-template-columns:520px minmax(0,1fr) 236px}
.k4.t-side{grid-template-columns:236px minmax(0,1fr);padding:0}
.k4leg{min-width:0}
.k4 > .k4c{display:flex;flex-direction:column;gap:12px;min-width:0}
.k4.t-new{grid-template-columns:minmax(0,1fr) 400px}
/* the name cell of a list: the name is never cut. Line 1 – the name (it wraps when it is long) and its tags; line 2 – the phone and the number of the deal, small */
.k4who .l1{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;min-width:0}
.k4who .l1 .nm{font-weight:700;overflow-wrap:anywhere;min-width:0;flex:1 1 0}
.k4who .l1 .dot{flex:none;align-self:flex-start;margin-top:7px}.k4who .l1 .pill{flex:none;white-space:nowrap}
.k4who .l2{display:flex;gap:4px 10px;flex-wrap:wrap;font-size:14px;color:#666666;margin-top:1px;padding-inline-start:15px}
.k4who .l2 bdi{white-space:nowrap}
@media(max-width:900px){table.rs td.k4who{display:block;text-align:start}}
/* a laptop: the columns that matter least give their room to the next step */
@media(max-width:1500px){.k4tb .hide-l{display:none}}
.k4rw span.el{white-space:normal;overflow:visible}
@media(max-width:760px){.k4ttl{flex:1 1 auto}.k4ttl span{white-space:normal;max-width:none}.k4rw p.k4mut{white-space:normal}}
.k4 > .k4st{position:sticky;top:calc(66px + var(--kfx,0px));max-height:calc(100vh - 78px - var(--kfx,0px));overflow-y:auto}
.k4 .k3col{overflow:hidden}
.k4 .k3h a.kbtn,.k4 .k3h .kbtn{margin-inline-start:0}
.k3b.p0{padding:0}
.k4sec{border-bottom:2px solid #17384d;display:flex;align-items:baseline;gap:8px;padding:10px 0 5px;font-weight:700;font-size:14px;margin:0 0 8px;color:#333333}
.k4sec:first-child{padding-top:0}
.k4sec small{font-weight:400;color:#666666;font-size:14px}
.k4rw{display:grid;align-items:center;gap:10px;padding:7px 12px;border-bottom:1px solid #f2f4f7;font-size:14px;min-height:38px;color:#333333;text-decoration:none}
a.k4rw:hover{background:#f4f8fc}
.k4rw.h{color:#555555;font-weight:600;font-size:14px;border-bottom:1px solid #d0d5dd;min-height:30px;padding-block:5px}
.k4rw.sel,a.k4rw.sel:hover{background:#d9edf7;border-inline-start:3px solid #428bca;padding-inline-start:9px}
.k4rw b{font-size:14px}
.k4rw > *{min-width:0}
.k4rw p,.k4rw .el{white-space:normal;overflow:visible;margin:0;overflow-wrap:anywhere}
.k4rw .act{display:flex;gap:5px;justify-content:flex-end}
.k4rw form{margin:0}
.k4grp{background:#f9fafb;border-bottom:1px solid #e4e7ec;padding:5px 12px;font-size:14px;font-weight:700;color:#333333;display:flex;gap:8px;align-items:center}
.k4grp.r{background:#fef3f2;color:#912018}
.k4grp span{font-weight:400;color:#666666}
.k4dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:#98a2b3;flex:none}
.k4dot.h{background:#d92d20}.k4dot.w{background:#f0ad4e}.k4dot.g{background:#5cb85c}
.k4late{color:#912018;font-weight:700}
.k4mut{color:#666666}
.k4nx{background:#fff5f6;border:1px solid #fecdd6;border-radius:8px;padding:9px 11px;margin-bottom:10px}
.k4nx > small{color:#b0103f;font-weight:700;font-size:14px;display:block}
.k4nx > b{display:block;font-size:14.5px;margin:2px 0 7px}
.k4nx > b span{font-weight:400;font-size:14px;color:#666666}
.k4row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.k4row form{margin:0}
.k4kv{display:flex;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid #f2f4f7;font-size:14px;margin:0}
.k4kv:last-child{border-bottom:0}
.k4kv > span{color:#666666}
.k4kv > b{text-align:end;min-width:0;flex:none;max-width:60%}
.k4it{border:1px solid #e4e7ec;border-radius:6px;padding:6px 9px;margin-bottom:5px;display:flex;gap:8px;align-items:flex-start;font-size:14px;border-inline-start:3px solid #d0d5dd;color:#333333;text-decoration:none}
a.k4it:hover{background:#f9fafb}
.k4it.t{border-inline-start-color:#067647}.k4it.a{border-inline-start-color:#d92d20}.k4it.w{border-inline-start-color:#25a45c}.k4it.m{border-inline-start-color:#f0ad4e}
.k4it > span{min-width:0}.k4it .k4of{display:block;margin-top:1px;font-size:14px}
.k4it small{color:#666666;margin-inline-start:auto;white-space:nowrap;font-size:14px}
.k4pt{display:flex;gap:8px;padding:6px 7px;border-radius:8px;align-items:flex-start;font-size:14px;border:1px solid transparent}
.k4pt > i{font-style:normal;width:20px;height:20px;border-radius:50%;background:#f2f4f7;display:grid;place-items:center;font-size:14px;font-weight:700;flex:none;color:#555555}
.k4pt.on{background:#d9edf7;border-color:#bce8f1}
.k4pt.on > i{background:#428bca;color:#fff}
.k4say{margin-top:5px;font-size:14px;color:#31708f;background:#fff;border:1px dashed #bce8f1;border-radius:7px;padding:5px 8px}
.k4hint{font-size:14px;color:#666666;margin:4px 0 8px}
.k4pg{background:#e4e7ec;border-radius:4px;height:10px;display:block;margin:4px 0 6px}
.k4pg > i{display:block;height:10px;border-radius:4px;background:#428bca;max-width:100%}
.k4tiles{display:grid;gap:8px;margin-bottom:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.k4tiles > div{background:#fff;border:1px solid #dfe4ea;border-radius:10px;padding:9px 12px;min-width:0}
.k4tiles small{display:block;color:#666666;font-size:14px}
.k4tiles b{font-size:19px;white-space:nowrap}
.k4tiles .up{color:#05603a}.k4tiles .dn{color:#912018}
.k4br{display:grid;grid-template-columns:130px minmax(0,1fr) 70px;gap:8px;align-items:center;font-size:14px;padding:4px 0}
.k4br i{display:block;height:14px;border-radius:4px;background:#428bca}
.k4br b{text-align:end}
.k4ask{display:block;border-top:1px solid #e4e7ec;padding-top:10px;margin-top:10px}
.kx .k4ask input,.kx .k4ask textarea,.kx input.k4in,.kx select.k4in,.kx textarea.k4in{width:100%;border:1px solid #cfd4dc;border-radius:7px;padding:7px 10px;background:#fff;font:inherit;font-size:14px;min-height:34px;margin:0;box-shadow:none;max-width:none}
.k4cl{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;align-items:center;padding:8px 12px;border-bottom:1px solid #f2f4f7;color:#333333;text-decoration:none}
a.k4cl:hover{background:#f4f8fc}
.k4cl.sel,a.k4cl.sel:hover{background:#d9edf7}
.k4cl b{font-size:14px;display:block;white-space:normal;overflow:visible;;overflow-wrap:anywhere}
.k4cl p{white-space:normal;overflow:visible;color:#666666;font-size:14px;margin:0;overflow-wrap:anywhere}
.k4cl small{font-size:14px;color:#666666;text-align:end;display:block;white-space:nowrap}
.k4cl em{font-style:normal;background:#067647;color:#fff;border-radius:999px;font-size:14px;font-weight:700;padding:1px 6px;display:inline-block;margin-top:3px}
.k4av{width:34px;height:34px;border-radius:9px;background:#428bca;color:#fff;display:grid;place-items:center;font-weight:700;flex:none}
.k4chat{background:#ffffff;padding:12px 16px;display:flex;flex-direction:column;gap:6px;overflow-y:auto;min-height:260px;height:calc(100vh - 390px)}
.k4bub{max-width:72%;border-radius:10px;padding:7px 10px;font-size:14px;background:#fff;border:1px solid #e4e7ec;align-self:flex-start;overflow-wrap:anywhere}
.k4bub .bt{white-space:pre-wrap;display:block}
.k4bub.o{align-self:flex-end;background:#dff3ee;border-color:#b7e0d6}
.k4bub.fail{background:#fef3f2;border-color:#fecdca}
.k4bub small{display:block;font-size:14px;color:#666666;margin-top:2px;text-align:end;white-space:normal}
.k4bub .who{font-size:14px;font-weight:700;color:#3071a9;display:block;margin-bottom:1px}
.k4day{align-self:center;background:#fff;border:1px solid #e4e7ec;border-radius:999px;font-size:14px;color:#555555;padding:2px 10px;text-align:center}
.k4sg{background:#fffaf0;border:1px solid #f5d48a;border-radius:10px;padding:9px 11px;margin:8px 12px}
.k4sg > small{color:#7a4a05;font-weight:700;display:block;margin-bottom:3px}
.k4sg p{font-size:14px;margin:0 0 7px;white-space:pre-wrap}
.k4cmp{display:flex;gap:6px;align-items:flex-end;padding:9px 12px;border-top:1px solid #e4e7ec;background:#fff}
.kx .k4cmp textarea{flex:1;border:1px solid #cfd4dc;border-radius:8px;padding:8px 10px;min-height:38px;height:38px;resize:vertical;font:inherit;font-size:14px;margin:0;box-shadow:none;max-width:none}
.k4chips{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0}
.k4chips button,.k4chips a{border:1px solid #d0d5dd;border-radius:999px;padding:3px 10px;font-size:14px;background:#fff;color:#333333;font-family:inherit;cursor:pointer;text-decoration:none}
.k4chips button.on,.k4chips a.on{background:#428bca;color:#fff;border-color:#428bca}
.k4mn h3{font-size:14px;color:#666666;padding:10px 12px 4px;font-weight:700;margin:0}
.k4mn a{display:flex;align-items:center;gap:8px;padding:7px 12px;color:#333333;text-decoration:none;font-size:14px;border-bottom:1px solid #f2f4f7}
.k4mn a:hover{background:#f4f8fc}
.k4mn a.on{background:#d9edf7;font-weight:700}
.k4mn a{white-space:nowrap}
.k4mn a small{margin-inline-start:auto;color:#666666;font-size:14px;font-weight:400;display:block;white-space:normal;text-align:end;min-width:0;flex:0 1 auto;padding-inline-start:8px}
.k4mn a small .k4dot{margin-inline-end:4px;width:7px;height:7px}
.k4flat > .card{border:0;padding:0;margin:0;box-shadow:none;background:none}
.k4flat > .card > h2:first-child{display:none!important}
.kx .k4flat > .card{border:0!important;padding:0!important;margin:0!important;box-shadow:none!important;background:none!important}
.k4flat .actions{margin-top:8px}
.k4x2.on{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;align-items:start}
.k4hire{margin-top:12px}
@media(max-width:1180px){.k4x2.on{grid-template-columns:minmax(0,1fr)}}
.k4empty{padding:22px 14px;text-align:center;color:#666666;font-size:14px}
.k4empty b{display:block;color:#333333;font-size:14px;margin-bottom:3px}
.k4strip{display:none}
@media(max-width:1500px){.k4{grid-template-columns:minmax(0,1fr) 370px 220px;gap:10px;padding:10px 12px 50px}.k4.t-mid{grid-template-columns:minmax(0,1fr) 390px 230px}.k4.t-chat{grid-template-columns:280px minmax(0,1fr) 240px}.k4.t-lst{grid-template-columns:460px minmax(0,1fr) 220px}.k4.t-menu{grid-template-columns:230px minmax(0,1fr) 250px}}
/* a small laptop: the left column becomes a line above */
@media(max-width:1180px){
.k4,.k4.t-mid{grid-template-columns:minmax(0,1fr) 340px}
.k4.t-two,.k4.t-half,.k4.t-new{grid-template-columns:minmax(0,1fr)}
.k4.t-lst{grid-template-columns:360px minmax(0,1fr)}
.k4.t-chat{grid-template-columns:260px minmax(0,1fr)}
.k4.t-menu{grid-template-columns:210px minmax(0,1fr)}
.k4.t-side{grid-template-columns:200px minmax(0,1fr)}
.k4 > .k4l{grid-column:1/-1;order:-1;flex-direction:row;flex-wrap:wrap;position:static;max-height:none}
.k4 > .k4l > .k3col{flex:1 1 220px}
.k4.t-chat > .k4l,.k4.t-menu > .k4l{order:5}
}
/* a phone: one column; the list first, the chosen item on its own */
@media(max-width:900px){
.topbar .ph .sub{display:none}
.k4,.k4.t-two,.k4.t-new,.k4.t-mid,.k4.t-chat,.k4.t-menu,.k4.t-half,.k4.t-lst{grid-template-columns:minmax(0,1fr);padding:8px 10px 96px;gap:8px}
.k4 > .k4st{position:static;max-height:none}
.k4.has-sel > .k4list{display:none}
.k4:not(.has-sel) > .k4pick{display:none}
.k4back{display:inline-flex}
.k4chat{height:calc(100vh - 360px)}
.k4tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.k4rw .hide-m,.k4rw.h{display:none}
.k4rw{grid-template-columns:12px minmax(0,1fr) auto!important;gap:2px 8px;padding:9px 12px}
.k4rw > :nth-child(3){grid-column:2;grid-row:2;color:#666666}
.k4rw > .act{grid-column:3;grid-row:1/3}
.k4 > .k4l{order:5;flex-direction:column}
.k4.t-side{grid-template-columns:minmax(0,1fr)}
.k4.t-side > .k4mn{display:none}
.k4rw.nq{grid-template-columns:64px minmax(0,1fr) auto!important}
.k4rw.nq > :nth-child(3){grid-column:auto;grid-row:auto;color:inherit}
.kx .k4rw .kbtn,.kx .k4nx .kbtn,.kx .k4cmp .kbtn{min-height:44px}
}
@media(min-width:901px){.k4back{display:none}}
@media(max-width:700px){.kx .k3g{grid-template-columns:repeat(2,minmax(0,1fr))}.kx .k3g .w4,.kx .k3g .w3{grid-column:1/-1}}
.k4.t-doc{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) 224px;padding:12px 14px 40px}
.k4.t-doc > .kcen{min-width:0}
.k4view{position:sticky;top:calc(70px + var(--kfx,0px))}
.k4view iframe,.k4view img{display:block;width:100%;border:0;background:#f2f4f7}
.k4view iframe{height:calc(100vh - 150px);min-height:420px}
.k4view img{max-height:calc(100vh - 150px);object-fit:contain}
.k4it.on{background:#d9edf7;border-color:#bce8f1;font-weight:700}
.k4rd .ph{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;margin:0 0 10px}
.k4rd .ph h1{font-size:17px;margin:0}
.k4rd .ph .crumb{display:none}
.k4.t-doc .k4rd .ph a[target=_blank]{display:none}
@media(max-width:1500px){.k4.t-doc{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr) 204px;gap:10px;padding:10px 12px 40px}}
@media(max-width:1380px){.k4.t-doc{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}.k4.t-doc > .k4l{grid-column:1/-1;order:5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}}
@media(max-width:1100px){.k4.t-doc{grid-template-columns:minmax(0,1fr);padding:8px 10px 96px}.k4.t-doc > .kcen{order:1}.k4.t-doc > .k4view{order:2;position:static}.k4.t-doc > .k4l{order:3;grid-template-columns:minmax(0,1fr)}.k4view iframe{height:70vh}}
.k4.t-me{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 250px}
.kx label.k4tg{display:flex;gap:9px;align-items:flex-start;padding:7px 0;border-bottom:1px solid #f2f4f7;font-size:14px;font-weight:400;margin:0;cursor:pointer}
.kx .k4tg input{width:16px;height:16px;margin:2px 0 0;flex:none}
.k4tg small{display:block;color:#666666;font-size:14px}
.k4more > summary{cursor:pointer;list-style:none}
.k4more > summary::-webkit-details-marker{display:none}
.k4more > summary::after{content:'▾';margin-inline-start:auto;color:#666666;font-weight:400}
.k4more[open] > summary::after{content:'▴'}
.kx .kbtn.no{color:#b42318;border-color:#fda29b}
@media(max-width:1500px){.k4.t-me{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 220px}}
@media(max-width:1180px){.k4.t-me{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.k4.t-me > .k4l{grid-column:1/-1;order:5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}}
@media(max-width:900px){.k4.t-me{grid-template-columns:minmax(0,1fr);padding:8px 10px 96px;gap:8px}.k4.t-me > .k4l{grid-template-columns:minmax(0,1fr)}}
.k4 > .k4l.k4end{order:5}
.kx .kbtn.ok{background:#067647;color:#fff;border-color:#067647}
.kx .kbtn.ok:hover{background:#05603a}
.kx .kbtn.ok[disabled]{opacity:.5;cursor:not-allowed}
.k4in2{display:grid;grid-template-columns:minmax(0,1fr) 236px;gap:12px;align-items:start}
.k4in2 > .k4l{display:flex;flex-direction:column;gap:12px}
@media(max-width:1380px){.k4in2{grid-template-columns:minmax(0,1fr)}.k4in2 > .k4l{flex-direction:row;flex-wrap:wrap}.k4in2 > .k4l > *{flex:1 1 260px}}
.auth{background:#ffffff;background-image:none}
.auth .card{max-width:400px;padding:0 22px 22px;border:1px solid #dfe4ea;border-radius:10px;box-shadow:0 1px 2px rgba(16,24,40,.06);overflow:hidden;background:#fff}
.auth .card > .logo{margin:0 -22px 16px;padding:14px 22px;background:#333333;color:#fff;font-size:16px}
.auth .card > .logo:before{background:#428bca;border-radius:7px}
.auth .card > .logo small{color:#b8c7d1}
.auth .card h2{font-size:15px;margin:0 0 10px!important;padding:0 0 6px;border-bottom:2px solid #17384d;background:none}
.auth .card label{font-size:14px;font-weight:700;color:#333333;margin:10px 0 3px;display:block}
.auth .card input{border:1px solid #cfd4dc;border-radius:7px;min-height:38px}
.auth .card .btn{border-radius:7px;background:#428bca;border-color:#428bca}
.auth .card .btn.sec{background:#fff;color:#333333;border-color:#d0d5dd}
.k4leg .grid.side-r{grid-template-columns:290px minmax(0,1fr)}
.k4leg .grid > *{min-width:0}
.k4leg .card.pad0 table.rows td,.k4leg .card.pad0 table.rows th{padding-inline:8px}
@media(max-width:1380px){.k4leg .grid.side-r,.k4leg .grid.side{grid-template-columns:minmax(0,1fr)}}
.k3s.bkc > summary b{white-space:normal;min-width:0}
.k3s.bkc > summary small{flex:none}
@media(max-width:700px){.k3docs table,.k3docs tbody,.k3docs tr,.k3docs td{display:block;width:auto}.k3docs th{display:none}.k3docs tr{border-bottom:1px solid #e4e7ec;padding:7px 0}.k3docs tr:has(th){display:none}.k3docs td{padding:1px 0!important;border:0!important;text-align:start!important;white-space:normal!important}.k3docs td:empty,.k3docs td.kdread{display:none}
.k3s.bkc > summary{flex-wrap:wrap}.topbar .ph{flex-wrap:wrap}.topbar .ph h1{white-space:normal;font-size:15px}.topbar .ph > h1{min-width:0;flex:1 1 100%}}
@media print{.sidebar,.mnav,.topbar,.no-print,.aib,.aip,.k4fl,.k4back{display:none!important}.main{margin:0!important}.k4,.k4.t-half,.k4.t-two{display:block!important;padding:0!important}.k3col{break-inside:auto;border:0!important;margin-bottom:10px}body{background:#fff!important}}
/* a laptop: three columns do not fit without squeezing the list. The list keeps its room, and the side boxes sit under the middle column */
@media(max-width:1500px) and (min-width:1181px){
.k4:not([class*=" t-"]){grid-template-columns:minmax(0,1fr) 380px}
.k4:not([class*=" t-"]) > :first-child{grid-row:1 / span 2}
.k4:not([class*=" t-"]) > .k4l{grid-column:2}
}
/* inside a row of a list every cell wraps; a name is never cut */
.k4rw > *{min-width:0}.k4it > span,.k4it{min-width:0;overflow-wrap:anywhere}

body{font-size:14px;line-height:1.45;color:#333;background:#ffffff}
.app{display:block;min-height:100vh}
body,.main{background:#ffffff}
/* ---- the top bar ---- */
.ynav{display:flex;align-items:center;gap:1px;height:51px;padding:0 14px;background:#f8f8f8;border-bottom:1px solid #e7e7e7;position:relative;font-size:14px;z-index:30}
.ynav .yl{display:inline-flex;align-items:center;gap:5px;height:50px;padding:0 15px;color:#428bca;text-decoration:none;cursor:pointer;list-style:none;white-space:nowrap;font-weight:400;border:0;background:none;border-radius:0}
.ynav summary.yl::-webkit-details-marker{display:none}
.ynav .yl:hover,.ynav details[open] > .yl{background:#eeeeee}
.ynav .yl.on{color:#333;font-weight:700;box-shadow:inset 0 -3px 0 #428bca}
.ynav .yn{background:#e3e7ec;color:#333;border-radius:9px;font-size:14px;font-weight:700;padding:0 6px;line-height:17px;min-width:17px;text-align:center}
.ynav .yn.alert{background:#d9534f;color:#fff}
.ynav .ysep{width:1px;height:22px;background:#dde1e6;margin:0 7px;flex:none}
.ynav .tb-gap{flex:1;min-width:8px}
.ynav .menu{position:relative}
.ynav .menu > .pop{top:48px;inset-inline-start:0;inset-inline-end:auto;min-width:190px;border-radius:4px}
.ynav .menu > .pop a{font-size:14px;padding:7px 14px;border-radius:0}
.ynav .search{width:300px;max-width:28vw;margin:0 8px;position:relative}
.ynav .search input{height:34px;border:1px solid #ccc;border-radius:4px;background:#fff;font-size:14px;padding:6px 34px 6px 30px;width:100%;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}
.ynav .ybrand{display:inline-flex;align-items:center;gap:7px;color:#555;font-size:17px;text-decoration:none;padding:0 4px 0 2px;margin-inline-start:10px;white-space:nowrap}
.ynav .ybrand.on,.ynav .ybrand:hover{color:#333}
.ynav .bell .bn{position:static;margin-inline-start:2px}
@media(max-width:1180px){.ynav .search{width:200px}.ynav .yl{padding:0 8px}}
@media(max-width:900px){.ynav{height:46px;padding:0 8px}.ynav > a.yl,.ynav .ysep,.ynav > details.menu:not(.bell){display:none}.ynav .search{flex:1;width:auto;max-width:none}.ynav .yl{height:46px}}
/* ---- the head of a screen: its name, large, and its buttons ---- */
.main:not(.kpage) > .topbar{position:static;background:none;backdrop-filter:none;border:0;padding:14px 16px 4px;min-height:0;gap:12px;flex-wrap:wrap}
.main:not(.kpage) > .topbar .k4ttl b,.main:not(.kpage) > .topbar .ph h1{font-size:26px;font-weight:500;color:#428bca;line-height:1.25;white-space:normal}
.main:not(.kpage) > .topbar .k4ttl span,.main:not(.kpage) > .topbar .ph .sub{font-size:14px;color:#666;max-width:none;white-space:normal}
.main:not(.kpage) > .topbar .k4fl{flex-wrap:wrap;overflow:visible}
/* ---- panels ---- */
.k3col,.card,.kcard{border-radius:4px;border-color:#bce8f1;box-shadow:none}
.k3h{border-radius:3px 3px 0 0;background:#d9edf7;color:#31708f;border-bottom-color:#bce8f1;min-height:41px;padding:8px 14px;font-size:14px}
/* ---- fields: a bold label above, a full-height box ---- */
.k3f > span,.kx label.kfl > span,.field > label{font-size:14px;font-weight:700;color:#333;margin-bottom:3px;line-height:1.4}
.kx .k3col .k3f input,.kx .k3col .k3f select,.kx .k3col .k3f textarea,.kx input[type=text],.kx input[type=tel],.kx input[type=email],.kx input[type=number],.kx input[type=date],.kx input[type=search],.kx select,.kx textarea,.field input,.field select,.field textarea{min-height:34px;font-size:14px;border:1px solid #ccc;border-radius:4px;padding:6px 10px;color:#444;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}
.kx .k3col .k3f input,.kx .k3col .k3f select{height:34px}
.kx input:focus,.kx select:focus,.kx textarea:focus,.field input:focus,.field select:focus,.field textarea:focus,.ynav .search input:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgba(102,175,233,.5)}
.k3g{gap:9px 10px;margin-bottom:10px}
/* ---- buttons ---- */
.kbtn,.btn{border-radius:4px;font-weight:400;font-size:14px;padding:6px 12px;border-color:#ccc;color:#333;line-height:1.43;height:auto;min-height:34px}
.kbtn:hover,.btn:hover{background:#eee}
.kbtn.sm,.btn.sm{font-size:14px;padding:3px 9px;border-radius:3px;min-height:26px}
.kbtn.pri,.btn:not(.sec):not(.ghost):not(.sm):not(.danger):not(.icon){background:#428bca;border-color:#357ebd;color:#fff}
.kbtn.pri:hover{background:#357ebd}
.kbtn.call{background:#5cb85c;border-color:#4cae4c;color:#fff}.kbtn.call:hover{background:#4cae4c}
.kchip{border-radius:10px;font-weight:400;font-size:14px;padding:0 10px;border-color:#ccc;color:#333;line-height:18px}
.kchip.on{background:#5cb85c;border-color:#4cae4c;color:#fff}
.k4fl a,.k4fl button{border-radius:3px;font-size:14px;padding:3px 10px;border-color:#ccc;color:#333}
.k4fl a.on,.k4fl button.on{background:#428bca;border-color:#357ebd;color:#fff;font-weight:400}
.kpill,.pill{border-radius:3px;font-weight:400}
/* ---- tables ---- */
.kx th,th{font-size:14px;font-weight:700;color:#333;border-bottom:2px solid #ddd;padding:8px;background:none}
.kx td,td{padding:8px;border-top:1px solid #ddd;border-bottom:0;font-size:14px;line-height:20px}
.kx tbody tr:nth-child(odd) > td{background:#f9f9f9}.kx tbody tr:nth-child(even) > td{background:none}
.kx tbody tr:hover > td{background:#f5f5f5}
a{color:#428bca}
/* ---- the home table ---- */
.kx table.ytb th,.kx .ytb thead th{font-size:14px;font-weight:700;color:#333;background:none;border-bottom:2px solid #ddd;padding:8px}.kx table.ytb{table-layout:fixed}
.ytb td.nw,.ytb th.nw{white-space:nowrap;overflow-wrap:normal}
.ysrch form.search{width:auto;max-width:none}
/* ---- the client card: the name large, its statuses beside it, three columns ---- */
.khdr .teststripe{display:none}
.khdr .kx.ktop{background:#ffffff;border-bottom:1px solid #eeeeee;padding:10px 16px;gap:10px;min-height:0;align-items:center}
.khdr .kav{display:none}
.khdr .kwho{max-width:none;min-width:0;flex:0 1 auto;text-align:start}
.khdr .kwho b{font-size:36px;font-weight:500;color:#333;line-height:1.15;white-space:normal;overflow:visible}
.khdr .kwho small{font-size:14px;color:#666}
.khdr .kpath{display:none}
.yst{display:flex;gap:6px;flex-wrap:wrap;align-items:center;flex:1;min-width:0}
.yst span{background:#d9edf7;border-radius:3px;font-size:14px;padding:1px 9px;color:#31708f;white-space:nowrap}
.khdr .ksearch{display:none}
.kmain.k3{grid-template-columns:minmax(0,1fr) clamp(400px,31.5vw,605px) clamp(230px,15vw,290px);gap:14px;padding:14px 16px 40px}
.kcol-s{display:flex;flex-direction:column;gap:14px;min-width:0}
.kcol-s .k3col{max-height:none}.kcol-s .k3b{overflow:visible;min-height:0;padding:12px}
.k3col.ysucc{border-color:#d6e9c6}.k3col.ysucc > .k3h{background:#dff0d8;color:#3c763d;border-bottom-color:#d6e9c6}
.yct{border:1px solid #d6e9c6;border-radius:4px;overflow:hidden;margin-bottom:8px}.yct:last-child{margin-bottom:0}
.yct .n{background:#dff0d8;padding:6px 10px;font-weight:700;color:#3c763d;display:flex;justify-content:space-between;gap:8px;align-items:baseline;overflow-wrap:anywhere}
.yct .n small{font-weight:400;color:#557;font-size:14px}.yct .n .klnk{font-size:14px;font-weight:400;white-space:nowrap;flex:none}
.yct .r{padding:6px 10px;display:flex;justify-content:space-between;gap:8px;font-size:14px}
.ypr{margin-bottom:9px}.ypr b{display:block;font-size:14px;color:#555;font-weight:700}.ypr span{display:block;border:1px solid #ccc;border-radius:4px;background:#fff;padding:5px 9px;font-size:14px}
.ykv{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px;font-size:14px}.ykv form{margin:0}
.kx .ykv select{min-height:28px;height:28px;padding:1px 6px;font-size:14px;width:130px;box-shadow:none}
.ybt{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.k3own{display:none}
@media(max-width:1500px){.kmain.k3{grid-template-columns:minmax(0,1fr) 400px 230px;gap:10px;padding:10px 12px 40px}}
@media(max-width:1280px){.kmain.k3{grid-template-columns:minmax(0,1fr) 400px}.kmain.k3 > .kcol-s{grid-column:2}}
@media(max-width:900px){.kmain.k3{grid-template-columns:minmax(0,1fr)}.kmain.k3 > .kcol-s{grid-column:1;order:9}table.rs.ytb td[data-l=""]{display:block;text-align:start}.khdr .kwho b{font-size:20px}.yst{flex-basis:100%;order:9}}
/* ---- the journal: the day in the middle, the hour in green on the side ---- */
.k3hist .kday{justify-content:center;font-weight:400;font-size:14px;color:#666;margin:10px 0 3px}.k3hist .kday:after{display:none}
.k3hist .kev{border-radius:0;border-color:#ddd;border-inline-start-width:1px;border-inline-end:4px solid #d5dbe1;margin-bottom:-1px;padding:6px 10px}
.k3hist .kev[data-g="calls"]{border-inline-start-color:#ddd;border-inline-end-color:#428bca}.k3hist .kev[data-g="wa"]{border-inline-start-color:#ddd;border-inline-end-color:#5cb85c}
.k3hist .kev[data-g="docs"]{border-inline-start-color:#ddd;border-inline-end-color:#f0ad4e}.k3hist .kev[data-g="tasks"]{border-inline-start-color:#ddd;border-inline-end-color:#5cb85c}
.k3hist .kev[data-g="agent"]{border-inline-start-color:#ddd;border-inline-end-color:#8a7fc7}.k3hist .kev[data-g="notes"]{border-inline-start-color:#ddd;border-inline-end-color:#31708f}
.k3hist .kev.q{border:1px solid #eee;border-inline-end:4px solid #e6e9ed;margin-bottom:-1px;padding:4px 10px}
.k3hist .kev .h small{font-style:italic;color:#008000;font-size:14px}
.k3hist .kev .kty{background:#eef1f4;border-radius:3px;font-weight:400}
.k3hist details.kev > .kev{margin-bottom:-1px}
.knext{border-radius:4px}
/* ---- the status of the leads process is chosen where he is used to: a list, and an arrow to the next one ---- */
.ysel{display:flex;gap:4px;margin:0}
.kx .ysel select{flex:1;min-width:0;min-height:32px;height:32px;padding:3px 8px;font-size:14px;box-shadow:none}
.ysel .ynx{flex:none;width:32px;height:32px;border:1px solid #357ebd;background:#428bca;color:#fff;border-radius:4px;font-size:18px;line-height:1;cursor:pointer;font-family:inherit}
.ysel .ynx:hover{background:#357ebd}
.kmore.yadd > summary{list-style:none}
.kmore.yadd .pop{right:auto;left:0;min-width:210px;border-radius:4px}
.kmore .pop{border-radius:4px}.k3h .kmore .pop > *{font-weight:400;font-size:14px}
/* ---- windows: the name of the window in blue, a line under it, plain buttons ---- */
dialog.dlg{border-radius:6px;padding:0 0 16px;border:1px solid rgba(0,0,0,.2);box-shadow:0 5px 15px rgba(0,0,0,.4);margin-top:5vh}
dialog.dlg > .dlg-h{padding:14px 18px 10px;border-bottom:1px solid #e5e5e5;margin:0 0 12px}
dialog.dlg > .dlg-h h2{font-size:22px;font-weight:500;color:#31708f;margin:0}
dialog.dlg > .dlg-h h2 a{color:#428bca;text-decoration:none}dialog.dlg > .dlg-h h2 a:hover{text-decoration:underline}
.k4tb tr.unr td{background:#fcf8e3;font-weight:700}
/* the brain: a brief the system wrote by itself, and what a person decides about it (src/brain.ts) */
.brn{display:grid;gap:8px;text-align:start}.brn p{margin:0;line-height:20px}.brn .brs{color:#333}.brn .brk{background:#fcf8e3;border:1px solid #faebcc;border-radius:4px;padding:6px 10px;color:#8a6d3b}
.brn .brr{background:#f2dede;border:1px solid #ebccd1;border-radius:4px;padding:6px 10px;color:#a94442}
.brn form{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:0}.brn label{display:grid;gap:3px;font-weight:700;flex:1 1 220px;min-width:0}.brn label input,.brn label textarea{font-weight:400;width:100%}
.brn .brf label:nth-of-type(2){flex:0 1 210px}.brn form small{flex:1 1 100%;color:#666}.brn .brd label{flex:1 1 100%}
.brn .brx{display:grid;gap:6px;border-top:1px solid #eee;padding-top:8px}.brn .brx form{align-items:center}.brn .brx span{flex:0 1 auto}.brn .brx small{flex:1 1 160px;color:#666}
.brn .bra{border-top:1px solid #eee;padding-top:8px;align-items:center}.brn .bra input{flex:1 1 200px;min-width:0}
.kbrain{border:1px solid #cfc8ea;margin-bottom:12px}.kbrain > .k3h{background:#ebe8f7;color:#4a3d8f;border-color:#cfc8ea}.kbrain > .k3h small{font-weight:400;color:#5b4a9c;margin-inline-start:8px}.kbrain > .k3b{padding:12px 15px;overflow:visible}
.brgo{margin:10px 0 0;text-align:start}
.balr{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:8px 12px;border-top:1px solid #e5e5e5;background:#f8f8f8;color:#333}.balr small{flex:1 1 100%;color:#666}
.brpill{position:fixed;left:84px;bottom:28px;z-index:59;background:#5b4a9c;color:#fff;border-radius:18px;padding:6px 14px;font-weight:700;text-decoration:none;box-shadow:0 4px 12px rgba(60,45,130,.3);line-height:22px}.brpill:hover{background:#4a3d8f;color:#fff;text-decoration:none}
@media print{.brpill{display:none}}
.brh h1{margin:0 0 4px}.brh h1 small{font-size:14px;font-weight:400;color:#666;margin-inline-start:10px}.brn0{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 12px}.brn0 span{background:#f5f5f5;border:1px solid #ddd;border-radius:10px;padding:1px 10px}
.brset{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:0 0 14px;padding:8px 12px;background:#f8f8f8;border:1px solid #e7e7e7;border-radius:4px}.brset label{display:flex;gap:6px;align-items:center}
.brl{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:14px;align-items:start}.brc{background:#fff;border:1px solid #cfc8ea;border-radius:4px;padding:12px 15px}.brc.r{border-color:#ebccd1}
.brc h2{margin:0 0 8px;font-size:17px;display:flex;justify-content:space-between;gap:8px;align-items:baseline}.brc h2 small{font-size:14px;font-weight:400;color:#666}
.brnone{color:#666;padding:26px 0}.brw{font-size:17px;margin:22px 0 8px}.brwl{margin:0;padding-inline-start:18px;display:grid;gap:6px}.brwl small{display:block;color:#666}
@media(max-width:600px){.brl{grid-template-columns:1fr}}
dialog.dlg .tinfo{margin:0 0 10px;color:#666}dialog.dlg .tinfo .tlate{color:#ff0000;font-weight:700}
dialog.dlg .tlater{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0 2px;padding-top:10px;border-top:1px solid #dddddd}dialog.dlg .tlater > span{color:#666;margin-inline-end:4px}
dialog.dlg .ttalk{margin:12px 0 0;padding-top:10px;border-top:1px solid #dddddd}
dialog.dlg .tppl{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px}dialog.dlg .tppl > span{color:#666}
dialog.dlg .tppl i{font-style:normal;padding:1px 9px;border-radius:10px;border:1px solid #ccc;background:#fff;line-height:20px}dialog.dlg .tppl i.rd{border-color:#4cae4c;color:#3c763d;background:#dff0d8}dialog.dlg .tppl i.un{font-weight:700}
dialog.dlg .tppl select{height:26px;border:1px solid #ccc;border-radius:4px;font:inherit;padding:0 6px;min-width:0;width:auto}
dialog.dlg .tmsgs{max-height:230px;overflow-y:auto;border:1px solid #ddd;border-radius:4px;padding:8px 10px;background:#f9f9f9;margin:0 0 8px}
dialog.dlg .tm{background:#fff;border:1px solid #ddd;border-radius:4px;padding:6px 10px;margin:0 0 6px;max-width:92%}dialog.dlg .tm.me{background:#d9edf7;border-color:#bce8f1;margin-inline-start:auto}
dialog.dlg .tm b{color:#333}dialog.dlg .tm small{color:#666;margin-inline-start:8px}dialog.dlg .tm p{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
dialog.dlg .tsys{text-align:center;color:#666;margin:4px 0 6px}
dialog.dlg .tsend{display:flex;gap:8px;align-items:flex-end}dialog.dlg .tsend textarea{flex:1;min-height:44px}
dialog.dlg .tshare{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:10px 0 0}dialog.dlg .tshare > span{color:#666}dialog.dlg .tshare label{display:inline-flex;align-items:center;gap:5px;font-weight:400;margin:0}
dialog.dlg .tshare .turg{margin-inline-start:auto;color:#a94442;font-weight:700}
.k4rw p.ttl b{font-weight:400}.k4rw p.ttl.tunr b{font-weight:700}.k4rw .tcnt{color:#666;white-space:nowrap}.k4rw .tcnt .ic{vertical-align:-2px}
dialog.tjump{border-top:5px solid #d9534f!important;max-width:520px}dialog.tjump .tjb{padding:14px 16px 4px}dialog.tjump .tjb b{display:block;font-size:17px}dialog.tjump .tjb small{display:block;color:#666;margin-top:2px}dialog.tjump .tjb p{white-space:pre-wrap;margin:10px 0 0}dialog.tjump .tjn{margin-inline-start:auto;color:#666}
dialog.dlg .actions .btn.tdone{background:#5cb85c!important;border-color:#4cae4c!important;color:#fff!important}dialog.dlg .actions .btn.tdone:hover{background:#4cae4c!important}
dialog.dlg > :not(.dlg-h){margin-inline:18px}
dialog.dlg form .actions,dialog.dlg > .actions{border-top:1px solid #e5e5e5;margin-top:14px;padding-top:12px}
dialog.dlg::backdrop{background:rgba(0,0,0,.5)}
/* a screen of the client that has no third column (all the deals of a client) keeps two */
.kmain.k3:not(:has(> .kcol-s)){grid-template-columns:minmax(0,1fr) clamp(400px,31.5vw,605px)}
@media(max-width:900px){.kmain.k3:not(:has(> .kcol-s)){grid-template-columns:minmax(0,1fr)}}
.wrap .card,.stats,.kpi-b,.kstrip,.k4tiles > *,.kban,.knext,.k3s,.kcard{border-radius:4px}
/* ---- the next step lives in the side column, under the processes; the facts sit in the line of the name (Ofek 17/11/2026) ---- */
.kmain.k3:has(> .kcol-s){grid-template-rows:auto 1fr}
.kmain.k3:has(> .kcol-s) > .kcol-s{grid-column:3;grid-row:1}
.kmain.k3:has(> .kcol-s) > .kcol-n{grid-column:3;grid-row:2;min-width:0}
.kmain.k3:has(> .kcol-s) > .kcol-l{grid-column:2;grid-row:1 / span 2}
.kmain.k3:has(> .kcol-s) > .kcen{grid-column:1;grid-row:1 / span 2}
.kcol-n .knext{margin:0 0 8px}
.kcol-n .k3acts{flex-wrap:wrap;gap:6px;margin-bottom:8px}
.kcol-n .k3tries{flex-wrap:wrap;margin:0}
.kmain.oncall > .kcol-n{display:none}
@media(max-width:1280px){
.kmain.k3:has(> .kcol-s){grid-template-rows:auto auto 1fr}
.kmain.k3:has(> .kcol-s) > .kcol-n{grid-column:2;grid-row:1}
.kmain.k3:has(> .kcol-s) > .kcol-l{grid-column:2;grid-row:2}
.kmain.k3:has(> .kcol-s) > .kcol-s{grid-column:2;grid-row:3}
.kmain.k3:has(> .kcol-s) > .kcen{grid-row:1 / span 3}
}
@media(max-width:900px){.kmain.k3:has(> .kcol-s) > *{grid-column:1!important;grid-row:auto!important}.kmain.k3:has(> .kcol-s){grid-template-rows:none}}
@media(min-width:1600px){
.khdr{display:flex;align-items:stretch;background:#ffffff;border-bottom:1px solid #e7e7e7}
.khdr > .kx.ktop{flex:0 1 auto;max-width:44%;border-bottom:0;flex-wrap:wrap;row-gap:4px}
.khdr > .kx.kfx{flex:1 1 0;min-width:0;border:0;background:none;box-shadow:none;align-self:center;margin:0;padding:0 12px 0 16px}
.khdr > .kx.kfx .kfc{padding:4px 8px;min-width:0}
.khdr > .kx.kfx .kfc.c{background:none}
.khdr .yst{flex-basis:100%}
}
/* ---- the icons beside the phone and the mail of a contact; ready texts in a window ---- */
.yct .r{align-items:center}.yct .r > a,.yct .r > .yem{margin-inline-start:auto;min-width:0;overflow-wrap:anywhere}
.yic{display:inline-flex;gap:2px;flex:none}
.yic button{border:0;background:none;padding:3px;border-radius:3px;cursor:pointer;color:#555;display:inline-flex}
.yic button:hover{background:#d9edf7;color:#428bca}
.ytpl{display:flex;flex-wrap:wrap;gap:6px;background:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;padding:8px;margin-bottom:12px}
.ytpl .kchip{border-radius:4px;font-size:14px;padding:4px 10px;background:#fff}
.kmore .pop > a{text-decoration:none}
/* ---- documents: forms, one list of files, and a line of what is missing ---- */
.ybox{background:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;padding:10px 12px;margin-top:12px}
.ybox .ybt2{display:block;margin-bottom:8px;font-size:14px}.ybox .ybt2 small{font-weight:400;margin-inline-start:6px}
.ybox table{width:100%;background:#fff;border:1px solid #ddd;margin-bottom:8px}
.ybox .yfbtn{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.ybox .yfbtn:last-child{margin-bottom:0}
.ybox .yfa{text-align:left;white-space:nowrap}.ybox .yfa > *{margin-inline-start:8px}
.ydrv .ydhd{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.ydrv .ydact{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}
.ydrv .ydsug{margin-bottom:4px}.ydrv .ydnote{font-size:14px}.ydrv.yload{opacity:.55}.ydrv input{height:30px;border:1px solid #ccc;border-radius:4px;padding:0 8px;font:inherit;font-size:14px;background:#fff}
.ybox label.kdrop{margin:0;background:#fff;border-color:#bce8f1;color:#555;font-size:14px;padding:14px;text-align:center}
.ymc{display:flex;flex-wrap:wrap;gap:6px}
.ymi{display:inline-flex;align-items:center;background:#fff;border:1px solid #e0c48a;border-radius:4px;font-size:14px}
.ymi label{padding:4px 10px;color:#7a5200}.ymi label:hover{text-decoration:underline}
.ymi button{border:0;border-inline-start:1px solid #e9d7b0;background:none;padding:4px 8px;cursor:pointer;color:#7a5200;font-size:14px;line-height:1}
/* ---- 22/11/2026: the panel of the file – small buttons to the heavy chapters, and under them the simple fields, open ---- */
.k3pills{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #eee}
.k3pills .kchip{text-decoration:none;background:#fff}.k3pills .kchip:hover{background:#eee}
.k3pills .kchip.on,.k3pills .kchip.on:hover{background:#5cb85c;border-color:#4cae4c;color:#fff}
.k3pills .kchip.ld{opacity:.55;pointer-events:none}.k3pills .kchip.ld::after{content:" …"}
.k3s > summary{font-size:14px;color:#333}
.k3s[open] > summary{border-bottom:2px solid #31708f;color:#333}
.k3s[open]{margin-bottom:8px}
/* 23/11/2026: the panel is plain chapters – a heading with a line and an arrow, open or closed, and nothing else around them */
.kx a.k3s.lnk{font-size:14px;color:#333;text-decoration:none;padding:10px 0 8px;border-bottom:1px solid #ddd}.kx a.k3s.lnk:hover{color:#428bca}
.k3s > summary{padding:10px 0 8px}.k3s > summary::after,.kx a.k3s.lnk::after{content:"‹";font-size:16px;color:#666}.k3s[open] > summary::after{content:"⌄"}
.k3brow{display:flex;gap:8px;align-items:flex-end;margin-top:8px}.k3brow > .k3g{flex:1;min-width:0}.k3brow > form{padding-bottom:7px}
.kx .k3col .k3f textarea[data-s="x"]{min-height:74px}
.k3h .k3simb{margin-inline-start:8px;cursor:pointer;background:#fff}.k3h .k3simb:hover{background:#eee}
.ksim table{width:100%;border-collapse:collapse}.ksim th{text-align:right;font-size:14px;color:#666;font-weight:700;padding:3px 5px;white-space:nowrap}.ksim td{padding:3px 5px;vertical-align:top}
.ksim input,.ksim select{width:100%;height:34px;border:1px solid #ccc;border-radius:4px;padding:0 8px;font:inherit;font-size:14px;background:#fff;min-width:0}.ksim input:disabled{background:#eee}
.ksim td:nth-child(1){width:14%}.ksim td:nth-child(2){width:17%}.ksim td:nth-child(3){width:14%}.ksim td:nth-child(4){width:8%}.ksim td:nth-child(6){width:9%}.ksim td:nth-child(5){width:13%}.ksim td:nth-child(8){width:3%}
.ksim td:nth-child(7){white-space:nowrap;font-size:15px;padding-top:8px}.ksim td:nth-child(8){padding-top:8px}
.ksim tr.ksim-n td{padding:0 5px 6px;text-align:left;width:auto}.ksim tr.ksim-n small{font-size:14px;color:#666}.ksim tr.ksim-n[hidden]{display:none}
.ksim tfoot td{border-top:2px solid #31708f;padding-top:8px;vertical-align:middle}
.ksim-cpi{display:flex;gap:8px;align-items:center;font-size:14px;color:#666;margin:0}.ksim-cpi input{width:64px}
.ksim-r{display:flex;gap:5px;align-items:center}.ksim-r span{font-size:14px;color:#666;white-space:nowrap}.ksim-r span[hidden]{display:none}
.ksim-notes{margin-top:8px;font-size:14px;color:#666;line-height:1.55}.ksim-notes b{color:#333}
.ksim-sum{margin-top:8px;border-top:1px solid #ddd}.ksim-sum > div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px solid #eee;font-size:14px}.ksim-sum b{font-size:15px}
@media(max-width:760px){.ksim table,.ksim tbody,.ksim tr,.ksim td{display:block;width:auto!important}.ksim thead{display:none}.ksim tbody tr[data-r]{padding:6px 0 2px;display:grid;grid-template-columns:1fr 1fr;gap:4px 8px}.ksim tbody tr.ksim-n{border-bottom:1px solid #ddd}.ksim tfoot tr{display:flex;justify-content:space-between}.ksim tfoot td{border:0}}
.k3apr{width:100%;border-collapse:collapse;margin-top:8px}.k3apr th,.k3apr td{text-align:right;padding:6px 8px;border-top:1px solid #ddd;font-size:14px}.k3apr th{color:#666}
.k3files{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.kmore .pop .kmsep{display:block;font-size:14px;color:#666;padding:8px 12px 2px;border-top:1px solid #eee;margin-top:4px}
/* ---- the facts of the deal as the first fields of the panel (on the card), in the look of every other field ---- */
.kx.kfx.kfin{display:grid;grid-auto-flow:row;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px 10px;background:none;border:0;box-shadow:none;padding:0;margin:0 0 14px}
.kx.kfx.kfin .kfc,.kx.kfx.kfin .kfc.c,.kx.kfx.kfin .kfc:first-child{padding:0;border:0;background:none;font-size:14px}
.kx.kfx.kfin .kfc > span{font-size:14px;font-weight:700;color:#333;margin:0 0 3px;line-height:1.4;white-space:normal;overflow:visible}
.kx.kfx.kfin .kfi{height:34px;border:1px solid #ccc;border-radius:4px;background:#fff;padding:0 10px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);gap:3px}
.kx.kfx.kfin .kfi i{font-size:14px;font-weight:400;color:#555;line-height:32px}
.kx.kfx.kfin .kfi input,.kx.kfx.kfin .kfi input:focus{border:0;box-shadow:none;height:32px;min-height:0;font-size:14px;font-weight:400;color:#555;line-height:32px;padding:0;background:none;outline:0}
.kx.kfx.kfin .kfi:focus-within{border-color:#66afe9;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px rgba(102,175,233,.5)}
.kx.kfx.kfin .kfi input::placeholder{color:#999;font-weight:400;font-size:14px}
.kx.kfx.kfin .kfv{display:block;height:34px;line-height:32px;border:1px solid #ccc;border-radius:4px;background:#eee;padding:0 10px;font-size:14px;font-weight:400;color:#555}
.kx.kfx.kfin a.kfv{background:#fff;color:#428bca}
.kx.kfx.kfin .kfv.kmiss{color:#d9534f}
@media(max-width:1500px){.kx.kfx.kfin{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.kx.kfx.kfin{grid-template-columns:repeat(2,minmax(0,1fr))}}
html:has(.kfx.kfin){--kfx:0px!important}
@media(min-width:1600px){.khdr:not(:has(> .kfx)) > .kx.ktop{max-width:none;flex:1 1 auto}}
/* ---- the journal: the lines the system wrote by itself wait behind the "מערכת" button ---- */
[data-khl] > [data-g="other"]{display:none}
.kx:has([data-khf] [data-f="other"].on) [data-khl] > [data-g="other"]{display:block}
/* ---- the WhatsApp conversation with the client, in his card ---- */
.ywa{margin-bottom:14px}
.ywa .ywb{background:#e5ddd5;padding:10px 12px;display:flex;flex-direction:column;gap:5px;max-height:340px;min-height:90px;overflow-y:auto}
.ywm{max-width:78%;align-self:flex-start;background:#fff;border-radius:7.5px;padding:6px 9px 4px;font-size:14px;line-height:19px;color:#111;box-shadow:0 1px .5px rgba(0,0,0,.13);overflow-wrap:anywhere}
.ywm.o{align-self:flex-end;background:#dcf8c6}
.ywm.fail{background:#fde8e7}
.ywm .bt{white-space:pre-wrap;display:block}
.ywm .who{display:block;font-size:14px;font-weight:700;color:#075e54}
.ywm small{display:block;text-align:end;font-size:14px;color:#667781;margin-top:1px}
.ywd{align-self:center;background:#e1f3fb;border-radius:7.5px;font-size:14px;color:#54656f;padding:3px 10px;margin:4px 0;box-shadow:0 1px .5px rgba(0,0,0,.13)}
.ywc{display:flex;gap:8px;align-items:flex-end;background:#f0f0f0;padding:8px 10px;margin:0}
.kx .ywc textarea,.ywc textarea{flex:1;min-height:38px;max-height:120px;resize:none;border:0;border-radius:19px;padding:9px 14px;font:inherit;font-size:14px;background:#fff;box-shadow:none}
.ywc button{flex:none;width:38px;height:38px;border-radius:50%;border:0;background:#00a884;color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.ywc button:hover{background:#008f72}
.ywn{background:#f0f0f0;padding:9px 12px;font-size:14px;color:#555}
.kcol-l:has(.ywa) .k3hist [data-khl] > [data-g="wa"]{display:none}
.kmain.k3 > .k3act:has(.ywa){position:static}.k3act:has(.ywa) > .k3col:not(.ywa){max-height:none}
/* 23/11/2026 (Ofek: "a little less air where possible"): the panel of the card, a notch tighter */
.k3col[data-k3form] > .k3b{padding:8px 12px 8px}
.k3col[data-k3form] .k3s > summary,.kx .k3col[data-k3form] a.k3s.lnk{padding:7px 0 5px}
.k3col[data-k3form] .k3s[open] > summary{margin-bottom:6px;padding-bottom:4px}
.k3col[data-k3form] .k3s[open]{margin-bottom:0}.k3col[data-k3form] .k3sb{padding-bottom:4px}
.k3col[data-k3form] .k3g{gap:5px 10px;margin-bottom:6px}.k3col[data-k3form] .k3f > span{margin-bottom:1px}
.k3col[data-k3form] .k3row{margin:0 0 4px}.k3col[data-k3form] .k3brow{margin-top:0}
.kx .k3col[data-k3form] .k3f textarea[data-s="x"]{min-height:56px}
.k3col[data-k3form] .k3ban{margin-bottom:6px}
.k3col[data-k3form] .k3sb .kcard{padding:10px 12px;margin-bottom:8px}.k3col[data-k3form] .k3sb .kgrid2{gap:8px}
/* the simulation window: tabs, the schedule of payments, saved simulations */
dialog.ksimd{width:min(1040px,96vw);max-width:none}
.ksim-tabs{display:flex;gap:4px;align-items:flex-end;border-bottom:2px solid #31708f;margin:-4px 0 10px}
.ksim-tabs button{border:1px solid #ddd;border-bottom:0;background:#f5f5f5;color:#333;font:inherit;font-size:14px;padding:6px 14px;border-radius:4px 4px 0 0;cursor:pointer}
.ksim-tabs button.on{background:#31708f;border-color:#31708f;color:#fff;font-weight:700}.ksim-tabs .kgr{font-size:14px;padding-bottom:6px}
.ksim [data-simpane][hidden]{display:none}
.ksim-save{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px;border-top:1px solid #ddd;padding-top:10px}.ksim-save input{flex:1 1 240px;width:auto}
.ksim-ok{color:#3c763d;font-weight:700;font-size:14px}.ksim-bad{color:#d9534f;font-weight:700;font-size:14px}
.ksim-ctl{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:8px}.ksim-ctl label{display:flex;flex-direction:column;gap:2px;font-size:14px;color:#666;margin:0}.ksim-ctl select{min-width:260px;width:auto}
.ksim-seg{display:inline-flex}.ksim-seg button{border:1px solid #ccc;background:#fff;font:inherit;font-size:14px;height:34px;padding:0 12px;cursor:pointer;color:#333}.ksim-seg button:first-child{border-radius:0 4px 4px 0}.ksim-seg button:last-child{border-radius:4px 0 0 4px;border-right:0}
.ksim-seg button.on{background:#428bca;border-color:#357ebd;color:#fff}
.ksim-scroll{max-height:min(52vh,520px);overflow:auto;border:1px solid #ddd;border-radius:4px}
.ksim table.ksim-s{width:100%;border-collapse:collapse}.ksim-s th{position:sticky;top:0;background:#d9edf7;color:#31708f;text-align:right;font-size:14px;padding:6px 8px;white-space:nowrap}
.ksim-s td{padding:5px 8px;border-top:1px solid #eee;font-size:14px;white-space:nowrap;width:auto!important}.ksim-s tbody tr:nth-child(odd) td{background:#f9f9f9}
.ksim-s tfoot td{position:sticky;bottom:0;background:#fff;border-top:2px solid #31708f;font-weight:700}
.ksim-list .ksim-s td{white-space:normal}.ksim-act{text-align:left;white-space:nowrap!important}.ksim-act .klnk{margin-inline-start:12px}
@media(max-width:760px){.ksim table.ksim-s,.ksim-s thead,.ksim-s tbody,.ksim-s tfoot{display:table;width:100%}.ksim-s thead{display:table-header-group}.ksim-s tbody{display:table-row-group}.ksim-s tfoot{display:table-footer-group}.ksim-s tr{display:table-row!important;padding:0!important}.ksim-s td,.ksim-s th{display:table-cell;font-size:14px;padding:4px 5px}.ksim-ctl select{min-width:0;width:100%}.ksim-tabs button{padding:6px 8px;font-size:14px}}
/* the menus of the top bar (the bell, the user) open above the header of a client – it used to cover the top of the list */
.ynav{z-index:45}
small{font-size:max(12px,.86em)}.kwho small{font-size:14px}.knext small{font-size:14px}