.pai-a11y-widget {
  --a11y-accent: #ff665c;
  --a11y-bg: #071330;
  --a11y-text: #fff1d1;
  --a11y-border: rgba(255,241,209,.35);
  position: fixed;
  z-index: 1900;
  right: 1rem;
  bottom: 1rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}
.a11y-launcher {
  min-width: 56px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem .85rem;
  color: #020a25;
  background: #fff1d1;
  border: 3px solid #020a25;
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  cursor: pointer;
  font-weight: 900;
}
.a11y-launcher:hover { background: #fff9ec; }
.a11y-launcher-icon { font-size: 1.08rem; letter-spacing: -.04em; }
.a11y-launcher-label { white-space: nowrap; }
.a11y-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .7rem);
  width: min(360px, calc(100vw - 2rem));
  max-height: min(680px, calc(100vh - 6rem));
  overflow: auto;
  padding: 1rem;
  color: var(--a11y-text);
  background: var(--a11y-bg);
  border: 1px solid var(--a11y-border);
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0,0,0,.5);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.a11y-panel-title { margin: 0; font-size: 1.15rem; font-weight: 900; }
.a11y-panel-note { margin: .25rem 0 0; color: rgba(255,241,209,.75); font-size: .83rem; }
.a11y-close {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  color: var(--a11y-text);
  background: transparent;
  border: 1px solid var(--a11y-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
}
.a11y-group { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid rgba(255,241,209,.16); }
.a11y-group-label { display: block; margin-bottom: .55rem; font-weight: 850; }
.a11y-text-controls { display: grid; grid-template-columns: 44px 1fr 44px; gap: .5rem; align-items: center; }
.a11y-text-button,
.a11y-reset {
  min-height: 44px;
  color: var(--a11y-text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--a11y-border);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 850;
}
.a11y-text-button:hover,
.a11y-reset:hover,
.a11y-close:hover { background: rgba(255,255,255,.12); }
.a11y-size-output { text-align: center; font-variant-numeric: tabular-nums; }
.a11y-options { display: grid; gap: .45rem; }
.a11y-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .75rem;
  color: var(--a11y-text);
  text-align: left;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,241,209,.2);
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
}
.a11y-toggle[aria-pressed="true"] { color: #020a25; background: var(--a11y-accent); border-color: var(--a11y-accent); }
.a11y-toggle-state { font-size: .78rem; font-weight: 900; }
.a11y-reset { width: 100%; margin-top: .9rem; padding-inline: .8rem; }
.a11y-panel :focus-visible,
.a11y-launcher:focus-visible { outline: 3px solid #00e5ff; outline-offset: 3px; }
.a11y-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
html.a11y-high-contrast .pai-a11y-widget { filter: none !important; }
html.a11y-grayscale .pai-a11y-widget { filter: grayscale(0) !important; }
@media (max-width: 620px) {
  .pai-a11y-widget { right: .65rem; bottom: .65rem; }
  .a11y-launcher-label { display: none; }
  .a11y-panel { width: min(350px, calc(100vw - 1.3rem)); }
}
@media print { .pai-a11y-widget { display: none !important; } }
.a11y-toggle > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.a11y-toggle-state { flex: 0 0 auto; }
