:root {
  --a11y-accent: #6647fd;
  --a11y-accent-secondary: #aa71f4;
  --a11y-accent-hover: #5638db;
  --a11y-accent-ink: #5638db;
  --a11y-accent-rgb: 102, 71, 253;
  --a11y-ink: #27272a;
  --a11y-muted: #7b7878;
  --a11y-line: #e2dfda;
  --a11y-switch-off: #dcd9d4;
  --a11y-surface: #faf9f7;
  --a11y-surface-muted: #f2f0ed;
}

#accessibilityRoot,
#accessibilityRoot * {
  box-sizing: border-box;
}

#accessibilityRoot {
  position: relative;
  z-index: 2147483000;
  color: var(--a11y-ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
}

#accessibilityRoot button,
#accessibilityRoot input {
  font: inherit;
}

.a11y-launcher {
  position: fixed;
  top: 50%;
  left: 16px;
  z-index: 2;
  display: flex;
  width: 54px;
  height: 54px;
  min-height: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--a11y-accent), var(--a11y-accent-secondary));
  box-shadow: 0 7px 18px rgba(var(--a11y-accent-rgb), .3), 0 2px 5px rgba(39, 39, 42, .12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  animation: a11y-launcher-enter .45s cubic-bezier(.2, .8, .2, 1) backwards;
}

.a11y-launcher::before {
  position: absolute;
  inset: -2px;
  border: 2px solid rgba(var(--a11y-accent-rgb), .48);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  opacity: 0;
  animation: a11y-launcher-pulse 3.2s ease-out 1.2s infinite;
}

.a11y-launcher::after {
  position: absolute;
  inset: -7px;
  border: 2px solid transparent;
  border-top-color: rgba(var(--a11y-accent-rgb), .8);
  border-right-color: rgba(var(--a11y-accent-rgb), .22);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  animation: a11y-launcher-orbit 3.4s linear infinite;
}

.a11y-launcher:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--a11y-accent-hover), #9560de);
  box-shadow: 0 9px 22px rgba(var(--a11y-accent-rgb), .34), 0 3px 7px rgba(39, 39, 42, .14);
  transform: translateY(-50%) scale(1.04);
}

.a11y-launcher:active {
  transform: translateY(-50%) scale(.97);
}

.a11y-launcher:focus-visible {
  outline: 3px solid var(--a11y-surface);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(var(--a11y-accent-rgb), .32), 0 8px 20px rgba(var(--a11y-accent-rgb), .3);
}

.a11y-launcher[aria-expanded="true"]::before {
  animation: a11y-launcher-active-pulse 1.8s ease-out infinite;
}

.a11y-launcher:hover .a11y-launcher-icon {
  animation: a11y-icon-pop .46s cubic-bezier(.2, .9, .25, 1);
}

.a11y-launcher-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.a11y-launcher-label {
  position: absolute;
  top: 50%;
  left: 66px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--a11y-surface);
  background: var(--a11y-ink);
  box-shadow: 0 5px 14px rgba(39, 39, 42, .16);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-5px, -50%);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.a11y-launcher-label::before {
  position: absolute;
  top: 50%;
  right: 100%;
  border: 5px solid transparent;
  border-right-color: var(--a11y-ink);
  content: "";
  transform: translateY(-50%);
}

.a11y-launcher:hover .a11y-launcher-label,
.a11y-launcher:focus-visible .a11y-launcher-label {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.a11y-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .3s;
}

.a11y-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.a11y-dialog {
  position: absolute;
  top: 50%;
  left: 82px;
  width: min(356px, calc(100vw - 94px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  border: 1px solid var(--a11y-line);
  border-radius: 16px;
  color: var(--a11y-ink);
  background: var(--a11y-surface);
  box-shadow: 0 16px 40px rgba(39, 39, 42, .16);
  opacity: 0;
  transform: translateY(-50%) translateX(-18px) scale(.96);
  transform-origin: left center;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}

.is-open .a11y-dialog {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
  animation: a11y-dialog-aura-in .5s cubic-bezier(.2, .8, .2, 1);
}

.a11y-dialog-header,
.a11y-text-size,
.a11y-setting-row,
.a11y-dialog-footer {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .22s ease, transform .34s cubic-bezier(.2, .8, .2, 1);
}

.is-open .a11y-dialog-header,
.is-open .a11y-text-size,
.is-open .a11y-setting-row,
.is-open .a11y-dialog-footer {
  opacity: 1;
  transform: translateX(0);
}

.is-open .a11y-dialog-header { transition-delay: .04s; }
.is-open .a11y-text-size { transition-delay: .08s; }
.is-open .a11y-setting-row:nth-child(1) { transition-delay: .11s; }
.is-open .a11y-setting-row:nth-child(2) { transition-delay: .14s; }
.is-open .a11y-setting-row:nth-child(3) { transition-delay: .17s; }
.is-open .a11y-setting-row:nth-child(4) { transition-delay: .20s; }
.is-open .a11y-dialog-footer { transition-delay: .23s; }

.a11y-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--a11y-line);
}

.a11y-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--a11y-accent-ink);
  border: 2px solid currentColor;
  border-radius: 50%;
}

.a11y-mark svg {
  width: 24px;
  height: 24px;
}

.a11y-dialog-title {
  flex: 1;
  min-width: 0;
}

