.omt-a11y-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1060;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #0062cc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
  cursor: pointer;
}

.omt-a11y-float:hover {
  background: #004a99;
}

.omt-a11y-float:focus-visible,
.omt-a11y-panel :focus-visible {
  outline: 3px solid #0062cc;
  outline-offset: 2px;
}

.omt-a11y-float:focus-visible {
  outline-color: #1a1a1a;
}

.omt-a11y-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1070;
  width: 560px;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1a1a1a;
  border-left: 1px solid #d0d4d9;
  box-shadow: -6px 0 24px rgba(0, 0, 0, .18);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  letter-spacing: normal;
  word-spacing: normal;
}

.omt-a11y-panel[hidden] {
  display: none;
}

.omt-a11y-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e3e6ea;
}

.omt-a11y-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.omt-a11y-head h2:focus {
  outline: none;
}

.omt-a11y-close {
  border: 0;
  background: transparent;
  color: #1a1a1a;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.omt-a11y-close:hover {
  background: #eef1f4;
}

.omt-a11y-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.omt-a11y-foot {
  border-top: 1px solid #e3e6ea;
  padding: 12px 16px;
}

.omt-a11y-away,
.omt-a11y-check[hidden],
.omt-a11y-foot-part[hidden],
.omt-a11y-pane[hidden],
.omt-a11y-adjusted[hidden] {
  display: none;
}

/* tabs */
.omt-a11y-tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid #e3e6ea;
}

.omt-a11y-tab {
  flex: 1;
  margin-bottom: -1px;
  padding: 11px 10px 9px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #4a5158;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.omt-a11y-tab:hover {
  color: #1a1a1a;
  background: #f4f6f8;
}

.omt-a11y-tab[aria-selected="true"] {
  color: #0062cc;
  border-bottom-color: #0062cc;
}

.omt-a11y-adjusted {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff6d5;
  color: #1a1a1a;
  font-size: 14px;
}

/* adjust the page */
.omt-a11y-tool-group {
  margin-bottom: 16px;
}

.omt-a11y-tool-group h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.omt-a11y-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.omt-a11y-chip {
  padding: 6px 14px;
  border: 1px solid #5c636a;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.omt-a11y-chip:hover {
  background: #f4f6f8;
}

.omt-a11y-chip[aria-pressed="true"] {
  border-color: #0062cc;
  background: #0062cc;
  color: #fff;
}

.omt-a11y-chip[aria-pressed="true"]::before {
  content: "\2713  ";
}

.omt-a11y-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.omt-a11y-tile {
  width: 100%;
  height: 100%;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px 8px;
  border: 2px solid #e3e6ea;
  border-radius: 10px;
  background: #f7f8fa;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.omt-a11y-tile:hover {
  border-color: #8a9199;
  background: #fff;
}

.omt-a11y-tile.is-on {
  border-color: #0062cc;
  background: #eef4fc;
}

.omt-a11y-tile-icon {
  flex: 0 0 auto;
  color: #1a1a1a;
}

.omt-a11y-tile.is-on .omt-a11y-tile-icon {
  color: #0062cc;
}

.omt-a11y-tile-label {
  font-weight: 700;
}

.omt-a11y-tile-value {
  font-size: 13px;
  color: #4a5158;
}

.omt-a11y-tile.is-on .omt-a11y-tile-value {
  color: #00489a;
  font-weight: 600;
}

.omt-a11y-dots {
  display: flex;
  gap: 4px;
  min-height: 6px;
}

.omt-a11y-dots i {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: #c5cad0;
}

.omt-a11y-dots i.is-on {
  background: #0062cc;
}

.omt-a11y-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* hero: ring + headline */
.omt-a11y-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2px 0 16px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f7fd 0%, #eef6f1 100%);
}

.omt-a11y-hero.is-mixed {
  background: linear-gradient(135deg, #f3f7fd 0%, #fdf6ea 100%);
}

.omt-a11y-dial {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
}

.omt-a11y-ring {
  width: 112px;
  height: 112px;
  display: block;
}

.omt-a11y-ring-track {
  fill: none;
  stroke: #dde3ea;
  stroke-width: 9;
}

.omt-a11y-ring-fill {
  fill: none;
  stroke: #0062cc;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1), stroke .4s;
}

.is-clean .omt-a11y-ring-fill {
  stroke: #1e7d45;
}

.is-mixed .omt-a11y-ring-fill {
  stroke: #b35c00;
}

.is-scanning .omt-a11y-ring {
  animation: omt-a11y-breathe 1.6s ease-in-out infinite;
}

.omt-a11y-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}

