:root {
  --a11y-navy: #091C29;
  --a11y-blue: #1F608B;
  --a11y-orange: #FF8C00;
  --a11y-ink: #252525;
  --a11y-paper: #FCFCF9;
  --a11y-line: #E5E7EB;
  --a11y-shadow: 0 18px 52px rgba(9, 28, 41, .22);
}

.a11y-root {
  position: relative;
  z-index: 2147483000;
  font-family: "Alan Sans", Arial, sans-serif;
}

.a11y-fab {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 2147483002;
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: var(--a11y-navy);
  color: #fff;
  box-shadow: 0 10px 28px rgba(9, 28, 41,.28);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.a11y-fab:hover {transform: translateY(-2px); box-shadow: 0 14px 34px rgba(9, 28, 41,.34); background: #091C29;}
.a11y-fab svg {width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;}
.a11y-fab__label {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--a11y-ink);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.a11y-fab:hover .a11y-fab__label,
.a11y-fab:focus-visible .a11y-fab__label {opacity: 1;}

.a11y-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(9, 28, 41,.38);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.a11y-backdrop.is-open {opacity: 1; visibility: visible;}

.a11y-panel {
  position: fixed;
  z-index: 2147483001;
  top: 0;
  right: 0;
  width: min(390px, 94vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--a11y-paper);
  color: var(--a11y-ink);
  box-shadow: var(--a11y-shadow);
  transform: translateX(104%);
  visibility: hidden;
  transition: transform .24s cubic-bezier(.22,.61,.36,1), visibility .24s ease;
}
.a11y-panel.is-open {transform: translateX(0); visibility: visible;}
.a11y-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--a11y-line);
}
.a11y-panel__brand {display: flex; align-items: center; gap: 12px;}
.a11y-panel__mark {width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--a11y-navy); color: #fff;}
.a11y-panel__mark svg {width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;}
.a11y-panel__title {margin: 0; color: var(--a11y-navy); font-size: 20px; font-weight: 700; letter-spacing: -.02em;}
.a11y-panel__subtitle {display: block; margin-top: 2px; color: #6B7280; font-size: 12px;}
.a11y-close {width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--a11y-line); border-radius: 12px; background: var(--a11y-paper); color: var(--a11y-navy); font-size: 26px; line-height: 1; cursor: pointer;}
.a11y-panel__body {padding: 18px 20px 26px; overflow-y: auto; overscroll-behavior: contain;}
.a11y-group {padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--a11y-line);}
.a11y-group:last-child {border-bottom: 0; margin-bottom: 0;}
.a11y-group__title {margin: 0 0 10px; color: #6B7280; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;}
.a11y-size-row {display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; align-items: center;}
.a11y-size-readout {height: 46px; display: grid; place-items: center; border: 1px solid var(--a11y-line); border-radius: 12px; background: #F8FAFC; color: var(--a11y-navy); font-weight: 700;}
.a11y-icon-btn {height: 46px; border: 1px solid var(--a11y-line); border-radius: 12px; background: var(--a11y-paper); color: var(--a11y-navy); font-size: 22px; font-weight: 700; cursor: pointer;}
.a11y-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 10px;}
.a11y-option {
  min-height: 78px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--a11y-line);
  border-radius: 14px;
  background: var(--a11y-paper);
  color: var(--a11y-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.a11y-option:hover {border-color: rgba(31, 96, 139,.35); transform: translateY(-1px);}
.a11y-option[aria-pressed="true"] {border-color: var(--a11y-blue); background: #F2F7FF; color: var(--a11y-navy);}
.a11y-option svg {width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;}
.a11y-option__text {font-size: 13px; font-weight: 600; line-height: 1.28;}
.a11y-wide {grid-column: 1 / -1;}
.a11y-reset {width: 100%; height: 46px; border: 1px solid rgba(9, 28, 41,.18); border-radius: 12px; background: var(--a11y-navy); color: #fff; font-weight: 700; cursor: pointer;}
.a11y-status {min-height: 18px; margin: 10px 0 0; color: #5B6470; font-size: 12px; line-height: 1.4;}
.a11y-note {margin: 12px 0 0; color: #6B7280; font-size: 11px; line-height: 1.5;}

.a11y-fab:focus-visible,
.a11y-panel button:focus-visible,
.a11y-panel a:focus-visible {
  outline: 3px solid var(--a11y-orange);
  outline-offset: 3px;
}

/* User preference modes. The accessibility UI itself remains visually stable. */
html[data-a11y-font-scale="-1"] body > :not(.a11y-root):not([vw]) {zoom: .92;}
html[data-a11y-font-scale="1"] body > :not(.a11y-root):not([vw]) {zoom: 1.10;}
html[data-a11y-font-scale="2"] body > :not(.a11y-root):not([vw]) {zoom: 1.20;}
html[data-a11y-high-contrast="true"] body > :not(.a11y-root):not([vw]) {filter: contrast(1.35);}
html[data-a11y-invert="true"] body > :not(.a11y-root):not([vw]) {filter: invert(1) hue-rotate(180deg);}
html[data-a11y-invert="true"][data-a11y-high-contrast="true"] body > :not(.a11y-root):not([vw]) {filter: invert(1) hue-rotate(180deg) contrast(1.35);}
html[data-a11y-grayscale="true"] body > :not(.a11y-root):not([vw]) {filter: grayscale(1);}
html[data-a11y-grayscale="true"][data-a11y-high-contrast="true"] body > :not(.a11y-root):not([vw]) {filter: grayscale(1) contrast(1.35);}
html[data-a11y-invert="true"][data-a11y-grayscale="true"] body > :not(.a11y-root):not([vw]) {filter: invert(1) hue-rotate(180deg) grayscale(1);}
html[data-a11y-highlight-links="true"] a:not(.a11y-fab) {text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px !important; outline: 1px dashed currentColor; outline-offset: 2px;}
html[data-a11y-readable-font="true"] body > :not(.a11y-root):not([vw]) {font-family: Arial, Helvetica, sans-serif !important;}
html[data-a11y-readable-font="true"] body > :not(.a11y-root):not([vw]) * {font-family: Arial, Helvetica, sans-serif !important;}
html[data-a11y-line-spacing="true"] :where(p,li,a,button,label,input,textarea,select,blockquote,h1,h2,h3,h4,h5,h6) {line-height: 1.65 !important; letter-spacing: .02em !important; word-spacing: .06em !important;}
html[data-a11y-pause-motion="true"] *,
html[data-a11y-pause-motion="true"] *::before,
html[data-a11y-pause-motion="true"] *::after {animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important;}

@media (max-width: 720px) {
  .a11y-fab {right: 14px; bottom: 18px; width: 50px; height: 50px;}
  .a11y-fab__label {display: none;}
  .a11y-panel {width: min(360px, 100vw);}
  .a11y-panel__header {padding: 18px 16px 14px;}
  .a11y-panel__body {padding: 16px 14px 22px;}
  .a11y-grid {grid-template-columns: 1fr;}
  .a11y-wide {grid-column: auto;}
}

@media (prefers-reduced-motion: reduce) {
  .a11y-fab,
  .a11y-panel,
  .a11y-backdrop,
  .a11y-option {transition: none !important;}
}

/* Standalone official VLibras positioning */
[vw] [vw-access-button] {z-index: 2147482998 !important;}
@media (max-width: 720px) {
  [vw] [vw-access-button] {transform: scale(.88); transform-origin: right bottom;}
}