.a11y-dialog-title h2 {
  margin: 0 0 2px;
  color: var(--a11y-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.a11y-dialog-title p {
  margin: 0;
  color: var(--a11y-muted);
  font-size: 13px;
}

.a11y-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d5d1cb;
  border-radius: 50%;
  color: #575254;
  background: var(--a11y-surface);
  cursor: pointer;
}

.a11y-icon-button:hover {
  color: #575254;
  background: var(--a11y-surface-muted);
}

.a11y-icon-button:focus-visible,
.a11y-size-control button:focus-visible,
.a11y-shortcuts-button:focus-visible,
.a11y-reset-button:focus-visible {
  outline: 3px solid rgba(var(--a11y-accent-rgb), .24);
  outline-offset: 2px;
}

.a11y-text-size {
  padding: 13px 14px 14px;
}

.a11y-text-size h3 {
  margin: 0 0 9px;
  color: var(--a11y-ink);
  font-size: 13px;
  font-weight: 600;
}

.a11y-size-control {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 40px;
  overflow: hidden;
  border: 1px solid #d5d1cb;
  border-radius: 10px;
}

.a11y-size-control button,
.a11y-size-control output {
  display: grid;
  min-width: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--a11y-ink);
  background: var(--a11y-surface);
  font-size: 14px;
  font-weight: 500;
}

.a11y-size-control button {
  cursor: pointer;
}

.a11y-size-control button:hover {
  color: var(--a11y-ink);
  background: var(--a11y-surface-muted);
}

.a11y-size-control > * + * {
  border-left: 1px solid #d5d1cb;
}

.a11y-setting-row {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid var(--a11y-line);
}

.a11y-setting-icon {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: #393537;
}

.a11y-setting-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.a11y-setting-label {
  flex: 1;
  margin: 0;
  color: var(--a11y-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
}

.a11y-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  margin: 0;
}

.a11y-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.a11y-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--a11y-switch-off);
  cursor: pointer;
  transition: background .18s ease;
}

.a11y-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  content: "";
  transition: transform .18s ease;
}

.a11y-switch input:checked + .a11y-switch-track {
  background: var(--a11y-accent);
}

.a11y-switch input:checked + .a11y-switch-track::after {
  transform: translateX(20px);
}

.a11y-switch input:focus-visible + .a11y-switch-track {
  outline: 3px solid rgba(var(--a11y-accent-rgb), .22);
  outline-offset: 2px;
}

.a11y-dialog-footer {
  padding: 11px 14px 10px;
  border-top: 1px solid var(--a11y-line);
  text-align: center;
}

.a11y-shortcuts-button {
  display: flex;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #c7c2bb;
  border-radius: 9px;
  color: var(--a11y-ink);
  background: var(--a11y-surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.a11y-shortcuts-button:hover {
  color: var(--a11y-ink);
  background: var(--a11y-surface-muted);
}

.a11y-shortcuts-button svg {
  width: 24px;
  height: 18px;
}

.a11y-reset-button {
  margin: 9px 0 0;
  padding: 2px 6px;
  border: 0;
  color: var(--a11y-accent-ink);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.a11y-reset-button:hover {
  color: #4325bd;
}

.a11y-shortcuts-note {
  margin: 9px 0 0;
  color: var(--a11y-muted);
  font-size: 11px;
}

/* Accessibility effects are scoped away from the widget itself. */
body.a11y-high-contrast > :not(#accessibilityRoot):not(script):not(style) {
  filter: contrast(1.38) saturate(1.12);
}

body.a11y-underline-links a:not(.a11y-launcher) {
  text-decoration: underline 2px !important;
  text-underline-offset: 3px !important;
}

body.a11y-grayscale > :not(#accessibilityRoot):not(script):not(style) {
  filter: grayscale(1);
}

body.a11y-high-contrast.a11y-grayscale > :not(#accessibilityRoot):not(script):not(style) {
  filter: grayscale(1) contrast(1.38);
}

body.a11y-reduced-motion *,
body.a11y-reduced-motion *::before,
body.a11y-reduced-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}

@keyframes a11y-launcher-enter {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-18px) scale(.86);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes a11y-launcher-pulse {
  0%, 72% {
    opacity: 0;
    transform: scale(1);
  }
  82% {
    opacity: .55;
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@keyframes a11y-launcher-active-pulse {
  from {
    opacity: .48;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.24);
  }
}

@keyframes a11y-launcher-orbit {
  to { transform: rotate(360deg); }
}

@keyframes a11y-icon-pop {
  0%, 100% { transform: scale(1) rotate(0); }
  45% { transform: scale(1.14) rotate(-7deg); }
  72% { transform: scale(.98) rotate(3deg); }
}

@keyframes a11y-dialog-aura-in {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--a11y-accent-rgb), .22), 0 8px 20px rgba(39, 39, 42, .08);
  }
  58% {
    box-shadow: 0 0 0 7px rgba(var(--a11y-accent-rgb), .09), 0 22px 52px rgba(39, 39, 42, .2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--a11y-accent-rgb), 0), 0 16px 40px rgba(39, 39, 42, .16);
  }
}

@media (prefers-reduced-motion: reduce) {
  #accessibilityRoot *,
  #accessibilityRoot *::before,
  #accessibilityRoot *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 520px) {
  .a11y-launcher {
    left: 10px;
  }

  .a11y-launcher-label {
    display: none;
  }

  .a11y-dialog {
    left: 72px;
    width: calc(100vw - 82px);
    max-height: calc(100vh - 24px);
  }
}
