.a11y-widget-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  font-size: 26px;
  line-height: 1;
}

.a11y-widget-panel {
  position: fixed;
  left: 16px;
  bottom: 78px;
  z-index: 9999;
  width: min(320px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 14px;
  display: none;
}

.a11y-widget-panel.open {
  display: block;
}

.a11y-widget-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.a11y-widget-list {
  display: grid;
  gap: 8px;
}

.a11y-widget-action {
  width: 100%;
  text-align: right;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
}

.a11y-widget-action[aria-pressed="true"] {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e3a8a;
}

/* Actions applied globally by widget */
html.a11y-contrast {
  filter: contrast(1.25) saturate(1.05);
}

html.a11y-grayscale {
  filter: grayscale(1);
}

html.a11y-contrast.a11y-grayscale {
  filter: grayscale(1) contrast(1.25);
}

html.a11y-highlight-links a,
html.a11y-highlight-links button,
html.a11y-highlight-links [role="button"],
html.a11y-highlight-links input[type="button"],
html.a11y-highlight-links input[type="submit"] {
  outline: 3px solid #f59e0b !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3) !important;
}

@media (max-width: 640px) {
  .a11y-widget-toggle {
    left: 12px;
    bottom: 12px;
  }

  .a11y-widget-panel {
    left: 12px;
    bottom: 72px;
    width: min(320px, calc(100vw - 24px));
  }
}
