.abai-helper{position:fixed;z-index:99998;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
.abai-helper.abai-pos-bottom_right{right:14px;bottom:14px}
.abai-helper.abai-pos-bottom_left{left:14px;bottom:14px}
.abai-helper.abai-pos-top_right{right:14px;top:14px}
.abai-helper.abai-pos-top_left{left:14px;top:14px}
.abai-helper__btn{width:44px;height:44px;border-radius:999px;border:0;background:#111;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.18);cursor:pointer}
.abai-helper__panel{display:none;margin-top:10px;min-width:220px;max-width:280px;background:#fff;color:#111;border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.22);overflow:hidden}
.abai-helper.abai-open .abai-helper__panel{display:block}
.abai-helper__hd{padding:10px 12px;font-weight:600;border-bottom:1px solid rgba(0,0,0,.08);display:flex;justify-content:space-between;align-items:center}
.abai-helper__bd{padding:10px 12px;display:flex;flex-wrap:wrap;gap:8px}
.abai-helper__ctl{padding:8px 10px;border-radius:10px;border:1px solid rgba(0,0,0,.14);background:#fafafa;cursor:pointer;font-size:12px}
.abai-helper__ctl[aria-pressed="true"]{background:#111;color:#fff;border-color:#111}
.abai-helper__x{border:0;background:transparent;font-size:16px;cursor:pointer;line-height:1}
@media (prefers-color-scheme: dark){
  .abai-helper__panel{background:#111;color:#fff}
  .abai-helper__hd{border-bottom:1px solid rgba(255,255,255,.12)}
  .abai-helper__ctl{background:#181818;border-color:rgba(255,255,255,.18);color:#fff}
}
body.abai-helper-contrast{filter:contrast(1.2) saturate(1.1)}
body.abai-helper-spacing{letter-spacing:.04em;word-spacing:.08em;line-height:1.6}
body.abai-helper-reading main, body.abai-helper-reading #main, body.abai-helper-reading .site-main{max-width:860px;margin-left:auto;margin-right:auto}

/* Large cursor (safe, CSS-only) */
body.abai-helper-cursor, body.abai-helper-cursor *{
  cursor:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIj4KPHBhdGggZD0iTTMgMmwxMCAyNCAzLTggOCA4IDMtMy04LTggOC0zTDMgMnoiIGZpbGw9IiMwMDAiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+") 2 2, auto !important;
}

/* Focus highlight (keyboard users) */
body.abai-helper-focus :focus-visible{
  outline:3px solid currentColor !important;
  outline-offset:3px !important;
}

/* Reduce motion / pause animations */
body.abai-helper-motion *,
body.abai-helper-motion *::before,
body.abai-helper-motion *::after{
  animation-duration:0.001ms !important;
  animation-iteration-count:1 !important;
  transition-duration:0.001ms !important;
  scroll-behavior:auto !important;
}

/* Publisher-safe mobile safe zones (avoid common sticky ad areas) */
html.abai-mobile-safe-zones .abai-helper.abai-pos-bottom_right,
html.abai-mobile-safe-zones .abai-helper.abai-pos-bottom_left{bottom:84px}


/* --- AccessBoost AI Robust UI Overrides (v1.1.29) --- */
#abai-helper, #abai-helper *{box-sizing:border-box}
#abai-helper{pointer-events:auto}
#abai-helper .abai-helper__btn, 
#abai-helper .abai-helper__ctl, 
#abai-helper .abai-helper__x{
  -webkit-appearance:none !important;
  appearance:none !important;
  font-family:inherit !important;
}
#abai-helper .abai-helper__btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-weight:700 !important;
}
#abai-helper .abai-helper__panel{
  position:absolute !important;
  margin-top:0 !important;
  top:54px !important;
  right:0 !important;
  left:auto !important;
}
#abai-helper.abai-pos-top_left .abai-helper__panel,
#abai-helper.abai-pos-bottom_left .abai-helper__panel{left:0 !important; right:auto !important;}
#abai-helper.abai-pos-bottom_left .abai-helper__panel,
#abai-helper.abai-pos-bottom_right .abai-helper__panel{top:auto !important; bottom:54px !important;}
/* Make controls wrap nicely even under theme styles */
#abai-helper .abai-helper__bd{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
}
#abai-helper .abai-helper__ctl{
  all:unset;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:8px 10px !important;
  border-radius:10px !important;
  border:1px solid rgba(0,0,0,.14) !important;
  background:#fafafa !important;
  color:#111 !important;
  cursor:pointer !important;
  font-size:12px !important;
  line-height:1.2 !important;
  user-select:none !important;
}
#abai-helper .abai-helper__ctl:focus-visible{
  outline:2px solid rgba(17,17,17,.35) !important;
  outline-offset:2px !important;
}
#abai-helper .abai-helper__ctl[aria-pressed="true"]{
  background:#111 !important;
  color:#fff !important;
  border-color:#111 !important;
}
/* Panel always looks like a panel (prevents theme resets) */
#abai-helper .abai-helper__panel{
  background:#fff !important;
  color:#111 !important;
  border-radius:14px !important;
  box-shadow:0 14px 40px rgba(0,0,0,.22) !important;
  overflow:hidden !important;
  min-width:240px !important;
  max-width:320px !important;
}
#abai-helper .abai-helper__hd{
  background:transparent !important;
  padding:10px 12px !important;
  font-weight:600 !important;
  border-bottom:1px solid rgba(0,0,0,.08) !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
}
#abai-helper .abai-helper__x{
  all:unset;
  cursor:pointer !important;
  font-size:16px !important;
  line-height:1 !important;
  padding:4px 6px !important;
  border-radius:8px !important;
}
@media (prefers-color-scheme: dark){
  #abai-helper .abai-helper__panel{background:#111 !important;color:#fff !important;}
  #abai-helper .abai-helper__hd{border-bottom:1px solid rgba(255,255,255,.12) !important;}
  #abai-helper .abai-helper__ctl{background:#181818 !important;border-color:rgba(255,255,255,.18) !important;color:#fff !important;}
  #abai-helper .abai-helper__ctl:focus-visible{outline-color:rgba(255,255,255,.35) !important;}
}
