/* OZT OpsLab — chat "Ask me anything" / "שאלו אותי". Mobile-first, LTR (English) and RTL (Hebrew). All classes start with tc- */
.tc-launch{position:fixed;z-index:60;font-family:inherit;bottom:calc(16px + env(safe-area-inset-bottom));inset-inline-end:16px;display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:10px 18px 10px 16px;border:0;border-radius:999px;background:var(--navy,#10233a);color:#fff;font:inherit;font-weight:800;font-size:1rem;cursor:pointer;box-shadow:0 8px 24px rgba(16,35,58,.35);transition:transform .15s,box-shadow .15s}
.tc-launch:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(16,35,58,.4)}
.tc-launch:focus-visible{outline:3px solid var(--amber,#e9a93a);outline-offset:3px}
.tc-launch-ico{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--amber,#e9a93a);color:var(--navy,#10233a);flex:none}
.tc-launch-ico svg{width:18px;height:18px;fill:currentColor}
.tc-open .tc-launch{display:none}

/* teaser bubble ("יש שאלה? אני עונה מיד") — appears once, above the launcher */
.tc-teaser{position:fixed;z-index:61;bottom:calc(80px + env(safe-area-inset-bottom));inset-inline-end:16px;display:flex;align-items:flex-start;gap:2px;max-width:min(300px,calc(100vw - 32px));padding:4px;border-radius:18px;border-end-end-radius:6px;background:#fff;color:var(--ink,#13202c);border:1px solid var(--line,#e2ddd2);box-shadow:0 10px 28px rgba(16,35,58,.22)}
.tc-teaser:empty{display:none}
.tc-teaser-msg{flex:1;min-height:44px;padding:10px 12px;border:0;border-radius:14px;background:transparent;color:inherit;font:inherit;font-size:1rem;font-weight:700;line-height:1.4;text-align:start;cursor:pointer}
.tc-teaser-msg:hover{background:var(--bg,#f7f5f0)}
.tc-teaser-x{display:grid;place-items:center;flex:none;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:var(--mute,#56636f);cursor:pointer}
.tc-teaser-x svg{width:18px;height:18px;fill:currentColor}
.tc-teaser-x:hover{background:var(--bg,#f7f5f0);color:var(--ink,#13202c)}
.tc-teaser-msg:focus-visible,.tc-teaser-x:focus-visible{outline:3px solid var(--navy-2,#1a3554);outline-offset:1px}
.tc-open .tc-teaser{display:none}
@media (prefers-reduced-motion:no-preference){.tc-teaser{animation:tc-pop .35s ease-out}}
@keyframes tc-pop{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}

.tc-panel{position:fixed;z-index:70;inset:0;display:flex;flex-direction:column;background:var(--bg,#f7f5f0);color:var(--ink,#13202c);height:100%;height:100dvh}
.tc-panel[hidden]{display:none}
.tc-head{display:flex;align-items:center;gap:10px;padding:10px 12px;padding-top:calc(10px + env(safe-area-inset-top));background:var(--navy,#10233a);color:#fff;flex:none}
.tc-mark{flex:none;width:34px;height:34px}
.tc-mark svg{width:34px;height:34px}
.tc-titles{min-width:0;flex:1}
.tc-title{color:#fff;letter-spacing:0;margin:0;font-size:1rem;font-weight:800;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-sub{margin:0;font-size:.8rem;opacity:.85;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-sub::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--wa,#25d366);margin-inline-end:6px;vertical-align:middle}
.tc-hbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 10px;border:0;border-radius:12px;background:transparent;color:#fff;font:inherit;font-size:.88rem;font-weight:700;cursor:pointer}
.tc-hbtn:hover{background:rgba(255,255,255,.12)}
.tc-hbtn:focus-visible{outline:3px solid var(--amber,#e9a93a);outline-offset:-3px}
.tc-hbtn svg{width:20px;height:20px;fill:currentColor;flex:none}

.tc-log{flex:1;overflow-y:auto;padding:16px 12px 8px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.tc-msg{max-width:86%;padding:10px 14px;border-radius:18px;line-height:1.5;font-size:1rem;white-space:pre-wrap;overflow-wrap:anywhere}
.tc-bot{align-self:flex-start;background:#fff;border:1px solid var(--line,#e2ddd2);border-start-start-radius:6px}
.tc-me{align-self:flex-end;background:var(--navy-2,#1a3554);color:#fff;border-start-end-radius:6px}
.tc-msg a{color:#1d4f8a;text-underline-offset:2px}
.tc-me a{color:#fff}
.tc-text{unicode-bidi:plaintext;text-align:start}
.tc-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.tc-chips{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start;max-width:100%}
.tc-chip{min-height:44px;padding:8px 14px;border:2px solid var(--navy-2,#1a3554);border-radius:999px;background:#fff;color:var(--navy-2,#1a3554);font:inherit;font-size:.95rem;font-weight:700;cursor:pointer}
.tc-chip:hover{background:var(--navy-2,#1a3554);color:#fff}
.tc-chip:focus-visible{outline:3px solid var(--navy,#10233a);outline-offset:2px}
.tc-typing{align-self:flex-start;display:inline-flex;gap:5px;align-items:center;padding:14px 16px;background:#fff;border:1px solid var(--line,#e2ddd2);border-radius:18px;border-start-start-radius:6px}
.tc-typing i{width:7px;height:7px;border-radius:50%;background:var(--mute,#56636f);animation:tc-blink 1.2s infinite ease-in-out}
.tc-typing i:nth-child(2){animation-delay:.2s}.tc-typing i:nth-child(3){animation-delay:.4s}
@keyframes tc-blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
.tc-err{align-self:stretch;padding:10px 14px;border-radius:14px;background:#fff4e0;border:1px solid #f0c36d;color:#5c3b00;font-size:.95rem;line-height:1.5}
.tc-err p{margin:0 0 6px}
.tc-err-actions{display:flex;flex-wrap:wrap;gap:8px}
.tc-err button,.tc-err a{display:inline-flex;align-items:center;min-height:40px;padding:6px 12px;border-radius:999px;border:2px solid #8a5a00;background:#fff;color:#5c3b00;font:inherit;font-size:.9rem;font-weight:700;text-decoration:none;cursor:pointer}
.tc-err button:focus-visible,.tc-err a:focus-visible{outline:3px solid var(--navy,#10233a);outline-offset:2px}

.tc-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;padding-bottom:calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line,#e2ddd2);flex:none}
.tc-input{flex:1;min-height:48px;max-height:132px;resize:none;padding:12px 14px;border:2px solid #9aa9b7;border-radius:16px;font:inherit;font-size:1rem;line-height:1.4;color:var(--ink,#13202c);background:#fff;unicode-bidi:plaintext}
.tc-input:focus{outline:none;border-color:var(--navy-2,#1a3554);box-shadow:0 0 0 3px rgba(26,53,84,.2)}
.tc-send{display:grid;place-items:center;width:48px;height:48px;flex:none;border:0;border-radius:50%;background:var(--navy-2,#1a3554);color:#fff;cursor:pointer}
.tc-send svg{width:22px;height:22px;fill:currentColor}
[dir="rtl"] .tc-send svg{transform:scaleX(-1)}
.tc-send:disabled{background:#8796a5;cursor:not-allowed}
.tc-send:focus-visible{outline:3px solid var(--navy,#10233a);outline-offset:2px}
.tc-foot{margin:0;padding:0 12px 8px;background:#fff;font-size:.78rem;color:var(--mute,#56636f);line-height:1.4;flex:none}
.tc-foot a{color:var(--navy-2,#1a3554)}
.tc-count{font-variant-numeric:tabular-nums}
.tc-count[hidden]{display:none}
html.tc-lock,html.tc-lock body{overflow:hidden}

/* the "New chat" button is icon-only here (label for screen readers + tooltip), so the title fits */
.tc-hbtn-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media (max-width:479px){.tc-hbtn-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}}
@media (min-width:720px){
  .tc-launch{bottom:24px;inset-inline-end:24px}
  .tc-teaser{bottom:88px;inset-inline-end:24px}
  .tc-panel{inset:auto;bottom:24px;inset-inline-end:24px;width:440px;height:min(660px,calc(100vh - 48px));border-radius:20px;overflow:hidden;box-shadow:0 24px 60px rgba(16,35,58,.35);border:1px solid var(--line,#e2ddd2)}
  .tc-head{padding-top:10px}
  html.tc-lock,html.tc-lock body{overflow:auto}
}
@media (prefers-reduced-motion:reduce){.tc-launch,.tc-typing i,.tc-teaser{transition:none!important;animation:none!important}}
@media (forced-colors:active){.tc-msg,.tc-chip,.tc-launch,.tc-send,.tc-teaser{border:1px solid CanvasText}}

html[lang="he"] .tc-panel,html[lang="he"] .tc-launch,html[lang="he"] .tc-teaser{font-family:var(--font-he)}
