
  #thbFabBtn {
    /* מתחת לכל החלונות הקופצים (מ-3000 ומעלה), כדי שאדם לא יעמוד מעל
       כפתורים של חלון פתוח. החלון של הבוט עצמו נשאר מעל הכול. */
    position: fixed; bottom: 12px; left: 14px; z-index: 2900;
    width: 50px; height: 60px; padding: 0; border: 0; border-radius: 0;
    background: none; box-shadow: none; color: inherit; font-size: 0;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    display: block; transition: transform .2s ease;
  }
  #thbFabBtn:hover { transform: scale(1.08); }
  #thbFabBtn svg { width: 100%; height: 100%; overflow: visible; display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
  /* אדם רוקד: מתנדנד מצד לצד בקפיצות קטנות, הידיים מתחלפות והרגליים
     מתרוממות לסירוגין. */
  #thbFabBtn .tb-all   { animation: tbDance 1.6s ease-in-out infinite; transform-origin: 25px 58px; }
  #thbFabBtn .tb-eye   { animation: tbBlink 4.6s infinite; transform-box: fill-box; transform-origin: center; }
  #thbFabBtn .tb-light { animation: tbPulse 1.6s ease-in-out infinite; }
  #thbFabBtn .tb-arm   { animation: tbArmR .8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 90% 10%; }
  #thbFabBtn .tb-arm2  { animation: tbArmL .8s ease-in-out infinite alternate-reverse; transform-box: fill-box; transform-origin: 10% 10%; }
  #thbFabBtn .tb-leg1  { animation: tbStep .8s ease-in-out infinite alternate; }
  #thbFabBtn .tb-leg2  { animation: tbStep .8s ease-in-out infinite alternate-reverse; }
  /* העיניים רק ממצמצות — לא זזות מצד לצד */
  #thbFabBtn:hover .tb-all { animation-duration: 1s; }
  @keyframes tbBob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  @keyframes tbBlink { 0%,44%,50%,100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
  @keyframes tbPulse { 0%,100% { fill: #7ee2b0; } 50% { fill: #ffd166; } }
  @keyframes tbDance { 0%,100% { transform: translateY(0) rotate(-7deg); }
                       25% { transform: translateY(-4px) rotate(0deg); }
                       50% { transform: translateY(0) rotate(7deg); }
                       75% { transform: translateY(-4px) rotate(0deg); } }
  /* הידיים עולות החוצה ולמעלה, לסירוגין — לא חוצות את הגוף */
  @keyframes tbArmR  { from { transform: rotate(-5deg); } to { transform: rotate(135deg); } }
  @keyframes tbArmL  { from { transform: rotate(5deg); } to { transform: rotate(-135deg); } }
  @keyframes tbStep  { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
  @media (max-width: 420px) { #thbFabBtn { left: 10px; bottom: 9px; } }
  /* בועת הדיבור של אדם. נפתחת כמה שניות אחרי טעינת הדף, ויורדת
     כשהחלון של הבוט פתוח — אין טעם להציע עזרה כשכבר מדברים. */
  #thbBubble {
    position: fixed; bottom: 48px; left: 66px; z-index: 2900;
    background: #ffffff; color: #0d4f3c; border: 1.2px solid #008354;
    border-radius: 10px 10px 10px 3px; padding: 2px 7px;   /* 29.09.2026 — קטנה יותר, שורה אחת */
    font: 700 10px/1.3 'Segoe UI', Tahoma, Arial, sans-serif; direction: rtl;
    white-space: nowrap; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.14);
    opacity: 0; transform: translateY(6px) scale(.9); transform-origin: 0 100%;
    animation: tbBubbleIn .45s ease-out 1.4s forwards, tbBubbleFloat 3.2s ease-in-out 1.9s infinite;
  }
  #thbBubble::before {
    content: ''; position: absolute; left: -5px; bottom: 4px;
    border: 4px solid transparent; border-right-color: #008354; border-left: 0;
  }
  #thbBubble::after {
    content: ''; position: absolute; left: -3px; bottom: 5px;
    border: 3px solid transparent; border-right-color: #ffffff; border-left: 0;
  }
  body:has(#thbPanel.thb-open) #thbBubble { display: none; }
  @keyframes tbBubbleIn { to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes tbBubbleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  @media (max-width: 420px) { #thbBubble { left: 60px; bottom: 44px; font-size: 9px; } }
  @media (prefers-reduced-motion: reduce) {
    #thbBubble { animation: none; opacity: 1; transform: none; }
  }
  /* אותו אדם, קטן, בכותרת החלון */
  .thb-head-bot { display: inline-flex; align-items: center; margin-left: 6px; }
  .thb-head-bot svg { display: block; overflow: visible; }
  .thb-head-bot .tb-eye { animation: tbBlink 4.6s infinite; transform-box: fill-box; transform-origin: center; }
  .thb-head-bot .tb-light { animation: tbPulse 1.6s ease-in-out infinite; }
  @media (prefers-reduced-motion: reduce) {
    #thbFabBtn .tb-all, #thbFabBtn .tb-eye, #thbFabBtn .tb-light, #thbFabBtn .tb-arm, #thbFabBtn .tb-arm2,
    #thbFabBtn .tb-leg1, #thbFabBtn .tb-leg2,
    .thb-head-bot .tb-eye, .thb-head-bot .tb-light { animation: none; }
  }

  /* 29.09.2026 — כשהחלון פתוח, אדם הרוקד עובר לתוך תיבת הטקסט: הכפתור
     הצף יורד, והחלון יורד למטה במקומו. */
  #thbFabBtn { transition: transform .35s ease, opacity .3s ease; }
  body:has(#thbPanel.thb-open) #thbFabBtn { opacity: 0; transform: translateY(-60px) scale(.5); pointer-events: none; }
  body:has(#thbPanel.thb-open) #thbPanel { bottom: 14px; }
  @media (max-width: 420px) { body:has(#thbPanel.thb-open) #thbPanel { bottom: 8px; height: min(84vh, 680px); } }
  #thbInputRow .thb-inbox { flex: 1; position: relative; display: flex; min-width: 0; }
  #thbInputRow .thb-inbox textarea { width: 100%; padding-left: 38px; }
  .thb-in-bot { position: absolute; left: 7px; bottom: 3px; width: 26px; height: 31px; pointer-events: none; }
  .thb-in-bot svg { display: block; overflow: visible; }
  #thbPanel.thb-open .thb-in-bot { animation: tbArrive .5s ease-out; }
  .thb-in-bot .tb-all   { animation: tbDance 1.6s ease-in-out infinite; transform-origin: 25px 58px; }
  .thb-in-bot .tb-eye   { animation: tbBlink 4.6s infinite; transform-box: fill-box; transform-origin: center; }
  .thb-in-bot .tb-light { animation: tbPulse 1.6s ease-in-out infinite; }
  .thb-in-bot .tb-arm   { animation: tbArmR .8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 90% 10%; }
  .thb-in-bot .tb-arm2  { animation: tbArmL .8s ease-in-out infinite alternate-reverse; transform-box: fill-box; transform-origin: 10% 10%; }
  .thb-in-bot .tb-leg1  { animation: tbStep .8s ease-in-out infinite alternate; }
  .thb-in-bot .tb-leg2  { animation: tbStep .8s ease-in-out infinite alternate-reverse; }
  @keyframes tbArrive { from { transform: translateY(40px) scale(1.6); opacity: 0; } to { transform: none; opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .thb-in-bot .tb-all, .thb-in-bot .tb-eye, .thb-in-bot .tb-light, .thb-in-bot .tb-arm, .thb-in-bot .tb-arm2,
    .thb-in-bot .tb-leg1, .thb-in-bot .tb-leg2, #thbPanel.thb-open .thb-in-bot { animation: none; }
  }
  /* 29.09.2026 — "כל הזכויות שמורות" מופיע רק בדף הבית (site-credit),
     לא בכל חלון. מסמכים שמודפסים או יוצאים מהאתר שומרים על השורה שלהם. */
  .hf-credit, .hub-credit, .pd-credit, .ed-credit, .ap-credit, .db-credit, .ab-credit, .tc-credit, #thbFooter { display: none !important; }