.omt-a11y-big {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
}

.omt-a11y-small {
  font-size: 11px;
  color: #4a5158;
  margin-top: 2px;
}

.omt-a11y-hero-text p {
  margin: 0;
}

.omt-a11y-hero-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.omt-a11y-hero-sub {
  margin-top: 4px !important;
  font-size: 14px;
  color: #4a5158;
}

.omt-a11y-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.omt-a11y-burst i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: #1e7d45;
  opacity: 0;
  transform: rotate(var(--a)) translateY(0);
}

.omt-a11y-burst i:nth-child(3n+2) {
  background: #0062cc;
}

.omt-a11y-burst i:nth-child(3n) {
  background: #e0a100;
}

.is-celebrating .omt-a11y-burst i {
  animation: omt-a11y-burst 1.1s cubic-bezier(.15, .7, .3, 1) forwards;
}

.is-celebrating .omt-a11y-dial {
  animation: omt-a11y-pop .6s ease-out;
}

/* live category checklist */
.omt-a11y-steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.omt-a11y-steps[hidden] {
  display: none;
}

.omt-a11y-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  animation: omt-a11y-slide .3s ease-out both;
}

.omt-a11y-step.is-active {
  background: #eef4fc;
}

.omt-a11y-step-label {
  flex: 1;
  font-weight: 600;
}

.omt-a11y-step-result {
  font-size: 13px;
  color: #4a5158;
  font-variant-numeric: tabular-nums;
}

.omt-a11y-step-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #8a9199;
  display: inline-flex;
}

.omt-a11y-step-icon svg {
  width: 22px;
  height: 22px;
}

.omt-a11y-step-icon.is-spin {
  color: #0062cc;
}

.omt-a11y-step-icon.is-ok {
  color: #1e7d45;
}

.omt-a11y-step-icon.is-bad {
  color: #b42318;
}

.omt-a11y-spin {
  animation: omt-a11y-rotate .8s linear infinite;
}

.omt-a11y-tick {
  animation: omt-a11y-pop .35s ease-out;
}

/* what's working */
.omt-a11y-good summary {
  gap: 8px;
}

.omt-a11y-good summary::before {
  display: none;
}

.omt-a11y-good-count {
  font-size: 13px;
  color: #4a5158;
  white-space: nowrap;
}

.omt-a11y-good-list {
  margin: 0;
  padding-left: 18px;
}

.omt-a11y-good-list li {
  margin-bottom: 4px;
}

.omt-a11y-good-list li::marker {
  content: "\2713  ";
  color: #1e7d45;
  font-weight: 700;
}

.omt-a11y-muted {
  color: #4a5158;
}

.omt-a11y-good .omt-a11y-rule-body {
  padding-left: 42px;
}

.omt-a11y-enter {
  animation: omt-a11y-slide .45s ease-out both;
}

/* page effects */
.omt-a11y-beam {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 90px;
  z-index: 1064;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 98, 204, 0) 0%, rgba(0, 98, 204, .10) 70%, rgba(0, 98, 204, .55) 98%, rgba(0, 98, 204, 0) 100%);
  animation: omt-a11y-sweep 1.8s cubic-bezier(.45, 0, .55, 1) infinite;
  transition: opacity .35s;
}

.omt-a11y-beam[hidden] {
  display: none;
}

.omt-a11y-beam-out {
  opacity: 0;
}

.omt-a11y-pulse {
  outline: 2px solid rgba(0, 98, 204, .85) !important;
  outline-offset: 2px !important;
  animation: omt-a11y-outline .7s ease-out;
}

@keyframes omt-a11y-sweep {
  from { transform: translateY(-90px); }
  to { transform: translateY(100vh); }
}

@keyframes omt-a11y-outline {
  from { outline-color: rgba(0, 98, 204, .9); outline-offset: 6px; }
  to { outline-color: rgba(0, 98, 204, 0); outline-offset: 1px; }
}

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

@keyframes omt-a11y-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes omt-a11y-pop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes omt-a11y-slide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes omt-a11y-burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-78px) scale(.4); }
}

@media (prefers-reduced-motion: reduce) {
  .omt-a11y-panel *,
  .omt-a11y-pulse,
  .omt-a11y-beam {
    animation: none !important;
    transition: none !important;
  }
}

