.skip-link, .legal-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  transform: translateY(-200%);
  padding: 12px 18px;
  background: #fff;
  color: #192c3a;
  border: 2px solid currentColor;
  border-radius: 4px;
}
.skip-link:focus, .legal-skip:focus { transform: none; }
:is(a, button, input, select, textarea, summary, [tabindex]):not(h1, h2, h3, h4, h5, h6):focus-visible {
  outline: 3px solid #245b8e;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
/* Headings receive programmatic focus after a view change, but are not controls. */
:is(h1, h2, h3, h4, h5, h6)[tabindex="-1"]:focus,
:is(h1, h2, h3, h4, h5, h6)[tabindex="-1"]:focus-visible {
  outline: none;
  box-shadow: none;
}
:is(input, select, textarea)[aria-invalid="true"] { border: 2px solid #a62721; }
.field-error-message { display: block; color: #a62721; font-size: .875rem; line-height: 1.5; margin-block: 4px 12px; }
.contact-grid > .field-error-message { grid-column: 1 / -1; }
:is(input, select, textarea, button, a, summary, [tabindex]) { scroll-margin-block: 90px; }
:is(.legal-links a, .text-button, .price-list-trigger, .password-toggle, .privacy-close) { min-height: 24px; }
.legal-links { row-gap: 12px; }
.legal-links a { display: inline-flex; align-items: center; }
:is(.service-choice, .barber-choice, .slot-grid button, .day-strip button)[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: -3px; }
#public-booking :is(.section-hint, .section-title > span, .fineprint, .barber-price small, .welcome-note, .welcome-address),
.account-booking :is(.account-step > span, .account-choice small) { color: #465c72; }
#public-booking :is(.service-choice, .barber-choice, .day-strip button, .slot-grid button) { min-height: 44px; }
.public-footer, .channel-header { flex-wrap: wrap; }
.identity-card .button { white-space: normal; max-width: 100%; height: auto; min-height: 44px; text-align: center; }
:is(.legal-document, .booking-main, .channel-card) { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  :is(button, input, select, textarea, .button) { border: 1px solid ButtonText; }
  [aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: -4px; }
  :focus-visible { outline-color: Highlight; box-shadow: none; }
}

/* Document scrolling stays vertical; nested horizontal rails keep native gestures. */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
dialog { overscroll-behavior: contain; overflow-x: hidden; }
html:has(dialog[open]) { overflow-y: hidden; }
