@layer components {
  .app-surface {
    border: 1px solid var(--app-border);
    border-radius: var(--radius-app-md);
    background: var(--app-surface);
    box-shadow: 0 1rem 2.5rem rgb(15 23 42 / 0.08);
  }

  .app-focus-ring:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--app-focus) 70%, transparent);
    outline-offset: 3px;
  }

  .app-safe-area {
    padding-top: var(--app-safe-top);
    padding-right: var(--app-safe-right);
    padding-bottom: var(--app-safe-bottom);
    padding-left: var(--app-safe-left);
  }

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

@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;
  }
}
