.kampi-a11y-launcher {
  /* Keep the accessibility launcher beside the 58px assistant button, with a 12px gap. */
  position: fixed; inset-inline-start: 90px; bottom: 16px; z-index: 2147483000;
  min-width: 48px; min-height: 48px; padding: 10px 14px; border: 2px solid #fff;
  border-radius: 999px; background: #3f1d83; color: #fff; font: 800 15px/1.2 Assistant, Arial, sans-serif;
  box-shadow: 0 6px 24px rgba(20, 12, 45, .28); cursor: pointer;
  transition: inset-inline-start .22s cubic-bezier(.2, .8, .3, 1), bottom .22s cubic-bezier(.2, .8, .3, 1);
}

/* כשחלון העוזר פתוח, הכפתור מתרחק אל מעבר לקצה שלו ומתיישב חזרה בסגירה.
   הרקע: הכפתור יושב ב-z-index מקסימלי כדי שכלי הנגישות לעולם לא ייחסם, ופאנל
   העוזר יושב ב-61, ולכן הכפתור נשאר תקוע מעל החלון בדיוק כשקוראים בו. הורדת
   ה-z-index הייתה פותרת את החפיפה ושוברת את הכלל, ולכן הכפתור זז ולא נכנע.
   הרוחב כאן זהה ל-.kbot-panel ב-bot.css; שינוי שם מחייב שינוי גם כאן. */
html.kbot-open .kampi-a11y-launcher {
  inset-inline-start: calc(20px + min(392px, 100vw - 32px) + 12px);
}

.kampi-a11y-launcher:focus-visible,
.kampi-a11y-panel button:focus-visible,
.kampi-a11y-panel a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.kampi-a11y-panel {
  position: fixed; inset-inline-start: 16px; bottom: 76px; z-index: 2147483000;
  width: min(330px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow-y: auto;
  padding: 18px; border: 2px solid #3f1d83; border-radius: 18px; background: #fff; color: #1c1433;
  box-shadow: 0 18px 50px rgba(20, 12, 45, .32); font-family: Assistant, Arial, sans-serif;
}
.kampi-a11y-panel[hidden] { display: none; }
.kampi-a11y-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.kampi-a11y-heading h2 { margin: 0; color: #1c1433; font-size: 22px; line-height: 1.25; }
.kampi-a11y-close {
  width: 44px; height: 44px; border: 1px solid #675b7d; border-radius: 12px; background: #fff; color: #1c1433;
  font: 700 28px/1 Arial, sans-serif; cursor: pointer;
}
.kampi-a11y-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.kampi-a11y-controls button, .kampi-a11y-reset {
  min-height: 46px; padding: 9px 10px; border: 2px solid #6c5d88; border-radius: 10px;
  background: #fff; color: #1c1433; font: 700 14px/1.3 Assistant, Arial, sans-serif; cursor: pointer;
}
.kampi-a11y-controls button[aria-pressed="true"] { border-color: #3f1d83; background: #3f1d83; color: #fff; }
.kampi-a11y-reset { width: 100%; margin-top: 10px; }
.kampi-a11y-statement { display: block; margin-top: 14px; color: #32166b; font-weight: 800; text-decoration: underline; }
.kampi-a11y-hint { margin: 10px 0 0; color: #514768; font-size: 13px; }

html.kampi-a11y-large { font-size: 112.5%; }
html.kampi-a11y-contrast { filter: contrast(1.25); }
html.kampi-a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.kampi-a11y-readable, html.kampi-a11y-readable * { font-family: Arial, sans-serif !important; letter-spacing: .02em; }
html.kampi-a11y-motion *, html.kampi-a11y-motion *::before, html.kampi-a11y-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important;
}

@media (max-width: 480px) {
  .kampi-a11y-launcher { inset-inline-start: 84px; bottom: 10px; }
  .kampi-a11y-panel { inset-inline-start: 10px; bottom: 68px; width: calc(100vw - 20px); }
}

/* מתחת ל-520px פאנל העוזר תופס את כל הרוחב והגובה (‏bot.css), ולכן אין "לצדו".
   שם הוא מתנהג כדיאלוג מסך-מלא, והכפתור נסוג עד לסגירתו. זו נסיגה זמנית ולא
   הסתרה: הכפתור חוזר ברגע שהחלון נסגר, ואין מצב שבו כלי הנגישות אינו זמין
   בזמן שהמשתמש רואה את תוכן העמוד. */
@media (max-width: 520px) {
  html.kbot-open .kampi-a11y-launcher { inset-inline-start: 84px; opacity: 0; pointer-events: none; }
}
