/* Raido AI — Accessibility Tools (sticky, all devices) */
.raido-a11y-root{
  position:fixed !important;
  right:16px !important;
  bottom:16px !important;
  left:auto !important;
  top:auto !important;
  z-index:2147483000 !important;
  display:flex !important;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  margin:0;
  padding:0;
  width:auto;
  height:auto;
  pointer-events:none;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.raido-a11y-root *,
.raido-a11y-root *::before,
.raido-a11y-root *::after{box-sizing:border-box}
.raido-a11y-panel{
  pointer-events:auto;
  width:min(280px, calc(100vw - 32px));
  background:#fff;
  color:#2b2b2b;
  border-radius:10px;
  box-shadow:0 12px 40px rgba(0,0,0,.22);
  overflow:hidden;
  transform-origin:bottom right;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px) scale(.98);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
  display:none;
}
.raido-a11y-panel.is-open{
  display:block;
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}
.raido-a11y-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px 10px;
  border-bottom:1px solid #e6e6e6;
}
.raido-a11y-head h2{
  margin:0;
  font-size:16px;
  font-weight:700;
  line-height:1.2;
  color:#222;
  font-family:inherit;
  letter-spacing:0;
  text-transform:none;
}
.raido-a11y-close{
  appearance:none;
  border:0;
  background:transparent;
  color:#555;
  width:36px;
  height:36px;
  border-radius:8px;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.raido-a11y-close:hover,
.raido-a11y-close:focus-visible{
  background:#f2f2f2;
  outline:2px solid #1a73e8;
  outline-offset:1px;
}
.raido-a11y-list{
  list-style:none;
  margin:0;
  padding:6px 0 10px;
  max-height:min(70vh, 520px);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.raido-a11y-list li{margin:0;padding:0}
.raido-a11y-list button{
  appearance:none;
  width:100%;
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  text-align:left;
  cursor:pointer;
  color:#2b2b2b;
  font-size:15px;
  font-weight:500;
  line-height:1.2;
  min-height:48px;
  touch-action:manipulation;
  font-family:inherit;
  letter-spacing:0;
  text-transform:none;
  border-radius:0;
  box-shadow:none;
}
.raido-a11y-list button:hover{background:#f5f7fb}
.raido-a11y-list button:focus-visible{outline:2px solid #1a73e8; outline-offset:-2px}
.raido-a11y-list button.is-active{background:#e8f0fe; color:#174ea6}
.raido-a11y-list .ico{
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#444;
}
.raido-a11y-list .ico svg{width:20px; height:20px; display:block}
.raido-a11y-toggle{
  pointer-events:auto !important;
  width:56px !important;
  height:56px !important;
  min-width:56px;
  min-height:56px;
  border-radius:12px !important;
  border:0 !important;
  background:linear-gradient(135deg,#E8CB8E 0%,#CBA25A 55%,#B5873A 100%) !important;
  color:#1E130C !important;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(203,162,90,.45) !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  touch-action:manipulation;
  padding:0 !important;
  margin:0 !important;
  font:inherit;
  letter-spacing:0;
  text-transform:none;
}
.raido-a11y-toggle:hover{filter:brightness(1.06); transform:none}
.raido-a11y-toggle:focus-visible{
  outline:3px solid #CBA25A;
  outline-offset:3px;
}
.raido-a11y-toggle svg{width:32px; height:32px; display:block; fill:currentColor}

@media (max-width:640px){
  .raido-a11y-root{
    right:12px !important;
    bottom:12px !important;
  }
  .raido-a11y-toggle{
    width:52px !important;
    height:52px !important;
    min-width:52px;
    min-height:52px;
  }
  .raido-a11y-panel{width:min(300px, calc(100vw - 24px))}
}

/* Accessibility modes */
body.raido-a11y-grayscale{filter:grayscale(1) !important}
body.raido-a11y-negative{filter:invert(1) hue-rotate(180deg) !important}
body.raido-a11y-grayscale.raido-a11y-negative{filter:grayscale(1) invert(1) hue-rotate(180deg) !important}
html.raido-a11y-high-contrast,
html.raido-a11y-high-contrast body{background:#000 !important; color:#fff !important}
html.raido-a11y-high-contrast a{color:#ffff00 !important}
html.raido-a11y-light,
html.raido-a11y-light body{background:#fff !important; color:#111 !important}
html.raido-a11y-light a{color:#0645ad !important}
html.raido-a11y-underline a{text-decoration:underline !important; text-underline-offset:2px}
html.raido-a11y-readable,
html.raido-a11y-readable body,
html.raido-a11y-readable *:not(.raido-a11y-root):not(.raido-a11y-root *){
  font-family:Arial,Helvetica,sans-serif !important;
  letter-spacing:normal !important;
}
