:root { --ux-red: #b91c1c; }
[hidden] { display: none !important; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid #c2410c; outline-offset: 4px; }
header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.form-hint { color: #4b5563; font-size: .875rem; line-height: 1.6; }
.ux-fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.ux-fieldset + .ux-fieldset { border-top: 1px solid #e5e7eb; padding-top: 1.25rem; }
.ux-fieldset legend { font-size: 1rem; font-weight: 700; color: #1f2937; margin-bottom: 1rem; }
.ux-field { margin-bottom: 1rem; }
.ux-field label { display: block; font-size: .875rem; font-weight: 600; color: #374151; margin-bottom: .4rem; }
.ux-field input, .ux-field select { min-height: 44px; font-size: 16px; }
.required-mark, .field-error { color: var(--ux-red); }
.field-error { font-size: .875rem; margin-top: .375rem; }
[aria-invalid="true"] { border-color: var(--ux-red); }
.wa-fallback { display: inline-block; color: #166534; text-decoration: underline; text-underline-offset: 3px; font-size: .875rem; }
.gallery-open { display: block; width: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.gallery-open:focus-visible { outline-offset: -4px; }
.gallery-dialog { width: min(72rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1rem; background: #111; color: white; border: none; border-radius: .75rem; }
.gallery-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.gallery-toolbar, .gallery-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.gallery-toolbar { margin-bottom: .75rem; }
.gallery-dialog button { min-width: 44px; min-height: 44px; border: 1px solid #6b7280; border-radius: .375rem; padding: .4rem .8rem; background: #262626; color: white; }
.gallery-dialog img { width: 100%; height: min(70dvh, 48rem); object-fit: contain; }
.gallery-controls { margin-top: .75rem; }
.gallery-controls p { font-size: .875rem; text-align: center; }
.profile-video { width: 100%; height: 500px; background: black; }
.video-preview { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: black; color: white; }
.video-preview img { width: 100%; height: 100%; object-fit: contain; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .75rem; padding: .85rem 1.2rem; background: rgba(0, 0, 0, .85); border: 1px solid #fff; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.profile-video video { width: 100%; height: 100%; object-fit: contain; }
:is(.animate-marquee, .animate-marquee-slow, .animate-marquee-smooth):is(:hover, :focus, .is-paused) { animation-play-state: paused; }
.marquee-region:hover > :is(.animate-marquee, .animate-marquee-slow, .animate-marquee-smooth) { animation-play-state: paused; }
:is(.animate-marquee, .animate-marquee-slow, .animate-marquee-smooth) { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  :is(.animate-marquee, .animate-marquee-slow, .animate-marquee-smooth) { display: block !important; white-space: normal !important; padding-left: .5rem !important; padding-right: .5rem !important; text-align: center; transform: none !important; }
}
