
  #thbFabBtn {
    position: fixed; bottom: 16px; left: 14px; z-index: 999998;
    width: 48px; height: 48px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, #008354, #00623f);
    color: #fff; font-size: 21px; cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s ease;
  }
  #thbFabBtn:hover { transform: scale(1.06); }
  #thbFabBtn .thb-badge {
    position: absolute; top: -3px; right: -3px; background: #ef4444; color: #fff;
    font-size: 9px; font-weight: 800; border-radius: 999px; padding: 2px 5px;
    display: none;
  }
  #thbPanel {
    position: fixed; bottom: 74px; left: 14px; z-index: 999999;
    width: 360px; max-width: calc(100vw - 24px); height: min(72vh, 620px);
    background: #f8faf9; border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.32);
    display: none; flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif; direction: rtl;
    border: 1px solid rgba(0,0,0,0.06);
  }
  #thbPanel.thb-open { display: flex; }
  #thbHeader {
    background: linear-gradient(135deg, #008354, #00623f);
    color: #fff; padding: 12px 14px 10px; flex: none;
  }
  #thbHeader .thb-title-row { display: flex; align-items: center; justify-content: space-between; }
  #thbHeader .thb-title { font-weight: 900; font-size: 15px; display: flex; align-items: center; gap: 6px; }
  #thbCloseBtn { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 13px; }
  #thbStatusRow { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,0.92); }
  #thbStatusBadge { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.16); padding: 2px 8px; border-radius: 999px; }
  .thb-dot { width: 6px; height: 6px; border-radius: 50%; background: #9aa3ad; flex: none; }
  .thb-dot.thb-ok { background: #4ade80; }
  .thb-dot.thb-bad { background: #fbbf24; }
  #thbRefreshBtn { background: rgba(255,255,255,0.16); border: none; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 999px; cursor: pointer; }
  #thbMessages { flex: 1; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 8px; background: #f8faf9; }
  .thb-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
  .thb-msg.thb-user { align-self: flex-start; background: #008354; color: #fff; border-bottom-left-radius: 4px; }
  .thb-msg.thb-bot { align-self: flex-end; background: #fff; border: 1px solid #e2e8f0; color: #223041; border-bottom-right-radius: 4px; }
  .thb-msg .thb-link { color: #008354; text-decoration: underline; word-break: break-all; font-weight: 700; }
  .thb-msg .thb-link:hover { text-decoration: none; }
  .thb-msg.thb-note { align-self: center; background: transparent; color: #5b6675; font-size: 11px; text-align: center; max-width: 95%; }
  .thb-welcome { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; font-size: 12px; color: #5b6675; line-height: 1.55; }
  .thb-welcome b { color: #223041; }
  .thb-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
  .thb-chip { background: #e7f4ed; color: #00623f; border: 1px solid #e2e8f0; border-radius: 999px; padding: 5px 10px; font-size: 11px; cursor: pointer; font-weight: 700; }
  .thb-typing { align-self: flex-end; display: flex; gap: 4px; padding: 11px 13px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; border-bottom-right-radius: 4px; }
  .thb-typing span { width: 5px; height: 5px; border-radius: 50%; background: #5b6675; animation: thbBlink 1.2s infinite ease-in-out; }
  .thb-typing span:nth-child(2) { animation-delay: 0.2s; }
  .thb-typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes thbBlink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
  #thbInputRow { flex: none; display: flex; gap: 7px; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e2e8f0; }
  #thbInputRow textarea { flex: 1; resize: none; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 11px; font-size: 13px; font-family: inherit; max-height: 90px; direction: rtl; outline: none; }
  #thbInputRow textarea:focus { border-color: #008354; }
  #thbSendBtn { background: #008354; color: #fff; border: none; border-radius: 10px; padding: 0 15px; font-weight: 800; font-size: 13px; cursor: pointer; flex: none; }
  #thbSendBtn:disabled { opacity: 0.5; cursor: default; }
  #thbFooter { text-align: center; font-size: 9px; color: #6b7280; padding: 3px 0 6px; background: #fff; }
  @media (max-width: 420px) {
    #thbPanel { left: 8px; bottom: 68px; width: calc(100vw - 16px); height: min(78vh, 640px); }
    #thbFabBtn { left: 10px; bottom: 12px; }
  }
  /* מסתיר את תג "מסנכרן…" הקיים של הפורטל (הסנכרון עצמו ממשיך לפעול ברקע כרגיל, רק בלי התג הוויזואלי) */
  #syncBadge { display: none !important; }
