/* Shoco leads inbox, UI v2 (11.09.2026): one shell, per-business colour. Loaded after app.css. */
:root{
  --bg:#F1F3F6; --sheet:#fff; --ink:#0F172A; --ink-2:#475569; --mute:#94A3B8; --rule:#E2E8F0;
  --brand:#1E3A8A; --brand-soft:#DBE4FF; --hot:#DC2626; --hot-soft:#FEE2E2; --amber:#B45309; --amber-soft:#FEF3C7; --ok:#15803D; --ok-soft:#DCFCE7;
  --out:#E4F4EC; --nav:64px; --font:"Rubik","Segoe UI",system-ui,sans-serif;
  --card:var(--sheet); --line:var(--rule); --muted:var(--mute); --accent:var(--brand); --radius:12px;
}
html,body{margin:0}
body{overflow-x:hidden;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.4;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none} button{font:inherit;cursor:pointer;color:inherit}
.ic{stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---------- shell ---------- */
.app{display:grid;grid-template-columns:minmax(0,1fr);min-height:100dvh}
.app.single{display:block}
.pane{display:flex;flex-direction:column;min-height:0;min-width:0}
.pane.full{display:block;min-height:100dvh;padding-bottom:calc(var(--nav) + 8px)}
.rail{display:none}
.nav{position:fixed;bottom:0;inset-inline:0;height:var(--nav);background:var(--sheet);border-top:1px solid var(--rule);display:grid;grid-template-columns:repeat(6,1fr);z-index:5;padding-bottom:env(safe-area-inset-bottom)}
.nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.72rem;font-weight:500;color:var(--ink-2);position:relative}
.nav a.on{color:var(--brand);font-weight:600}
.nav svg{width:22px;height:22px;stroke-width:1.8}
.nav .b{position:absolute;top:8px;inset-inline-start:calc(50% + 8px);background:var(--hot);color:#fff;font-size:.66rem;min-width:16px;height:16px;border-radius:8px;display:grid;place-items:center;padding:0 4px}
.nav .b:empty{display:none}

/* ---------- top of the list ---------- */
.top{position:sticky;top:0;z-index:4;background:var(--sheet);border-bottom:1px solid var(--rule)}
.bar{display:flex;align-items:center;gap:10px;padding:10px 14px 6px}
.logo{width:34px;height:34px;border-radius:9px;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:700;font-size:.85rem;flex:none}
.bizname{font-weight:600;font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bizsel{appearance:none;border:1px solid var(--rule);background:var(--sheet);border-radius:999px;padding:5px 28px 5px 12px;font:inherit;font-weight:600;font-size:.95rem;color:var(--ink);max-width:230px;text-overflow:ellipsis;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;background-size:14px}
.bar .sp{flex:1}
.bar .ib{width:36px;height:36px;border-radius:10px;border:1px solid var(--rule);background:var(--sheet);display:grid;place-items:center;color:var(--ink-2);flex:none}
.bar .ib svg{width:18px;height:18px}
.tabs{display:flex;padding:0 8px;overflow-x:auto;scrollbar-width:none}
.tabs a{flex:1;text-align:center;padding:9px 6px;font-size:.9rem;font-weight:500;color:var(--ink-2);border-bottom:3px solid transparent;white-space:nowrap}
.tabs a.on{color:var(--brand);border-color:var(--brand);font-weight:600}
.tabs i{font-style:normal;background:var(--bg);border-radius:999px;padding:0 7px;font-size:.74rem;margin-inline-start:4px;color:var(--ink-2)}
.tabs a.on i{background:var(--brand-soft);color:var(--brand)}
.tabs a.hot i{background:var(--hot-soft);color:var(--hot)}
.searchrow{padding:8px 12px 8px;background:var(--sheet);border-top:1px solid var(--rule)}
.searchrow input{width:100%;border:1px solid var(--rule);border-radius:999px;padding:8px 14px;font:inherit;background:var(--bg)}

/* ---------- groups + rows ---------- */
.groups{padding:8px 0 calc(var(--nav) + 40px)}
.grp{margin:0 10px 8px;background:var(--sheet);border:1px solid var(--rule);border-radius:12px;overflow:hidden}
.gh{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;user-select:none}
.gh .dot{width:10px;height:10px;border-radius:50%;flex:none}
.gh .t{font-weight:600;flex:1}
.gh .n{font-size:.84rem;color:var(--ink-2);background:var(--bg);border-radius:999px;padding:1px 9px}
.gh .chev{width:18px;height:18px;color:var(--mute);transition:transform .15s}
.grp.closed .chev{transform:rotate(90deg)} .grp.closed .rows,.grp.closed .ghint{display:none}
.ghint{font-size:.76rem;color:var(--mute);padding:0 12px 8px;margin-top:-4px}
.rows{border-top:1px solid var(--rule)}
.rw{position:relative;overflow:hidden;border-bottom:1px solid var(--rule)}
.rw:last-child{border-bottom:0}
.rw .under{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;font-size:.86rem;font-weight:600;color:#fff}
.rw .under span{padding:0 16px;height:100%;display:flex;align-items:center}
.rw .under .l{background:var(--amber)} .rw .under .r{background:#64748B}
.rw .fg{position:relative;background:var(--sheet);display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:9px 12px;transition:transform .2s ease;touch-action:pan-y;cursor:pointer}
.rw.gone .fg{transform:translateX(120%)}
.rw.gone{max-height:0;transition:max-height .25s ease .15s;border:0}
.rw.cur .fg{background:#F5F8FF;box-shadow:inset 3px 0 0 var(--brand)}
.rw .main{min-width:0}
.rw .r1{display:flex;align-items:baseline;gap:6px}
.rw .name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rw.new .name{font-weight:600}
.rw .r2{display:flex;gap:6px;align-items:center;color:var(--ink-2);font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.rw .r2 .src{color:var(--mute)}
.rw .snip{color:var(--ink-2);font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.rw.new .snip{color:var(--ink)}
.tag{font-size:.72rem;font-weight:500;padding:1px 7px;border-radius:5px;background:var(--bg);color:var(--ink-2);white-space:nowrap}
.tag.hot{background:var(--hot-soft);color:var(--hot);font-weight:600}
.tag.amb{background:var(--amber-soft);color:var(--amber)}
.tag.ok{background:var(--ok-soft);color:var(--ok)}
.tag.br{background:var(--brand-soft);color:var(--brand)}
.tag.pu{background:#EDE9FE;color:#5B21B6}
.tag.warm{background:#FFEDD5;color:#9A3412}
.tag.opp{background:var(--ink);color:#fff}
.tag.sky{background:#E0F2FE;color:#075985}
.side2{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.wait{font-size:.78rem;color:var(--mute);white-space:nowrap}
.wait.h{color:var(--hot);font-weight:600}
.cnt{min-width:20px;height:20px;border-radius:10px;background:var(--brand);color:#fff;font-size:.74rem;font-weight:600;display:grid;place-items:center;padding:0 6px}
.emptyg{margin:30px 16px;text-align:center;color:var(--mute)}
.emptyg b{display:block;color:var(--ink-2);font-weight:500;margin-bottom:4px}

/* ---------- toast ---------- */
.toast{position:fixed;bottom:calc(var(--nav) + 12px);inset-inline:14px;background:#1E293B;color:#fff;border-radius:12px;padding:10px 14px;font-size:.9rem;display:none;align-items:center;gap:10px;z-index:7}
.toast.on{display:flex} .toast b{color:#93C5FD;margin-inline-start:auto;font-weight:600;cursor:pointer;white-space:nowrap}

/* ---------- card pane (old card page inside the new shell) ---------- */
.cardpane{display:none;background:var(--bg)}
.cardpane .topbar{position:sticky;top:0}
.cardpane .wrap{max-width:none}

/* ---------- desktop ---------- */
@media (min-width:1000px){
  :root{--nav:0px}
  .app{grid-template-columns:64px 480px 1fr;height:100vh}
  .app.single{display:grid;grid-template-columns:64px 1fr}
  .app.single.noshell{display:block}   /* login / forgot / reset: no rail, the card centres on the full width */
  .rail{display:flex;background:var(--sheet);border-inline-end:1px solid var(--rule);flex-direction:column;align-items:center;padding:12px 0;gap:8px}
  .rail .logo{margin-bottom:10px}
  .rail a{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;color:var(--ink-2);position:relative}
  .rail a.on{background:var(--brand-soft);color:var(--brand)}
  .rail svg{width:22px;height:22px;stroke-width:1.8}
  .rail .b{position:absolute;top:4px;inset-inline-start:28px;background:var(--hot);color:#fff;font-size:.66rem;min-width:16px;height:16px;border-radius:8px;display:grid;place-items:center;padding:0 4px}
  .rail .b:empty{display:none}
  .rail .me{margin-top:auto;width:36px;height:36px;border-radius:50%;background:#CBD5E1;display:grid;place-items:center;font-weight:600;font-size:.85rem;color:var(--ink)}
  .rail form.out{margin-top:6px}
  .rail form.out button{width:48px;height:52px;border:1px solid var(--rule);border-radius:12px;background:#fff;display:grid;place-items:center;gap:2px;font:inherit;font-size:.68rem;color:var(--ink-2);cursor:pointer}
  .rail form.out button:hover{background:var(--brand-soft);color:var(--brand);border-color:transparent}
  .rail form.out svg{width:20px;height:20px}
  .listpane{border-inline-end:1px solid var(--rule);overflow-y:auto;background:var(--bg)}
  .pane.full{overflow-y:auto;height:100vh;padding-bottom:20px}
  .nav{display:none}
  .rw .under{display:none}
  .ghint{display:none}
  .cardpane{display:flex;height:100vh;overflow-y:auto;min-height:0}
  .cardpane .composer{position:sticky;bottom:0}
  .toast{inset-inline:74px auto;width:470px;bottom:12px}
}
@media (max-width:999px){
  body.show-card .listpane,body.show-card .nav,body.show-card .toast{display:none}
  body.show-card .cardpane{display:flex;min-height:100dvh}
}

/* ---------- lead card v2 ---------- */
.cardfrag{display:flex;flex-direction:column;min-height:100dvh;background:var(--bg)}
.chead{position:sticky;top:0;z-index:4;background:var(--sheet);border-bottom:1px solid var(--rule);padding:10px 14px 12px}
.cbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cbar .back{display:grid;place-items:center;width:32px;height:32px;margin-inline-start:-6px;color:var(--ink-2)}
.cbar .back svg{width:22px;height:22px}
.cbar .who{flex:1;min-width:0}
.cbar h1{margin:0;font-size:1.25rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cbar .m{display:flex;align-items:center;gap:6px;font-size:.84rem;color:var(--ink-2);min-width:0}
.cbar .m .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stf{display:inline;flex:none}
.cstat{appearance:none;border:0;background:var(--brand-soft);color:var(--brand);font-weight:600;border-radius:6px;padding:2px 22px 2px 8px;font:inherit;font-size:.78rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center;background-size:12px;width:auto}
.callbig{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--ok);color:#fff;border-radius:14px;padding:13px;font-weight:600;font-size:1.05rem;border:0;flex-basis:100%}
.callbig svg{width:22px;height:22px}
.cardfrag.chat .callbig{flex-basis:auto;padding:9px 14px;font-size:.92rem;border-radius:12px}
.cardfrag.chat .callbig span{display:none}
.outcome{margin-top:10px}
.outcome .k{font-size:.76rem;color:var(--mute);margin-bottom:6px}
.outcome .g{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.outcome .g button{border:1px solid var(--rule);background:var(--sheet);border-radius:10px;padding:9px 8px;font-size:.88rem;font-weight:500;color:var(--ink-2)}
.outcome .g button.amb{background:var(--amber-soft);border-color:transparent;color:var(--amber)}
.outcome .g button.ok{background:var(--ok-soft);border-color:transparent;color:var(--ok)}
.outcome .g button.hot{background:var(--hot-soft);border-color:transparent;color:var(--hot)}
.outcome .g button.brand{background:var(--brand-soft);border-color:transparent;color:var(--brand)}
.outcome .g button.pu{background:#EDE9FE;border-color:transparent;color:#5B21B6}
.outcome .g button.on{outline:2px solid var(--ink);outline-offset:-2px}
.outcome .g button.htmx-request{opacity:.5}
.panel{display:none;margin-top:10px;background:var(--sheet);border:1px solid var(--rule);border-radius:12px;padding:10px 12px}
.panel.on,.panel:not(:empty){display:block}
.panel .ok,.ok{display:flex;gap:8px;align-items:flex-start;font-size:.92rem}
.ok .chk{width:22px;height:22px;border-radius:50%;background:var(--ok-soft);color:var(--ok);display:grid;place-items:center;flex:none}
.ok .chk svg{width:13px;height:13px;stroke-width:3}
.ok small{display:block;color:var(--ink-2);font-size:.84rem}
.ok small.warn{color:var(--amber);margin-top:3px}
.ok a{color:var(--brand);font-weight:500}
.f{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.f .w{grid-column:1/-1}
.f label{display:block;font-size:.74rem;color:var(--mute);margin:0 0 3px}
.f textarea{width:100%;border:1px solid var(--rule);border-radius:9px;padding:8px 10px;font:inherit;background:#fff;resize:vertical}
.f input,.f select{width:100%;border:1px solid var(--rule);border-radius:9px;padding:8px 10px;font:inherit;background:#fff}
.f .acts,.acts{display:flex;gap:6px;margin-top:4px;align-items:center}
.acts button{border:1px solid var(--rule);background:#fff;border-radius:999px;padding:6px 16px;font-size:.88rem;font-weight:500}
.acts button.p{background:var(--brand);border-color:var(--brand);color:#fff}
.reasons{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.reasons button{border:1px solid var(--rule);background:#fff;border-radius:999px;padding:6px 14px;font-size:.88rem}
.reasons button:hover{border-color:var(--hot);color:var(--hot)}
.lnk{border:0;background:transparent;color:var(--brand);font-weight:500;font-size:.86rem;padding:2px 4px}
.cbody{padding:12px 12px 170px;display:flex;flex-direction:column;gap:10px}
.box{background:var(--sheet);border:1px solid var(--rule);border-radius:12px;padding:10px 12px}
.box h4{margin:0 0 6px;font-size:.78rem;color:var(--mute);font-weight:500;letter-spacing:.02em;display:flex;align-items:center;gap:8px}
.box h4 .sp{flex:1}
.box.next{padding:8px 12px}
.nx{display:flex;align-items:center;gap:10px}
.nx > svg{width:20px;height:20px;color:var(--brand);flex:none}
.nx .t{flex:1;min-width:0}
.nx .k{font-size:.72rem;color:var(--mute)}
/* 15.10.2026: .box.next is also a flex container (app.css .next, meant for the form row), so .nx was a
   max-content flex item and a long next-action text ran past the box; the text now wraps. */
.box.next > .nx{flex:1 1 100%;min-width:0}
.nx b{font-weight:600;display:block;white-space:normal;overflow-wrap:anywhere}
.nx .d{font-size:.84rem;color:var(--brand);font-weight:500}
.nx .d.over{color:var(--hot)}
.box.next.warn .nx > svg{color:var(--amber)} .box.next.warn .nx .d{color:var(--amber)}
.nxa{display:flex;gap:4px;align-items:center;flex:none}
.nxa .done{border:1px solid var(--rule);background:#fff;border-radius:999px;padding:5px 12px;font-size:.84rem;font-weight:500}
.nextform .f{margin-top:0}
.kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:.92rem}
.kv span:nth-child(odd){color:var(--ink-2)}
.kv a{color:var(--brand)}
.oppf{display:flex;gap:8px;align-items:center;margin-top:8px}
.oppf input{width:140px;border:1px solid var(--rule);border-radius:9px;padding:6px 10px;font:inherit;font-size:.88rem}
/* conversation: restyle the existing timeline fragment */
.conv .tl-head{display:none}
.conv .timeline{display:flex;flex-direction:column;gap:6px;padding:2px 0}
.conv .msg{max-width:86%;padding:7px 10px 5px;border-radius:12px;background:var(--bg);border:0;font-size:.93rem;white-space:pre-wrap;word-break:break-word}
.conv .msg.in{align-self:flex-start;border-start-start-radius:3px;background:var(--bg)}
.conv .msg.out{align-self:flex-end;background:var(--out);border-start-end-radius:3px}
.conv .msg.note{align-self:center;background:#FFF6CC;max-width:92%;font-size:.88rem;color:#5B4300}
.conv .msg .m{display:flex;gap:6px;justify-content:flex-end;font-size:.68rem;color:var(--mute);margin-top:2px}
.conv .msg.sys{display:none;align-self:center;background:transparent;color:var(--mute);font-size:.76rem;text-align:center;max-width:100%}
.conv #timeline.show-sys .msg.sys{display:block}
.conv .empty{color:var(--mute);text-align:center;padding:14px}
.conv .sched{margin-bottom:8px}
/* composer with draft */
.compose{position:fixed;bottom:0;inset-inline:0;background:var(--sheet);border-top:1px solid var(--rule);padding:8px 12px calc(8px + env(safe-area-inset-bottom));display:flex;flex-direction:column;z-index:6}
.compose .chs{display:flex;gap:4px;margin-bottom:6px;align-items:center;flex-wrap:wrap}
.compose .chs button.ai{border-color:var(--brand);color:var(--brand);margin-inline-start:auto}
.compose .chs button.ai:disabled{opacity:.6}
.compose .chs button{border:1px solid var(--rule);background:transparent;border-radius:999px;padding:4px 10px;font-size:.8rem;color:var(--ink-2)}
.compose .chs button.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.compose .chs .tpl{margin-inline-start:auto;border-color:transparent;color:var(--brand)}
.compose #subj{border:1px solid var(--rule);border-radius:9px;padding:6px 10px;font:inherit;font-size:.88rem;margin-bottom:6px;width:100%}
.compose .crow{display:flex;gap:8px;align-items:flex-end}
.compose textarea{flex:1;border:1px solid var(--rule);border-radius:14px;padding:9px 12px;font:inherit;resize:none;min-height:40px;max-height:160px;background:var(--bg)}
.compose .send{width:42px;height:42px;border-radius:50%;border:0;background:var(--brand);color:#fff;display:grid;place-items:center;flex:none}
.compose .send svg{width:18px;height:18px;transform:scaleX(-1)}
.schedrow[hidden]{display:none}
.schedrow{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:6px;font-size:.84rem;color:var(--ink-2)}
.schedrow input[type=datetime-local]{border:1px solid var(--rule);border-radius:9px;padding:4px 8px;font:inherit;font-size:.84rem;width:auto}
.draft{margin:0 0 8px;background:#fff;border:1px dashed #B8C2C8;border-radius:14px;padding:8px 12px}
.draft .k{display:flex;align-items:center;gap:6px;font-size:.74rem;color:var(--mute);margin-bottom:3px}
.draft .k svg{width:14px;height:14px}
.draft .k b{color:var(--ink-2);font-weight:500}
.draft .txt{color:var(--ink-2);font-size:.94rem;line-height:1.4;white-space:pre-wrap}
.draft .acts button{border:1px solid var(--rule);background:#F7F8FA;border-radius:999px;padding:4px 14px;font-size:.84rem;font-weight:500;color:var(--ink-2)}
.draft .acts button.use{background:var(--brand);border-color:var(--brand);color:#fff}
.canned{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 8px;font-size:.78rem;color:var(--mute)}
.canned button{border:1px solid var(--rule);background:#F7F8FA;border-radius:999px;padding:4px 12px;font-size:.82rem;font-weight:500;color:var(--ink-2);cursor:pointer}
.canned button:hover{border-color:var(--brand);color:var(--brand)}
@media (min-width:1000px){
  .cardfrag{height:100vh;min-height:0;overflow:hidden}
  .cbar .back{display:none}
  .cbar{flex-wrap:nowrap;gap:14px}
  .callbig{flex-basis:auto;padding:10px 22px}
  .chead{padding:16px 24px 14px}
  .outcome .g{grid-template-columns:repeat(4,1fr)}
  .cbody{overflow-y:auto;padding:16px 24px 24px;flex:1}
  .compose{position:sticky;padding:10px 24px 14px}
  .conv .msg{max-width:64%}
  .f{grid-template-columns:repeat(4,1fr)}
  .f .w{grid-column:span 2}
  .f .acts.w{grid-column:span 4}
}

/* ---------- today: day / week / month ---------- */
.tpage .top .bar{gap:8px}
.tpage .ttl{margin:0;font-size:1.02rem;font-weight:600;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpage .ttl small{font-weight:400;color:var(--mute);font-size:.8rem;margin-inline-start:6px}
.tpage .seg{display:flex;background:var(--bg);border-radius:999px;padding:3px;flex:none}
.tpage .seg a{border-radius:999px;padding:4px 11px;font-size:.82rem;font-weight:500;color:var(--ink-2)}
.tpage .seg a.on{background:var(--sheet);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08);font-weight:600}
.days{display:flex;gap:4px;padding:4px 10px 10px;overflow-x:auto;scrollbar-width:none}
.day{flex:1;min-width:46px;border-radius:12px;padding:6px 2px;text-align:center;border:1px solid transparent;color:var(--ink-2)}
.day .n{font-size:.72rem}.day .d{font-weight:600;font-size:1rem;color:var(--ink)}
.day .c{display:inline-block;min-width:16px;font-size:.66rem;border-radius:8px;background:var(--bg);color:var(--ink-2);padding:0 4px;margin-top:2px}
.day.on{background:var(--brand);border-color:var(--brand);color:#fff}.day.on .d,.day.on .c{color:#fff}.day.on .c{background:rgba(255,255,255,.25)}
.day.past{opacity:.55}
.twrap{padding:10px 12px calc(var(--nav) + 30px);display:flex;flex-direction:column;gap:10px}
.twrap .col{display:flex;flex-direction:column;gap:10px;min-width:0}
.tpage .box{padding:0}
.tpage .box h3{margin:0;padding:10px 12px;font-size:.92rem;display:flex;align-items:center;gap:8px}
.tpage .box h3 i{font-style:normal;color:var(--mute);font-weight:400;font-size:.82rem}
.tpage .box h3 .sp{flex:1}
.tpage .box h3 .dot{width:10px;height:10px;border-radius:50%;flex:none}
.it{display:flex;align-items:center;gap:10px;padding:9px 12px;border-top:1px solid var(--rule);color:var(--ink)}
.it .w{flex:1;min-width:0}
.it b{font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.it .s{font-size:.84rem;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.it .call{width:36px;height:36px;border-radius:10px;background:var(--ok-soft);color:var(--ok);display:grid;place-items:center;flex:none}
.it .call svg{width:18px;height:18px}
.agenda{position:relative;padding:0 0 6px}
.hour{display:grid;grid-template-columns:52px minmax(0,1fr);min-height:56px;border-top:1px solid var(--rule)}
.hour .h{font-size:.76rem;color:var(--mute);padding:4px 10px 0 0;text-align:right}
.hour .slot{padding:4px 8px 4px 10px;display:flex;flex-direction:column;gap:6px;position:relative}
.ev{min-width:0;border-radius:10px;padding:7px 10px;display:flex;align-items:center;gap:8px;font-size:.9rem;border:1px solid var(--rule);background:#fff;color:var(--ink)}
.ev .t{font-size:.76rem;color:var(--mute);white-space:nowrap}
.ev .w{flex:1;min-width:0}.ev b{font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev .s{font-size:.8rem;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ev .ico{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;flex:none}
.ev .ico svg{width:15px;height:15px}
.ev.meet{background:var(--brand-soft);border-color:transparent}.ev.meet .ico{background:#fff;color:var(--brand)}
.ev.task .ico{background:var(--ok-soft);color:var(--ok)}
.ev.warm .ico{background:#FFEDD5;color:#9A3412}
.ev.send{border-style:dashed;background:#FAF7FF}.ev.send .ico{background:#EDE9FE;color:#5B21B6}
.ev.send.held{background:var(--hot-soft)}
.ev.cal .ico{background:var(--bg);color:var(--ink-2)}
.ev .acts{display:flex;gap:4px;margin:0}
.ev .acts button{border:1px solid var(--rule);background:#fff;border-radius:999px;width:30px;height:30px;display:grid;place-items:center;color:var(--ink-2);padding:0}
.ev .acts button svg{width:14px;height:14px}
.ev .acts button.ok{color:var(--ok)}
.tpage .box > .ev{border:0;border-top:1px solid var(--rule);border-radius:0;padding:8px 12px}
.now{position:absolute;inset-inline:0;height:0;border-top:2px solid var(--hot);z-index:2;pointer-events:none}
.now::before{content:"";position:absolute;inset-inline-start:-8px;top:-5px;width:8px;height:8px;border-radius:50%;background:var(--hot)}
.now span{position:absolute;inset-inline-end:4px;top:-9px;font-size:.66rem;color:var(--hot);font-weight:600;background:var(--sheet);padding:0 3px}
.tpage .empty{padding:14px;color:var(--mute);font-size:.86rem;text-align:center}
.over h3{cursor:pointer;user-select:none}
.over .chev{width:18px;height:18px;color:var(--mute);transition:transform .15s}
.over.closed .chev{transform:rotate(90deg)}.over.closed .inner{display:none}
.bulk{display:flex;gap:6px;padding:8px 12px;border-top:1px solid var(--rule);flex-wrap:wrap;background:#FAFBFC;position:static;inset:auto;color:inherit;border-radius:0;box-shadow:none}
.bulk form{display:inline}
.bulk button{border:1px solid var(--rule);background:#fff;border-radius:999px;padding:5px 12px;font-size:.84rem;font-weight:500;color:var(--ink)}
.bulk button.p{background:var(--ink);border-color:var(--ink);color:#fff}
.bulk .note{width:100%;font-size:.78rem;color:var(--mute)}
/* week */
.week{display:flex;flex-direction:column;gap:10px;padding:10px 12px calc(var(--nav) + 30px)}
.wday{background:var(--sheet);border:1px solid var(--rule);border-radius:12px;overflow:hidden}
.wday h3{margin:0;padding:9px 12px;font-size:.9rem;display:flex;align-items:center;gap:8px;background:#FAFBFC;border-bottom:1px solid var(--rule)}
.wday h3 i{font-style:normal;color:var(--mute);font-weight:400;font-size:.8rem}
.wday h3 .sum{margin-inline-start:auto;display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.wday.today h3{background:var(--brand-soft)}
.wday.past{opacity:.75}
.wday .ev{border:0;border-top:1px solid var(--rule);border-radius:0;padding:7px 12px}
.wday .ev:first-of-type{border-top:0}
.pill{font-size:.7rem;padding:0 6px;border-radius:999px;background:var(--bg);color:var(--ink-2);white-space:nowrap}
.pill.m{background:var(--brand-soft);color:var(--brand)}.pill.c{background:var(--ok-soft);color:var(--ok)}.pill.s{background:#EDE9FE;color:#5B21B6}.pill.h{background:var(--hot-soft);color:var(--hot)}
.wday .more{display:block;padding:6px 12px;font-size:.8rem;color:var(--brand);border-top:1px solid var(--rule)}
.wday .free{padding:10px 12px;font-size:.84rem;color:var(--mute)}
/* month */
.month{padding:10px 12px calc(var(--nav) + 30px)}
.mgrid{background:var(--sheet);border:1px solid var(--rule);border-radius:12px;overflow:hidden;display:grid;grid-template-columns:repeat(7,1fr)}
.mgrid .dn{padding:6px 0;text-align:center;font-size:.72rem;color:var(--mute);border-bottom:1px solid var(--rule);background:#FAFBFC}
.mcell{min-height:64px;border-bottom:1px solid var(--rule);border-inline-start:1px solid var(--rule);padding:4px;display:flex;flex-direction:column;gap:2px;color:var(--ink)}
.mcell .d{font-size:.8rem;font-weight:500;color:var(--ink-2);text-align:right;padding-inline-end:2px}
.mcell.other .d{color:#CBD5E1}
.mcell.today .d{color:#fff;background:var(--brand);border-radius:6px;width:22px;height:22px;display:grid;place-items:center;padding:0;margin-inline-start:auto}
.mcell .dots{display:flex;gap:2px;flex-wrap:wrap}
.mcell .dot{width:6px;height:6px;border-radius:50%}
.mcell .mcnt{font-size:.66rem;color:var(--ink-2);margin-top:auto;text-align:left}
.mcell.sel{background:#FFF7ED}
.mlegend{display:flex;gap:10px;font-size:.76rem;color:var(--ink-2);padding:0 4px 8px;flex-wrap:wrap}
.mlegend span{display:inline-flex;align-items:center;gap:4px}
.mlegend i{width:8px;height:8px;border-radius:50%;display:inline-block}
.mday{margin-top:10px}
@media (min-width:1000px){
  .tpage{max-width:1300px}
  .days{padding:4px 20px 12px}.day{flex:none;min-width:70px}
  .twrap{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:14px;padding:14px 20px 30px;align-items:start}
  .hour{min-height:64px}
  .week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:14px 20px 30px;align-items:start}
  .wday .ev b{white-space:normal;font-size:.86rem}
  .wday .ev .t{display:none}
  .mcell{min-height:100px}
  .month{padding:14px 20px 30px}
}
@media (max-width:999px){ .tpage .ttl{white-space:normal;line-height:1.2} .tpage .ttl small{display:block;margin:0} .tpage .bar .ib{width:32px;height:32px} }
.freereason{margin-top:10px;padding-top:10px;border-top:1px dashed var(--rule)}

/* documents on the card (price proposals awaiting Haim's decision) */
.box.docs.pend{border-color:var(--amber);box-shadow:0 0 0 2px var(--amber-soft, #fef3c7)}
.doc+.doc{border-top:1px solid var(--rule);margin-top:10px;padding-top:10px}
.doc .dh{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.doc .pdf{font-weight:600;color:var(--brand);display:inline-flex;align-items:center;gap:6px}
.doc .pdf .ic{width:18px;height:18px}
.doc .terms{margin-top:4px;color:var(--ink-2)}
.doc .fixnote{margin-top:4px;color:var(--hot);font-weight:500}
.doc .acts{margin-top:8px;flex-wrap:wrap}
.doc.rejected .dh .pdf{color:var(--ink-2)}

.ok .nxedit{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px}
.ok .nxedit small{display:inline;margin:0}
.ok .nxedit input{padding:4px 6px;border:1px solid var(--rule);border-radius:8px;font:inherit;font-size:.86rem;background:#fff}
.ok .nxedit button{padding:4px 10px;border:1px solid var(--rule);border-radius:8px;background:#fff;font:inherit;font-size:.86rem;cursor:pointer}

.notice,.error,.ok small{overflow-wrap:anywhere}
.tabs{overscroll-behavior-x:contain}
.callbig.wa{background:#128C7E}
/* 20.10.2026: the WhatsApp button carries the 24 h window state ("חלון פתוח עד 14:30" / "מהטלפון"), so its
   caption stays visible on chat cards too, where the call button hides its number. */
.cardfrag.chat .callbig.wa span{display:inline;font-size:.76rem;font-weight:400;opacity:.92}
.callbig.half{flex:1 1 100%}
.callbig span{white-space:nowrap}
@media (min-width:1000px){.callbig.half{flex:1 1 45%}}
.ctform{margin:2px 0 10px;padding:8px 10px;border:1px dashed var(--rule);border-radius:10px;background:#fff}
.ctform .f{margin-top:0}

/* Extra people on a lead card (secretary, marketing manager...). */
.lcbox{margin-top:8px;padding-top:8px;border-top:1px solid var(--rule)}
.lcbox .lch{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:.78rem;color:var(--mute)}
.lcbox .lch .sp{flex:1}
/* whose message this is, when the card holds more than one person */
.conv .msg .m .person{color:var(--brand);font-weight:500}
.toh{display:flex;align-items:center;gap:8px;padding:0 2px 6px;font-size:.82rem;color:var(--mute)}
.toh select{border:1px solid var(--rule);border-radius:8px;padding:4px 6px;background:#fff;font:inherit;color:inherit;max-width:60%}

/* Manual lead entry, available to every tenant user. */
.manual-lead-toolbar{padding:6px 14px 10px}
.manual-lead-toolbar a{display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;box-sizing:border-box}
.manual-lead-page{max-width:560px;margin:0 auto;padding:24px 18px 40px}
.manual-lead-page h1{font-size:1.5rem;margin:20px 0 8px}
.manual-lead-form{display:grid;gap:10px;margin-top:20px;background:var(--sheet);padding:20px;border:1px solid var(--rule);border-radius:14px}
.manual-lead-form input:not([type=hidden]),.manual-lead-form textarea{width:100%;min-width:0;box-sizing:border-box;padding:12px;font:inherit;border:1px solid var(--rule);border-radius:8px;background:var(--sheet);color:var(--ink)}
.manual-lead-form label{font-weight:500}
.manual-lead-form p{margin:0;color:var(--ink-2)}
.manual-lead-actions{display:flex;gap:12px;align-items:center;margin-top:12px}
.manual-lead-actions .btn-sm{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 18px}
.manual-lead-error{background:var(--hot-soft);color:#991b1b;padding:14px;border-radius:10px;margin:16px 0}
.manual-lead-error a{text-decoration:underline}
/* מקורות ועלות ליד (/sources, 29.10.2026) */
.srcpage .seg{display:flex;gap:4px;flex-wrap:wrap;margin:8px 0}
.srcpage .seg a{padding:5px 12px;border-radius:999px;border:1px solid var(--rule);background:#fff;font-size:.85rem;color:var(--ink-2)}
.srcpage .seg a.on{background:var(--brand-soft);color:var(--brand);border-color:transparent;font-weight:600}
.srcpage form.range{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:4px 0 10px;font-size:.85rem}
.srcpage form.range input{border:1px solid var(--rule);border-radius:9px;padding:5px 8px;font:inherit;background:#fff}
.srcpage form.range button{border:1px solid var(--rule);background:#fff;border-radius:999px;padding:5px 12px;font:inherit;font-size:.85rem}
.srcpage .tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:8px 0 14px}
.srcpage .tile{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px}
.srcpage .tile b{display:block;font-size:1.3rem;font-weight:600}
.srcpage .tile span{font-size:.78rem;color:var(--ink-2)}
.srcpage tr.plat.unm td{background:#f7f9f3;border-top:1px dashed var(--rule)}
.srcpage tr.unm a{color:var(--brand);font-weight:600}
.srcpage table{width:100%;border-collapse:collapse;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;font-size:.9rem;margin-bottom:14px}
.srcpage th,.srcpage td{padding:7px 10px;text-align:start;border-top:1px solid var(--line);vertical-align:top}
.srcpage th{font-size:.76rem;color:var(--ink-2);font-weight:500;border-top:0;background:var(--bg)}
.srcpage td.num,.srcpage th.num{text-align:end;white-space:nowrap;direction:ltr}
.srcpage tr.plat td{font-weight:600;background:var(--brand-soft)}
.srcpage tr.camp td:first-child{padding-inline-start:26px;color:var(--ink-2)}
.srcpage tr.camp td:first-child b{color:var(--ink);font-weight:500}
.srcpage .hint{font-size:.8rem;color:var(--ink-2);margin:0 0 10px}
.srcpage h2.sec{font-size:1rem;margin:14px 0 6px}
.srcpage .lead{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.srcpage .lead .d{font-size:.78rem;color:var(--ink-2);white-space:nowrap}

/* card header: the person behind the business name + Hebrew-name line (01.11.2026) */
.wawho{font-size:.82rem;color:var(--ink-2);margin-top:2px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}
.wawho b{font-weight:600;color:var(--ink)}
.wawho .hename{display:inline-flex;gap:4px;align-items:center;margin-inline-start:4px}
.wawho .hename input{font:inherit;font-size:.8rem;padding:2px 7px;border:1px solid var(--rule);border-radius:7px;width:11em;background:var(--sheet)}
.wawho .hename button{padding:2px 8px}
/* "תקשורות": the feed of what came in */
.feed .chips{display:flex;gap:6px;flex-wrap:wrap;padding:8px 12px 0}
.feed .chips a{font-size:.8rem;padding:4px 10px;border-radius:999px;background:var(--bg);color:var(--ink-2);white-space:nowrap}
.feed .chips a.on{background:var(--ink);color:#fff}
.feed .srch{padding:8px 12px 0}
.feed .srch input{width:100%;font:inherit;padding:7px 10px;border:1px solid var(--rule);border-radius:9px;background:var(--sheet)}
.feed .it{align-items:flex-start}
.feed .it .t{font-size:.78rem;color:var(--mute);flex:none;margin-top:2px;font-variant-numeric:tabular-nums}
.feed .it .s{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feed .it.wait{border-inline-start:3px solid var(--hot)}
.feed .it .ph{font-size:.76rem;color:var(--mute);direction:ltr;unicode-bidi:isolate}
.feed .it b .tag{margin-inline-start:4px;vertical-align:1px}
