/* admin-v4 A19 · שיחות — the list · the WhatsApp chat · his card (the AD10 layout the owner approved 26.10, in v4's panels).
   The chat stays a real WhatsApp chat: the beige wallpaper, white bubbles from him, green ones from us, ticks, the film card. */
.ch{display:grid;grid-template-columns:340px minmax(0,1fr) 290px;gap:16px;height:832px;padding:2px 28px 24px}
.ch .panel{display:flex;flex-direction:column;min-height:0}

/* the list */
.ch-lh{display:flex;flex-direction:column;gap:10px;padding:18px 18px 10px;flex:none}
.ch-ttl{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.ch-ttl h2{margin:0;font-size:26px;font-weight:600;letter-spacing:-.02em;color:var(--navy)}
.ch-ttl small{font-size:12px;color:var(--steel);white-space:nowrap}
.ch-sel{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.ch-sel span{font-size:11.5px;color:var(--steel);white-space:nowrap}
.ch-sel select{flex:1;min-width:0;border:0;background:none;font:600 13.5px "IBM Plex Sans Hebrew",sans-serif;color:var(--navy);cursor:pointer;outline:none}
.ch-fl{display:flex;flex-wrap:wrap;gap:6px}
.ch-fl button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border:0;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);font:500 12.5px "IBM Plex Sans Hebrew",sans-serif;color:var(--ink2);cursor:pointer}
.ch-fl button i{font:700 11px "Inter Tight",sans-serif;font-style:normal;color:var(--steel)}
.ch-fl button[aria-pressed="true"]{background:var(--navy);color:#fff;box-shadow:none}
.ch-fl button[aria-pressed="true"] i{color:#cfd8e4}
.ch-q input{width:100%;height:38px;padding:0 14px;border:0;border-radius:14px;background:var(--cloud);font:13.5px "IBM Plex Sans Hebrew",sans-serif;color:var(--navy);outline:none;box-shadow:inset 0 0 0 1px var(--line)}
.ch-rows{flex:1;min-height:0;overflow:hidden auto;scrollbar-width:thin;padding:2px 8px 10px;display:flex;flex-direction:column;gap:2px}
.ch-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:11px;align-items:start;width:100%;border:0;text-align:start;padding:10px;border-radius:16px;background:transparent;cursor:pointer;transition:background .2s,box-shadow .2s;font-family:"IBM Plex Sans Hebrew",sans-serif}
.ch-row:hover{background:#fff}
.ch-row.on{background:#fff;box-shadow:0 0 0 1.5px rgba(214,170,60,.7),0 6px 16px -10px rgba(13,27,46,.3)}
.ch-row .fc{width:40px;height:40px;font-size:14px}
.ch-row .m{display:flex;flex-direction:column;gap:3px;min-width:0}
.ch-row .t{display:flex;align-items:baseline;gap:8px}
.ch-row .t b{flex:1;min-width:0;font-size:14.5px;font-weight:600;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-row .t small{font:500 11.5px "Inter Tight",sans-serif;color:var(--steel);flex:none}
.ch-row .l{font-size:12.5px;color:var(--steel);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-row .l em{font-style:normal;color:#53bdeb;margin-inline-end:4px}
.ch-row .g{display:flex;align-items:center;gap:6px;margin-top:2px;min-width:0}
.ch-row .g .sp{flex:1}
.ch-biz{font-size:11px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ch-mi{display:inline-flex;align-items:center;gap:2px;font:700 10.5px "Inter Tight",sans-serif;color:#4A6FA5;flex:none}
.ch-mi svg{width:16px;height:16px}
.ch-row .un{font:700 11px/20px "Inter Tight",sans-serif;font-style:normal;min-width:20px;height:20px;padding-inline:5px;border-radius:999px;background:#25D366;color:#fff;text-align:center;flex:none}
.ch-pill{display:inline-flex;align-items:center;flex:none;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap;background:var(--soft);color:var(--ink2)}
.ch-pill.ok{background:var(--okBg);color:var(--okInk)}
.ch-pill.rd{background:#e5f5fd;color:#0b6c96}
.ch-pill.bad{background:var(--meBg);color:var(--meInk)}
.ch-pill.pg{background:#f3ecff;color:#5B2FD6}
.ch-none{display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px 16px;text-align:center;color:var(--navy)}
.ch-none small{color:var(--steel);font-size:12.5px}

/* the chat: a real WhatsApp */
.ch-chat{position:relative;background:#efeae2}
.ch-chat.ld .ch-msgs{opacity:.45;transition:opacity .2s}
.ch-th{display:flex;align-items:center;gap:11px;padding:12px 18px;background:#f0f2f5;border-bottom:1px solid #e3e6ea;flex:none;min-width:0}
.ch-th .fc{width:40px;height:40px}
.ch-tt{display:flex;flex-direction:column;min-width:0}
.ch-tt b{font-size:15.5px;font-weight:600;color:#111b21;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-tt small{font:500 12px "Inter Tight",sans-serif;color:#667781;text-align:end}
.ch-th .sp{flex:1}
.ch-msgs{flex:1;min-height:0;overflow:hidden auto;scrollbar-width:thin;padding:14px 26px 16px;display:flex;flex-direction:column;gap:6px;
 background:#efeae2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='none' stroke='%23786a55' stroke-opacity='.09' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 46 38 31l18 15v18H20z'/%3E%3Cpath d='M33 64V52h10v12'/%3E%3Ccircle cx='128' cy='36' r='10'/%3E%3Cpath d='M98 112h34v20H98zM104 112v-8h22v8'/%3E%3Cpath d='M30 132l14 14 22-26'/%3E%3Cpath d='M140 150c10-6 18-6 26 0'/%3E%3Cpath d='M70 20h20M80 10v20'/%3E%3C/svg%3E")}
.ch-day{align-self:center;margin:6px 0}
.ch-day span{display:inline-block;padding:5px 12px;border-radius:8px;background:#fff;font-size:12px;font-weight:500;color:#54656f;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.ch-b{max-width:min(70%,440px);padding:6px 9px 7px;border-radius:8px;background:#fff;box-shadow:0 1px .5px rgba(11,20,26,.13);font-size:14.2px;line-height:1.45;color:#111b21;position:relative}
.ch-b p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.ch-b.in{align-self:flex-start;border-start-start-radius:0}
.ch-b.out{align-self:flex-end;background:#d9fdd3;border-start-end-radius:0}
.ch-b small{display:block;margin-bottom:2px;font-size:11.5px;color:#667781}
.ch-b.btn p b{color:#027eb5;font-weight:600}
.ch-b.note{align-self:center;max-width:min(80%,470px);background:#fff8dc;box-shadow:inset 0 0 0 1px #f1dfa3}
.ch-b.failed{background:#fbe3dc}
.ch-by{display:block;margin-bottom:2px;font-size:12px;font-weight:600;color:#1f8a5b}
.ch-tn{display:inline-block;margin-bottom:3px;padding:1px 8px;border-radius:999px;background:rgba(255,255,255,.65);font-size:11px;color:#54656f}
.ch-tr{padding:6px 9px;margin:4px 0;border-radius:8px;background:#f5f6f6;font-size:13px;color:#3b4a54}
.ch-b audio{width:260px;height:34px;margin:2px 0}
.ch-at{float:inline-end;display:inline-flex;align-items:center;gap:3px;margin:6px 10px 0 0;font:500 11px/1 "Inter Tight",sans-serif;font-style:normal;color:#667781}
.ch-st{display:inline-flex;color:#8696a0}
.ch-st.rd{color:#53bdeb}
.ch-st.bad{display:inline-grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#e5533d;color:#fff;font:700 10px/1 "Inter Tight",sans-serif}
.ch-tk{width:16px;height:11px}
.ch-fail{align-self:flex-end;margin-top:-2px;font-size:11.5px;color:var(--meInk)}
.ch-sys{align-self:center;margin:4px 0}
.ch-sys span{display:inline-block;padding:5px 12px;border-radius:8px;background:#fff8c5;font-size:12px;color:#54656f;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.ch-sys.stop span{background:#fde3dd;color:#a33a26}
/* the personal film card: the poster with a play, the words, the buttons under it */
.ch-film{align-self:flex-end;display:flex;flex-direction:column;gap:2px;width:min(70%,340px)}
.ch-film .ch-b{max-width:100%;padding:4px 4px 7px}
.ch-film .ch-b p,.ch-film .ch-by{padding-inline:5px}
.ch-pv{position:relative;display:block;width:100%;aspect-ratio:16/9;margin:0 0 6px;padding:0;border:0;border-radius:6px;overflow:hidden;background:#0d1b2e;cursor:pointer}
.ch-pv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ch-pv .pl{position:absolute;inset:0;margin:auto;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:rgba(11,20,26,.55);color:#fff}
.ch-pv .pl svg{width:20px;height:20px;margin-inline-start:2px}
.ch-vid{display:block;width:100%;aspect-ratio:16/9;margin:0 0 6px;border-radius:6px;background:#000}
.ch-bts{display:flex;flex-direction:column;gap:2px}
.ch-bts span{padding:8px;border-radius:8px;background:#fff;text-align:center;font-size:14px;font-weight:500;color:#027eb5;box-shadow:0 1px .5px rgba(11,20,26,.13)}
/* an email we sent him, in the same line of time */
.ch-mail{align-self:flex-end;width:min(70%,360px);padding:10px 12px 9px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px #d8dee8,0 1px .5px rgba(11,20,26,.13)}
.ch-mh{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.ch-mh svg{width:22px;height:22px;flex:none}
.ch-mh span{display:flex;flex-direction:column;min-width:0;flex:1}
.ch-mh b{font-size:12.5px;color:#4A6FA5}
.ch-mh small{font:500 11px "Inter Tight",sans-serif;color:var(--steel);text-align:end;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-mh .ch-at{margin:0}
.ch-ms{display:block;font-size:14px;color:#111b21}
.ch-mail p{margin:3px 0 6px;font-size:12.5px;color:#54656f}
.ch-mail .ch-pv{margin-top:4px}
.ch-mf{display:block;font-size:11px;color:var(--faint)}
.ch-ft{flex:none;display:flex;align-items:center;justify-content:center;gap:6px;padding:11px 16px;background:#f0f2f5;border-top:1px solid #e3e6ea;font-size:12.5px;color:#54656f}
.ch-ft button{border:0;background:none;padding:0;font:600 12.5px "IBM Plex Sans Hebrew",sans-serif;color:#027eb5;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ch-ft button[disabled]{color:var(--faint);text-decoration:none;cursor:default}

/* what he did on his personal page: one card per visit, in the same line of time */
.ch-page{align-self:center;width:min(78%,420px);padding:9px 12px 8px;border-radius:10px;background:#fbf8ff;box-shadow:0 0 0 1px #e4d9fb,0 1px .5px rgba(11,20,26,.13)}
.ch-ph{display:flex;align-items:center;gap:7px;margin-bottom:4px;color:#5B2FD6}
.ch-ph svg{width:17px;height:17px;flex:none}
.ch-ph b{font-size:12.5px}
.ch-pr{display:flex;align-items:baseline;gap:10px;padding:3px 0;font-size:13px;color:#111b21}
.ch-pr i{font:500 11px "Inter Tight",sans-serif;font-style:normal;color:#667781;flex:none;min-width:34px}
.ch-pr.trial span{font-weight:700;color:var(--okInk)}
.ch-pr.note span{font-weight:600;color:var(--meInk)}

/* his card: who, his road (the timeline), how to reach him */
.ch-card{padding:14px 14px 12px;gap:10px}
.ch-who{display:flex;align-items:center;gap:12px}
.ch-who .fc{width:42px;height:42px;font-size:17px;flex:none;box-shadow:0 0 0 3px #fff,0 0 0 5px var(--line)}
.ch-who span{display:flex;flex-direction:column;min-width:0}
.ch-who b{font-size:17px;font-weight:600;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-who small{font-size:12px;color:var(--steel);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-trk{flex:1;min-height:0;display:flex;flex-direction:column;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.ch-tkh{display:flex;flex-direction:column;gap:0;padding:8px 12px 7px;background:linear-gradient(160deg,#fff 0,#fbf6e7 100%);border-bottom:1px solid var(--soft)}
.ch-tkh small{font-size:11px;color:var(--steel)}
.ch-tkh b{font-size:15.5px;font-weight:700;color:var(--navy)}
.ch-tkh span{font-size:12px;color:#8a6200;font-weight:600}
.ch-trk ol{list-style:none;margin:0;padding:5px 10px 5px 8px;flex:1;min-height:0;overflow:hidden auto;scrollbar-width:thin}
.ch-trk li{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:8px;align-items:start;padding:3px 0 4px;animation:panelIn .5s var(--spring) calc(var(--i)*30ms) both}
.ch-trk li:not(:last-child)::before{content:"";position:absolute;inset-inline-start:8px;top:20px;bottom:-4px;width:2px;border-radius:2px;background:var(--soft)}
.ch-trk li.done:not(:last-child)::before,.ch-trk li.now:not(:last-child)::before{background:#bfe8d6}
.ch-trk li>i{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font:700 11px/1 "Inter Tight",sans-serif;font-style:normal;background:#fff;box-shadow:inset 0 0 0 2px var(--line);color:#fff;position:relative;z-index:1}
.ch-trk li>i svg{width:12px;height:12px}
.ch-trk li.done>i{background:var(--ok);box-shadow:none}
.ch-trk li.now>i{background:var(--ok);box-shadow:0 0 0 4px rgba(255,194,26,.45)}
.ch-trk li.next>i{box-shadow:inset 0 0 0 2px #ffc21a;background:#fffaf0}
.ch-trk li.bad>i{background:#e5533d;box-shadow:none}
.ch-trk li.side>i,.ch-trk li.mail.todo>i{box-shadow:inset 0 0 0 2px var(--line);background:var(--cloud)}
.ch-trk li span{display:flex;flex-direction:column;min-width:0}
.ch-trk li b{font-size:12.5px;font-weight:600;color:var(--navy);line-height:1.35}
.ch-trk li.todo b,.ch-trk li.side b{color:var(--faint);font-weight:500}
.ch-trk li.bad b{color:var(--meInk)}
.ch-trk li small{font-size:11px;color:var(--steel);line-height:1.35}
.ch-trk li time{font:500 11px "Inter Tight",sans-serif;color:var(--steel);white-space:nowrap;padding-top:2px}
.ch-trk li em{font-style:normal;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:#ffc21a;color:#3b2a00;white-space:nowrap}
.ch-trk li em.nx{background:#fff3cc;color:#8a6200}
.ch-trk li.now{margin-inline:-6px;padding-inline:6px;border-radius:12px;background:#fffaf0}
.ch-lns{display:grid;grid-template-columns:1fr 1fr;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden;flex:none}
.ch-ln{display:flex;flex-direction:column;gap:1px;padding:7px 12px;min-width:0}
.ch-ln:last-child{grid-column:1/-1;border-top:1px solid var(--soft)}
.ch-ln+.ch-ln:not(:last-child){border-inline-start:1px solid var(--soft)}
.ch-ln small{font-size:10.5px;color:var(--steel)}
.ch-ln b{font-size:12.5px;font-weight:600;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-ln b[dir="ltr"]{text-align:end}
.ch-acts{display:flex;flex-direction:column;gap:7px;flex:none}
.ch-acts>span{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.ch-acts .btn{justify-content:center;text-decoration:none}