.omt-a11y-group {
  margin-bottom: 18px;
}

.omt-a11y-group h3,
.omt-a11y-report h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.omt-a11y-group-note {
  margin: 0 0 8px;
  color: #4a5158;
  font-size: 14px;
}

.omt-a11y-rule {
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
}

.omt-a11y-rule summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.omt-a11y-rule summary::-webkit-details-marker {
  display: none;
}

.omt-a11y-rule summary::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #4a5158;
  border-bottom: 2px solid #4a5158;
  transform: rotate(-45deg);
  transition: transform .15s;
}

.omt-a11y-rule[open] summary::before {
  transform: rotate(45deg);
}

.omt-a11y-rule-title {
  flex: 1;
  font-weight: 600;
}

.omt-a11y-count {
  flex: 0 0 auto;
  min-width: 26px;
  padding: 1px 8px;
  border-radius: 12px;
  background: #eef1f4;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.omt-a11y-group-settings .omt-a11y-count {
  background: #fff1d6;
}

.omt-a11y-group-content .omt-a11y-count {
  background: #e6f0ff;
}

.omt-a11y-rule-body {
  padding: 0 12px 10px 30px;
}

.omt-a11y-rule-body p {
  margin: 0 0 8px;
}

.omt-a11y-source {
  font-weight: 600;
}

.omt-a11y-tech {
  font-size: 13px;
}

.omt-a11y-target {
  display: block;
  margin: 2px 0 0;
  font-size: 12px;
  color: #4a5158;
  word-break: break-all;
}

.omt-a11y-group-shared .omt-a11y-count {
  background: #e9e3ff;
}

.omt-a11y-items {
  margin: 0;
  padding-left: 18px;
}

.omt-a11y-items li {
  margin-bottom: 6px;
  word-break: break-word;
}

.omt-a11y-show {
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid #0062cc;
  border-radius: 5px;
  background: #fff;
  color: #0062cc;
  font-size: 13px;
  cursor: pointer;
}

.omt-a11y-show:disabled {
  border-color: #c5cad0;
  color: #4a5158;
  cursor: default;
}

.omt-a11y-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.omt-a11y-actions[hidden] {
  display: none;
}

.omt-a11y-btn {
  padding: 7px 14px;
  border: 1px solid #5c636a;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.omt-a11y-btn-primary {
  border-color: #0062cc;
  background: #0062cc;
  color: #fff;
}

.omt-a11y-btn:disabled {
  opacity: .7;
  cursor: default;
}

.omt-a11y-note {
  margin: 0;
  color: #4a5158;
  font-size: 13px;
}

.omt-a11y-panel a,
.omt-a11y-panel a:hover,
.omt-a11y-panel a:visited {
  color: #0062cc !important;
  opacity: 1 !important;
}

.omt-a11y-report fieldset {
  border: 0;
  margin: 8px 0 12px;
  padding: 0;
}

.omt-a11y-report legend {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  float: none;
  width: auto;
}

.omt-a11y-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.omt-a11y-check input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.omt-a11y-label {
  display: block;
  margin: 10px 0 4px;
  font-weight: 600;
}

.omt-a11y-report textarea,
.omt-a11y-report input[type=text] {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid #8a9199;
  border-radius: 6px;
  font: inherit;
  color: #1a1a1a;
  background: #fff;
}

.omt-a11y-turnstile {
  margin: 12px 0 4px;
  min-height: 65px;
}

.omt-a11y-msg {
  min-height: 1em;
  margin: 8px 0;
  color: #a3132f;
  font-weight: 600;
}

.omt-a11y-done {
  font-weight: 600;
}

.omt-a11y-done:focus {
  outline: none;
}

.omt-a11y-mark {
  position: absolute;
  z-index: 1065;
  pointer-events: none;
  border: 3px solid #d63384;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(214, 51, 132, .25);
}

@media (max-width: 575.98px) {
  .omt-a11y-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .omt-a11y-panel {
    top: auto;
    width: 100vw;
    height: 75vh;
    border-left: 0;
    border-top: 1px solid #d0d4d9;
    border-radius: 12px 12px 0 0;
  }

  .omt-a11y-float {
    right: 12px;
    bottom: 12px;
  }
}

@media print {
  .omt-a11y-float,
  .omt-a11y-panel,
  .omt-a11y-mark {
    display: none !important;
  }
}
