*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans Hebrew","Helvetica Neue",Arial,sans-serif;background:#d1d7db;color:#111b21;-webkit-text-size-adjust:100%}
.app{max-width:720px;margin:0 auto;height:100vh;height:100dvh;display:flex;flex-direction:column;background:#efeae2;position:relative;overflow:hidden;box-shadow:0 0 30px rgba(0,0,0,.12)}
.top{display:flex;align-items:center;gap:10px;background:#008069;color:#fff;padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));flex:none;z-index:2}
.avatar{width:40px;height:40px;border-radius:50%;background:#fff;object-fit:cover;flex:none}
.who{flex:1;min-width:0}
.name{font-weight:600;font-size:16.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status{font-size:13px;opacity:.85;line-height:1.3;min-height:17px}
.restart{background:none;border:0;color:#fff;font-size:22px;width:40px;height:40px;border-radius:50%;cursor:pointer;opacity:.9}
.restart:active{background:rgba(255,255,255,.15)}
.langbar{display:flex;justify-content:center;gap:10px;direction:ltr;background:#008069;padding:2px 12px 11px;flex:none;z-index:2;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.lsw{flex:1 1 0;max-width:170px;min-height:44px;padding:9px 14px;border-radius:999px;border:2px solid rgba(255,255,255,.9);background:transparent;color:#fff;font:inherit;font-size:16.5px;font-weight:700;line-height:1.1;cursor:pointer;box-shadow:0 2px 0 rgba(0,0,0,.18);transition:transform .08s,box-shadow .08s,background .15s;-webkit-tap-highlight-color:transparent}
.lsw:hover{background:rgba(255,255,255,.1)}
.lsw.on,.lsw[aria-pressed=true]{background:#fff;color:#006b58;border-color:#fff;box-shadow:inset 0 3px 6px rgba(0,60,50,.35);transform:translateY(2px);cursor:default}
.lsw:focus-visible{outline:3px solid #ffd27a;outline-offset:2px}
.chat{flex:1;overflow-y:auto;padding:12px 10px 8px;-webkit-overflow-scrolling:touch;
 background-color:#efeae2;
 background-image:radial-gradient(rgba(0,0,0,.035) 1.2px,transparent 1.3px),radial-gradient(rgba(0,0,0,.025) 1px,transparent 1.1px);
 background-size:22px 22px,34px 34px;background-position:0 0,11px 17px}
.day{text-align:center;margin:4px 0 12px}
.day span{display:inline-block;background:#fff;color:#54656f;font-size:12.5px;padding:5px 12px;border-radius:8px;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.enc{text-align:center;margin:0 auto 12px;max-width:340px}
.enc span{display:inline-block;background:#ffeecd;color:#54656f;font-size:12.5px;padding:6px 12px;border-radius:8px;line-height:1.4;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.row{display:flex;margin:2px 0}
.row.bot{justify-content:flex-start}
.row.me{justify-content:flex-end}
.row.first{margin-top:10px}
.b{position:relative;max-width:82%;padding:6px 9px 8px;border-radius:8px;font-size:15.5px;line-height:1.38;box-shadow:0 1px .5px rgba(11,20,26,.13);white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;unicode-bidi:plaintext;animation:pop .18s ease-out}
.bot .b{background:#fff}
.me .b{background:#d9fdd3}
[dir=rtl] .bot.first .b{border-top-right-radius:0}
[dir=ltr] .bot.first .b{border-top-left-radius:0}
[dir=rtl] .me.first .b{border-top-left-radius:0}
[dir=ltr] .me.first .b{border-top-right-radius:0}
.t{float:inline-end;font-size:11px;color:#667781;margin:8px 0 -4px;margin-inline-start:10px;white-space:nowrap;line-height:1;unicode-bidi:isolate;direction:ltr}
.ticks{color:#53bdeb;margin-left:3px;letter-spacing:-3px}
.skipped{color:#667781;font-style:italic}
.err .b{background:#fff;border-inline-start:3px solid #e9a23b}
@keyframes pop{from{opacity:0;transform:translateY(4px) scale(.98)}to{opacity:1;transform:none}}
.typing .b{padding:12px 14px}
.dots{display:inline-flex;gap:4px;direction:ltr}
.dots i{width:7px;height:7px;border-radius:50%;background:#8696a0;animation:blink 1.2s infinite}
.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}
.summary{white-space:normal;max-width:92%;width:92%}
.summary h3{margin:0 0 6px;font-size:15px}
.sitem{display:flex;gap:8px;align-items:flex-start;padding:7px 0;border-top:1px solid #eef0f1}
.sitem:first-of-type{border-top:0}
.sq{font-size:12.5px;color:#667781;line-height:1.3}
.sa{font-size:14.5px;line-height:1.35;white-space:pre-wrap;unicode-bidi:plaintext}
.stext{flex:1;min-width:0}
.edit{flex:none;background:#f0f2f5;border:0;border-radius:14px;padding:5px 10px;font-size:13px;color:#008069;font-weight:600;cursor:pointer}
.composer{flex:none;background:#f0f2f5;padding:8px 8px;padding-bottom:max(8px,env(safe-area-inset-bottom));z-index:2;border-top:1px solid #e3e6e8}
.composer:empty{display:none}
.chips{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin-bottom:2px}
.chip{border:1px solid #d1d7db;background:#fff;color:#008069;font:inherit;font-size:15px;font-weight:600;padding:9px 15px;border-radius:20px;cursor:pointer;min-height:42px;line-height:1.2;-webkit-tap-highlight-color:transparent}
.chip:active{background:#e7f6f2}
.chip.on{background:#008069;color:#fff;border-color:#008069}
.chip.on::before{content:"✓ "}
.chip.ghost{color:#54656f;font-weight:500;background:#f7f8fa}
.chip.primary{background:#008069;color:#fff;border-color:#008069}
.chip.primary:disabled{background:#b6c9c4;border-color:#b6c9c4;cursor:default}
.chip.big{padding:12px 26px;font-size:17px}
.actions{display:flex;gap:7px;justify-content:center;margin-top:8px;flex-wrap:wrap}
.inputbar{display:flex;align-items:flex-end;gap:7px}
.field{flex:1;background:#fff;border-radius:22px;padding:9px 15px;min-height:44px;display:flex;align-items:center}
.field input,.field textarea{border:0;outline:0;width:100%;font:inherit;font-size:16px;background:transparent;resize:none;line-height:1.35;max-height:120px;color:#111b21;unicode-bidi:plaintext}
.field textarea{height:24px}
.send{flex:none;width:46px;height:46px;border-radius:50%;border:0;background:#008069;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.send svg{width:22px;height:22px}
[dir=rtl] .send svg{transform:scaleX(-1)}
.send:disabled{background:#9fb8b2}
.hint{font-size:12.5px;color:#667781;text-align:center;margin:0 0 6px}
.skiprow{display:flex;justify-content:center;gap:7px;margin-bottom:7px;flex-wrap:wrap}
.chip.back{padding:7px 13px;min-height:36px;font-size:14px}
.grid{width:100%;border-collapse:separate;border-spacing:3px;direction:ltr;margin:0 auto 4px}
.grid th{font-size:12px;color:#54656f;font-weight:600;padding:2px 0}
.grid th.day{text-align:start;padding-inline-end:4px;white-space:nowrap;font-size:12.5px;color:#111b21}
.grid td{padding:0}
.cell{width:100%;min-width:30px;height:36px;border-radius:8px;border:1px solid #d1d7db;background:#fff;cursor:pointer;font-size:0;-webkit-tap-highlight-color:transparent}
.cell.on{background:#008069;border-color:#008069}
.cell.on::after{content:"✓";color:#fff;font-size:15px}
.gridwrap{max-height:52vh;overflow:auto}
.done-note{text-align:center;color:#54656f;font-size:14px;padding:4px}
@media (min-width:721px){body{padding:0}.app{border-left:1px solid #ccc;border-right:1px solid #ccc}}
.ln{unicode-bidi:plaintext;text-align:start}

.slotwrap{max-height:46vh;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:2px 2px 4px}
.slotday{margin:0 0 8px}
.slotdate{font-size:13px;font-weight:700;color:#3b4a54;text-align:center;margin:2px 0 5px}
.chip.slot{padding:8px 13px;font-size:15px;min-width:72px;direction:ltr}

a.chip{text-decoration:none;display:inline-flex;align-items:center}
.chip.wa{background:#25d366;color:#fff;border-color:#25d366}
.contact-acts{margin-top:10px}
