.sr-only {
  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;
}

.aethelis-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: Canvas;
  color: CanvasText;
  box-shadow: 0 0 0 3px Highlight;
}

.aethelis-skip-link:focus {
  transform: translateY(0);
}

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

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

/* Accessible skip link: hidden until keyboard focus. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 9px;
  background: #17101e;
  color: #ffffff;
  transform: translateY(-200%);
  transition: transform 120ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* Global Aethelis personal preference states */
html.aethelis-large-interface {
  font-size: 112.5%;
}

html.aethelis-large-interface
:is(button, .button, input, select, textarea) {
  min-height: 48px;
}

html.aethelis-high-contrast
:is(.panel, .account-section-tabs, .workspace-area-tabs) {
  border-color: rgba(255, 255, 255, 0.68);
}

html.aethelis-high-contrast
:where(
  a,
  button,
  input,
  select,
  textarea,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline-width: 4px;
  outline-offset: 4px;
}

html.aethelis-reduce-motion *,
html.aethelis-reduce-motion *::before,
html.aethelis-reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

body.workspace-body {
  filter:
    brightness(
      var(--aethelis-interface-brightness, 1)
    );
}

/* Aethelis light appearance preference */
html[data-aethelis-theme="light"] body.workspace-body {
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(165, 76, 255, 0.14),
      transparent 34%
    ),
    radial-gradient(
      circle at 82% 16%,
      rgba(223, 71, 206, 0.12),
      transparent 30%
    ),
    #f7f4fb;
  color: #21172b;
}

html[data-aethelis-theme="light"]
:is(
  .panel,
  .settings-choice,
  .account-section-tabs,
  .workspace-area-tabs
) {
  background-color: rgba(255, 255, 255, 0.9);
  color: #21172b;
}
