accessibility-plugin-react 2.6.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -24,7 +24,7 @@ function styleInject(css, { insertAt } = {}) {
24
24
  }
25
25
 
26
26
  // src/styles/tailwind.css
27
- styleInject('.arap-root {\n --arap-surface: #fff;\n --arap-text: #111827;\n --arap-muted: #475569;\n --arap-border: #cbd5e1;\n --arap-divider: #e2e8f0;\n --arap-accent: #1d4ed8;\n --arap-accent-hover: #1e40af;\n --arap-selected: #eff6ff;\n --arap-control: #f8fafc;\n color-scheme: light;\n font: 15px/1.5 system-ui, sans-serif;\n color: var(--arap-text);\n text-align: left;\n letter-spacing: normal;\n}\n.arap-root *,\n.arap-root *::before,\n.arap-root *::after {\n box-sizing: border-box;\n}\n.arap-root button {\n font: inherit;\n cursor: pointer;\n color: inherit;\n text-transform: none;\n letter-spacing: normal;\n transition: background-color 0.15s, border-color 0.15s;\n}\n.arap-root button:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n.arap-root button:focus-visible,\n.arap-panel:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 3px;\n}\n.arap-root .arap-btn {\n position: fixed;\n z-index: 2147483001;\n bottom: max(16px, env(safe-area-inset-bottom));\n right: max(16px, env(safe-area-inset-right));\n width: 56px;\n height: 56px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--arap-surface);\n border-radius: 50%;\n background: var(--arap-accent);\n color: #fff;\n box-shadow: 0 4px 12px #0f172a26, 0 10px 24px #0f172a14;\n}\n.arap-root .arap-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-root .arap-btn[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-position=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-panel {\n position: fixed;\n z-index: 2147483000;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n right: max(16px, env(safe-area-inset-right));\n width: min(400px, calc(100vw - 32px));\n max-height: calc(100vh - 120px);\n max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 20px;\n border: 1px solid var(--arap-divider);\n border-radius: 16px;\n background: var(--arap-surface);\n box-shadow: 0 8px 16px #0f172a0d, 0 20px 48px #0f172a1a;\n}\n.arap-root .arap-panel[hidden] {\n display: none !important;\n}\n.arap-root .arap-panel[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-panel[data-position=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-heading {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 18px;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-heading-copy {\n min-width: 0;\n}\n.arap-heading h2 {\n margin: 0;\n font: 700 22px/1.3 system-ui, sans-serif;\n letter-spacing: -0.025em;\n color: var(--arap-text);\n overflow-wrap: anywhere;\n}\n.arap-description {\n margin: 6px 0 0;\n color: var(--arap-muted);\n font: 14px/1.5 system-ui, sans-serif;\n overflow-wrap: anywhere;\n}\n.arap-heading button {\n flex: none;\n width: 44px;\n height: 44px;\n margin-top: -6px;\n border: 1px solid transparent;\n border-radius: 8px;\n background: transparent;\n color: var(--arap-muted);\n font-size: 28px;\n line-height: 1;\n}\n.arap-heading button:hover {\n background: var(--arap-control);\n border-color: var(--arap-border);\n}\n.arap-feature {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px 12px;\n padding: 18px 0;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-feature:last-child {\n border: 0;\n padding-bottom: 0;\n}\n.arap-label {\n display: flex;\n align-items: center;\n gap: 10px;\n font-weight: 500;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.arap-icon {\n flex: none;\n width: 22px;\n height: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.arap-controls {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--arap-border);\n border-radius: 9px;\n overflow: hidden;\n background: var(--arap-control);\n}\n.arap-root .arap-btn-sm {\n flex: none;\n width: 44px;\n height: 44px;\n border: 0;\n border-radius: 0;\n background: transparent;\n font-size: 22px;\n}\n.arap-root .arap-btn-sm:hover:not(:disabled) {\n background: var(--arap-selected);\n color: var(--arap-accent);\n}\n.arap-root .arap-controls button:focus-visible {\n outline-offset: -4px;\n}\n.arap-value {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 56px;\n padding: 0 6px;\n text-align: center;\n font-weight: 600;\n border-inline: 1px solid var(--arap-divider);\n background: var(--arap-surface);\n}\n.arap-segmented {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.arap-root .arap-segment {\n flex: 1 1 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-muted);\n overflow-wrap: anywhere;\n}\n.arap-root .arap-segment:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-root .arap-segment-active {\n background: var(--arap-accent);\n color: #fff;\n border-color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-segment-active:hover {\n background: var(--arap-accent-hover);\n color: #fff;\n}\n.arap-check {\n flex: none;\n font-size: 15px;\n line-height: 1;\n}\n.arap-root .arap-toggle {\n position: relative;\n width: 56px;\n height: 44px;\n padding: 0;\n border: 0;\n border-radius: 10px;\n background: transparent;\n}\n.arap-toggle::before {\n content: "";\n position: absolute;\n inset: 6px 0;\n border: 2px solid #64748b;\n border-radius: 20px;\n background: #e2e8f0;\n}\n.arap-toggle-knob {\n position: absolute;\n top: 10px;\n left: 4px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #475569;\n pointer-events: none;\n transition: transform 0.15s;\n}\n.arap-toggle-active::before {\n background: var(--arap-accent);\n border-color: var(--arap-accent);\n}\n.arap-toggle-active .arap-toggle-knob {\n transform: translateX(24px);\n background: #fff;\n}\n.arap-toggle-active .arap-toggle-knob::after {\n content: "\\2713";\n display: block;\n color: var(--arap-accent);\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n}\n.arap-root .arap-toggle:hover::before {\n border-color: var(--arap-accent);\n}\n.arap-feature-reset {\n display: block;\n}\n.arap-root .arap-reset-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n min-height: 48px;\n padding: 10px;\n border: 1px solid var(--arap-border);\n border-radius: 10px;\n background: var(--arap-control);\n color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-reset-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n@media (max-width: 380px) {\n .arap-root .arap-panel {\n padding: 16px;\n }\n .arap-heading h2 {\n font-size: 20px;\n }\n .arap-feature-stepper {\n grid-template-columns: minmax(0, 1fr);\n }\n .arap-controls {\n width: 100%;\n }\n .arap-value {\n flex: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-root *,\n .arap-root *::before,\n .arap-root *::after {\n transition: none !important;\n animation: none !important;\n }\n}\n@media (forced-colors: active) {\n .arap-root {\n --arap-surface: Canvas;\n --arap-text: CanvasText;\n --arap-muted: CanvasText;\n --arap-border: ButtonText;\n --arap-divider: ButtonText;\n --arap-accent: Highlight;\n --arap-control: Canvas;\n --arap-selected: Canvas;\n }\n .arap-root button[aria-pressed=true] {\n outline: 2px solid Highlight;\n outline-offset: -4px;\n }\n .arap-root .arap-segment-active {\n color: HighlightText;\n background: Highlight;\n }\n .arap-toggle::before {\n border-color: ButtonText;\n background: Canvas;\n }\n .arap-toggle-knob {\n background: ButtonText;\n }\n .arap-toggle-active .arap-toggle-knob {\n background: Highlight;\n }\n .arap-toggle-active .arap-toggle-knob::after {\n color: HighlightText;\n }\n}\n.arap-root .arap-panel {\n display: flex;\n flex-direction: column;\n overflow: visible;\n}\n.arap-heading {\n flex: none;\n}\n.arap-tools {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 0 3px;\n margin: 0 -3px;\n}\n.arap-tools:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: -3px;\n}\n.arap-quick-actions {\n position: relative;\n flex: none;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-top: 14px;\n margin-top: 8px;\n border-top: 1px solid var(--arap-divider);\n}\n.arap-actions {\n flex: 1;\n min-width: 0;\n}\n.arap-actions:empty {\n display: none;\n}\n.arap-actions .arap-feature-reset {\n padding: 0;\n margin: 0;\n border: 0;\n}\n.arap-root .arap-position-button,\n.arap-root .arap-position-default,\n.arap-root .arap-position-arrows button {\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-accent);\n}\n.arap-root .arap-position-button:hover,\n.arap-root .arap-position-default:hover,\n.arap-root .arap-position-arrows button:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-position-popover {\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 8px);\n left: 0;\n width: 100%;\n max-height: calc(100dvh - 160px);\n overflow: auto;\n padding: 14px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n box-shadow: 0 8px 24px #0f172a26;\n}\n.arap-position-popover[hidden] {\n display: none !important;\n}\n.arap-position-label {\n display: block;\n margin-bottom: 6px;\n font-weight: 600;\n}\n.arap-position-popover select {\n width: 100%;\n min-height: 44px;\n padding: 8px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n font: inherit;\n color: var(--arap-text);\n background: var(--arap-surface);\n}\n.arap-position-popover select:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-position-arrows {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 10px;\n}\n.arap-position-default {\n width: 100%;\n margin-top: 8px;\n}\n.arap-root .arap-btn[data-draggable=true] {\n touch-action: none;\n user-select: none;\n cursor: grab;\n}\n.arap-root .arap-btn[data-dragging=true] {\n cursor: grabbing;\n}\n.arap-root .arap-btn[data-corner$=left],\n.arap-root .arap-panel[data-corner$=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-corner$=right],\n.arap-root .arap-panel[data-corner$=right] {\n left: auto;\n right: max(16px, env(safe-area-inset-right));\n}\n.arap-root .arap-btn[data-corner^=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-btn[data-corner^=bottom] {\n top: auto;\n bottom: max(16px, env(safe-area-inset-bottom));\n}\n.arap-root .arap-panel[data-corner^=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-root .arap-panel[data-corner^=bottom] {\n top: auto;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n}\n.arap-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.arap-root .arap-skip-actions {\n position: absolute;\n top: 12px;\n left: 20px;\n width: 44px;\n height: 44px;\n clip-path: inset(50%);\n overflow: hidden;\n pointer-events: none;\n}\n.arap-root .arap-skip-actions:focus-visible {\n right: 20px;\n width: auto;\n height: auto;\n min-height: 44px;\n clip-path: none;\n pointer-events: auto;\n z-index: 2;\n padding: 8px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-accent);\n}\n@media (max-height: 480px) {\n .arap-root .arap-panel {\n top: max(16px, env(safe-area-inset-top)) !important;\n bottom: max(16px, env(safe-area-inset-bottom)) !important;\n max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;\n padding: 8px;\n }\n .arap-heading {\n padding-bottom: 8px;\n }\n .arap-heading h2 {\n font-size: 18px;\n }\n .arap-heading button {\n margin-top: 0;\n }\n .arap-description {\n display: none;\n }\n .arap-quick-actions {\n padding-top: 8px;\n margin-top: 0;\n }\n .arap-root .arap-reset-btn {\n min-height: 44px;\n }\n .arap-root .arap-btn[data-open=true] {\n visibility: hidden;\n }\n .arap-position-popover {\n max-height: calc(100dvh - 96px);\n }\n}\n.arap-statement {\n flex: none;\n padding-top: 10px;\n text-align: center;\n}\n.arap-statement-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 44px;\n padding: 6px 12px;\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 4px;\n font-size: 14px;\n font-weight: 500;\n border-radius: 8px;\n}\n.arap-statement-link:hover {\n color: var(--arap-accent-hover);\n background: var(--arap-selected);\n}\n.arap-statement-link:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-credits {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 2px;\n padding-top: 8px;\n color: var(--arap-muted);\n text-align: center;\n font-size: 11px;\n line-height: 1.4;\n}\n.arap-credits a {\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n.arap-credits a:hover {\n color: var(--arap-accent-hover);\n}\n.arap-credits a:focus-visible {\n outline: 2px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-root .arap-btn[data-large-controls=true] {\n width: 64px;\n height: 64px;\n min-width: 48px;\n min-height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] {\n width: min(440px, calc(100vw - 32px));\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-heading button {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 32px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-btn-sm {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 24px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-value {\n min-width: 64px;\n font-size: 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-segment {\n min-width: 48px;\n min-height: 48px;\n padding: 10px 14px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle {\n width: 64px;\n height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle::before {\n inset: 8px 0;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-knob {\n top: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-active .arap-toggle-knob {\n transform: translateX(28px);\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-reset-btn {\n min-height: 52px;\n font-size: 16px;\n padding: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-button,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-default,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-arrows button {\n min-width: 48px;\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-popover select {\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-statement-link {\n min-height: 48px;\n font-size: 15px;\n padding: 10px 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-skip-actions {\n min-width: 48px;\n min-height: 48px;\n}\n.arap-feature-card {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n}\n.arap-card-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-card-title {\n font-weight: 600;\n font-size: 15px;\n color: var(--arap-text);\n}\n.arap-card-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-status-badge {\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n border-radius: 9999px;\n font-size: 11px;\n font-weight: 600;\n background: var(--arap-control);\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-card-alert {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n padding: 10px 12px;\n border-radius: 8px;\n font-size: 13px;\n line-height: 1.4;\n}\n.arap-alert-icon {\n flex: none;\n font-size: 16px;\n line-height: 1;\n}\n.arap-card-error {\n background: #fef2f2;\n border: 1px solid #fecaca;\n color: #991b1b;\n}\n.arap-card-unavailable {\n background: #f8fafc;\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n}\n.arap-card-permission {\n background: #fffbeb;\n border: 1px solid #fde68a;\n color: #92400e;\n}\n.arap-permission-content {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-permission-btn {\n align-self: flex-start;\n padding: 4px 10px;\n border: 1px solid #d97706;\n border-radius: 6px;\n background: #f59e0b;\n color: #fff;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n.arap-permission-btn:hover {\n background: #d97706;\n}\n.arap-card-content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.arap-choice-group {\n display: flex;\n flex-direction: column;\n gap: 6px;\n width: 100%;\n}\n.arap-choice-group-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-choice-badge {\n font-size: 11px;\n padding: 1px 5px;\n border-radius: 4px;\n background: var(--arap-divider);\n color: var(--arap-muted);\n}\n.arap-segment-active .arap-choice-badge {\n background: rgba(255, 255, 255, 0.25);\n color: #fff;\n}\n.arap-stepper-control-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n}\n.arap-slider-container {\n display: flex;\n align-items: center;\n padding: 4px 0;\n}\n.arap-slider {\n width: 100%;\n accent-color: var(--arap-accent);\n cursor: pointer;\n}\n.arap-search-count {\n padding: 6px 0;\n font-size: 12px;\n font-weight: 500;\n color: var(--arap-muted);\n}\n.arap-empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 24px 16px;\n gap: 8px;\n}\n.arap-empty-icon {\n font-size: 32px;\n}\n.arap-empty-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-empty-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n}\n.arap-empty-btn,\n.arap-retry-btn {\n margin-top: 6px;\n padding: 8px 16px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n font-weight: 500;\n font-size: 13px;\n color: var(--arap-text);\n cursor: pointer;\n}\n.arap-empty-btn:hover,\n.arap-retry-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n color: var(--arap-accent);\n}\n.arap-profile-card {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n transition: border-color 0.15s, box-shadow 0.15s;\n}\n.arap-profile-card-active {\n border-color: var(--arap-accent);\n background: var(--arap-selected);\n box-shadow: 0 0 0 1px var(--arap-accent);\n}\n.arap-profile-header {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.arap-profile-title-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-profile-title {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-profile-active-badge {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-accent);\n background: #dbeafe;\n padding: 2px 8px;\n border-radius: 9999px;\n}\n.arap-profile-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-profile-affected {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-profile-affected-label {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-profile-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n.arap-profile-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--arap-control);\n border: 1px solid var(--arap-divider);\n font-size: 12px;\n color: var(--arap-text);\n}\n.arap-profile-actions {\n display: flex;\n gap: 8px;\n margin-top: 4px;\n}\n.arap-profile-apply-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-accent);\n color: #fff;\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-apply-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-profile-revert-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-muted);\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-revert-btn:hover {\n background: var(--arap-control);\n color: var(--arap-text);\n border-color: var(--arap-text);\n}\n.arap-notice {\n grid-column: 1 / -1;\n margin-top: 6px;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 12px;\n line-height: 1.45;\n background: #fefce8;\n border: 1px solid #fef08a;\n color: #854d0e;\n}\n.arap-notice-warning {\n background: #fffbeb;\n border-color: #fde68a;\n color: #92400e;\n}\n');
27
+ styleInject('.arap-root {\n --arap-surface: #fff;\n --arap-text: #111827;\n --arap-muted: #475569;\n --arap-border: #cbd5e1;\n --arap-divider: #e2e8f0;\n --arap-accent: #1d4ed8;\n --arap-accent-hover: #1e40af;\n --arap-selected: #eff6ff;\n --arap-control: #f8fafc;\n color-scheme: light;\n font: 15px/1.5 system-ui, sans-serif;\n color: var(--arap-text);\n text-align: left;\n letter-spacing: normal;\n}\n.arap-root *,\n.arap-root *::before,\n.arap-root *::after {\n box-sizing: border-box;\n}\n.arap-root button {\n font: inherit;\n cursor: pointer;\n color: inherit;\n text-transform: none;\n letter-spacing: normal;\n transition: background-color 0.15s, border-color 0.15s;\n}\n.arap-root button:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n}\n.arap-root button:focus-visible,\n.arap-panel:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 3px;\n}\n.arap-root .arap-btn {\n position: fixed;\n z-index: 2147483001;\n bottom: max(16px, env(safe-area-inset-bottom));\n right: max(16px, env(safe-area-inset-right));\n width: 56px;\n height: 56px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px solid var(--arap-surface);\n border-radius: 50%;\n background: var(--arap-accent);\n color: #fff;\n box-shadow: 0 4px 12px #0f172a26, 0 10px 24px #0f172a14;\n}\n.arap-root .arap-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-root .arap-btn[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-position=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-panel {\n position: fixed;\n z-index: 2147483000;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n right: max(16px, env(safe-area-inset-right));\n width: min(400px, calc(100vw - 32px));\n max-height: calc(100vh - 120px);\n max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 20px;\n border: 1px solid var(--arap-divider);\n border-radius: 16px;\n background: var(--arap-surface);\n box-shadow: 0 8px 16px #0f172a0d, 0 20px 48px #0f172a1a;\n}\n.arap-root .arap-panel[hidden] {\n display: none !important;\n}\n.arap-root .arap-panel[data-position=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-panel[data-position=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-heading {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: 8px;\n padding-bottom: 18px;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-heading-copy {\n min-width: 0;\n}\n.arap-heading h2 {\n margin: 0;\n font: 700 22px/1.3 system-ui, sans-serif;\n letter-spacing: -0.025em;\n color: var(--arap-text);\n overflow-wrap: anywhere;\n}\n.arap-description {\n margin: 6px 0 0;\n color: var(--arap-muted);\n font: 14px/1.5 system-ui, sans-serif;\n overflow-wrap: anywhere;\n}\n.arap-heading button {\n flex: none;\n width: 44px;\n height: 44px;\n margin-top: -6px;\n border: 1px solid transparent;\n border-radius: 8px;\n background: transparent;\n color: var(--arap-muted);\n font-size: 28px;\n line-height: 1;\n}\n.arap-heading button:hover {\n background: var(--arap-control);\n border-color: var(--arap-border);\n}\n.arap-feature {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px 12px;\n padding: 18px 0;\n border-bottom: 1px solid var(--arap-divider);\n}\n.arap-feature:last-child {\n border: 0;\n padding-bottom: 0;\n}\n.arap-label {\n display: flex;\n align-items: center;\n gap: 10px;\n font-weight: 500;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n.arap-icon {\n flex: none;\n width: 22px;\n height: 22px;\n display: inline-block;\n vertical-align: middle;\n}\n.arap-controls {\n display: flex;\n align-items: stretch;\n border: 1px solid var(--arap-border);\n border-radius: 9px;\n overflow: hidden;\n background: var(--arap-control);\n}\n.arap-root .arap-btn-sm {\n flex: none;\n width: 44px;\n height: 44px;\n border: 0;\n border-radius: 0;\n background: transparent;\n font-size: 22px;\n}\n.arap-root .arap-btn-sm:hover:not(:disabled) {\n background: var(--arap-selected);\n color: var(--arap-accent);\n}\n.arap-root .arap-controls button:focus-visible {\n outline-offset: -4px;\n}\n.arap-value {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 56px;\n padding: 0 6px;\n text-align: center;\n font-weight: 600;\n border-inline: 1px solid var(--arap-divider);\n background: var(--arap-surface);\n}\n.arap-segmented {\n grid-column: 1 / -1;\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n}\n.arap-root .arap-segment {\n flex: 1 1 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-muted);\n overflow-wrap: anywhere;\n}\n.arap-root .arap-segment:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-root .arap-segment-active {\n background: var(--arap-accent);\n color: #fff;\n border-color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-segment-active:hover {\n background: var(--arap-accent-hover);\n color: #fff;\n}\n.arap-check {\n flex: none;\n font-size: 15px;\n line-height: 1;\n}\n.arap-root .arap-toggle {\n position: relative;\n width: 56px;\n height: 44px;\n padding: 0;\n border: 0;\n border-radius: 10px;\n background: transparent;\n}\n.arap-toggle::before {\n content: "";\n position: absolute;\n inset: 6px 0;\n border: 2px solid #64748b;\n border-radius: 20px;\n background: #e2e8f0;\n}\n.arap-toggle-knob {\n position: absolute;\n top: 10px;\n left: 4px;\n width: 24px;\n height: 24px;\n border-radius: 50%;\n background: #475569;\n pointer-events: none;\n transition: transform 0.15s;\n}\n.arap-toggle-active::before {\n background: var(--arap-accent);\n border-color: var(--arap-accent);\n}\n.arap-toggle-active .arap-toggle-knob {\n transform: translateX(24px);\n background: #fff;\n}\n.arap-toggle-active .arap-toggle-knob::after {\n content: "\\2713";\n display: block;\n color: var(--arap-accent);\n font-size: 16px;\n font-weight: 700;\n line-height: 24px;\n text-align: center;\n}\n.arap-root .arap-toggle:hover::before {\n border-color: var(--arap-accent);\n}\n.arap-feature-reset {\n display: block;\n}\n.arap-root .arap-reset-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n width: 100%;\n min-height: 48px;\n padding: 10px;\n border: 1px solid var(--arap-border);\n border-radius: 10px;\n background: var(--arap-control);\n color: var(--arap-accent);\n font-weight: 600;\n}\n.arap-root .arap-reset-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n@media (max-width: 380px) {\n .arap-root .arap-panel {\n padding: 16px;\n }\n .arap-heading h2 {\n font-size: 20px;\n }\n .arap-feature-stepper {\n grid-template-columns: minmax(0, 1fr);\n }\n .arap-controls {\n width: 100%;\n }\n .arap-value {\n flex: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .arap-root *,\n .arap-root *::before,\n .arap-root *::after {\n transition: none !important;\n animation: none !important;\n }\n}\n@media (forced-colors: active) {\n .arap-root {\n --arap-surface: Canvas;\n --arap-text: CanvasText;\n --arap-muted: CanvasText;\n --arap-border: ButtonText;\n --arap-divider: ButtonText;\n --arap-accent: Highlight;\n --arap-control: Canvas;\n --arap-selected: Canvas;\n }\n .arap-root button[aria-pressed=true] {\n outline: 2px solid Highlight;\n outline-offset: -4px;\n }\n .arap-root .arap-segment-active {\n color: HighlightText;\n background: Highlight;\n }\n .arap-toggle::before {\n border-color: ButtonText;\n background: Canvas;\n }\n .arap-toggle-knob {\n background: ButtonText;\n }\n .arap-toggle-active .arap-toggle-knob {\n background: Highlight;\n }\n .arap-toggle-active .arap-toggle-knob::after {\n color: HighlightText;\n }\n}\n.arap-root .arap-panel {\n display: flex;\n flex-direction: column;\n overflow: visible;\n}\n.arap-heading {\n flex: none;\n}\n.arap-tools {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n overscroll-behavior: contain;\n scrollbar-width: thin;\n scrollbar-color: var(--arap-border) transparent;\n padding: 0 3px;\n margin: 0 -3px;\n}\n.arap-tools:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: -3px;\n}\n.arap-quick-actions {\n position: relative;\n flex: none;\n display: flex;\n align-items: center;\n gap: 8px;\n padding-top: 14px;\n margin-top: 8px;\n border-top: 1px solid var(--arap-divider);\n}\n.arap-actions {\n flex: 1;\n min-width: 0;\n}\n.arap-actions:empty {\n display: none;\n}\n.arap-actions .arap-feature-reset {\n padding: 0;\n margin: 0;\n border: 0;\n}\n.arap-root .arap-position-button,\n.arap-root .arap-position-default,\n.arap-root .arap-position-arrows button {\n min-width: 44px;\n min-height: 44px;\n padding: 8px 10px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n color: var(--arap-accent);\n}\n.arap-root .arap-position-button:hover,\n.arap-root .arap-position-default:hover,\n.arap-root .arap-position-arrows button:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n}\n.arap-position-popover {\n position: absolute;\n z-index: 1;\n bottom: calc(100% + 8px);\n left: 0;\n width: 100%;\n max-height: calc(100dvh - 160px);\n overflow: auto;\n padding: 14px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n box-shadow: 0 8px 24px #0f172a26;\n}\n.arap-position-popover[hidden] {\n display: none !important;\n}\n.arap-position-label {\n display: block;\n margin-bottom: 6px;\n font-weight: 600;\n}\n.arap-position-popover select {\n width: 100%;\n min-height: 44px;\n padding: 8px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n font: inherit;\n color: var(--arap-text);\n background: var(--arap-surface);\n}\n.arap-position-popover select:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-position-arrows {\n display: flex;\n justify-content: space-between;\n gap: 6px;\n margin-top: 10px;\n}\n.arap-position-default {\n width: 100%;\n margin-top: 8px;\n}\n.arap-root .arap-btn[data-draggable=true] {\n touch-action: none;\n user-select: none;\n cursor: grab;\n}\n.arap-root .arap-btn[data-dragging=true] {\n cursor: grabbing;\n}\n.arap-root .arap-btn[data-corner$=left],\n.arap-root .arap-panel[data-corner$=left] {\n right: auto;\n left: max(16px, env(safe-area-inset-left));\n}\n.arap-root .arap-btn[data-corner$=right],\n.arap-root .arap-panel[data-corner$=right] {\n left: auto;\n right: max(16px, env(safe-area-inset-right));\n}\n.arap-root .arap-btn[data-corner^=top] {\n bottom: auto;\n top: max(16px, env(safe-area-inset-top));\n}\n.arap-root .arap-btn[data-corner^=bottom] {\n top: auto;\n bottom: max(16px, env(safe-area-inset-bottom));\n}\n.arap-root .arap-panel[data-corner^=top] {\n bottom: auto;\n top: max(88px, calc(env(safe-area-inset-top) + 72px));\n}\n.arap-root .arap-panel[data-corner^=bottom] {\n top: auto;\n bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));\n}\n.arap-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n.arap-root .arap-skip-actions {\n position: absolute;\n top: 12px;\n left: 20px;\n width: 44px;\n height: 44px;\n clip-path: inset(50%);\n overflow: hidden;\n pointer-events: none;\n}\n.arap-root .arap-skip-actions:focus-visible {\n right: 20px;\n width: auto;\n height: auto;\n min-height: 44px;\n clip-path: none;\n pointer-events: auto;\n z-index: 2;\n padding: 8px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-accent);\n}\n.arap-skip-to-main {\n position: fixed;\n top: 12px;\n left: 16px;\n z-index: 2147483647;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n pointer-events: none;\n font-family: inherit;\n font-size: 0.9375rem;\n font-weight: 600;\n text-decoration: none;\n color: var(--arap-accent, #008060);\n background: var(--arap-surface, #ffffff);\n border-radius: 8px;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);\n}\n.arap-skip-to-main:focus,\n.arap-skip-to-main:focus-visible {\n width: auto;\n height: auto;\n min-height: 44px;\n margin: 0;\n padding: 10px 18px;\n clip-path: none;\n overflow: visible;\n white-space: normal;\n pointer-events: auto;\n border: 2px solid var(--arap-accent, #008060);\n outline: 3px solid var(--arap-accent, #008060);\n outline-offset: 3px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n@media (forced-colors: active) {\n .arap-skip-to-main {\n background: Canvas;\n color: CanvasText;\n border-color: Highlight;\n }\n .arap-skip-to-main:focus,\n .arap-skip-to-main:focus-visible {\n outline: 3px solid Highlight;\n }\n}\n@media (max-height: 480px) {\n .arap-root .arap-panel {\n top: max(16px, env(safe-area-inset-top)) !important;\n bottom: max(16px, env(safe-area-inset-bottom)) !important;\n max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;\n padding: 8px;\n }\n .arap-heading {\n padding-bottom: 8px;\n }\n .arap-heading h2 {\n font-size: 18px;\n }\n .arap-heading button {\n margin-top: 0;\n }\n .arap-description {\n display: none;\n }\n .arap-quick-actions {\n padding-top: 8px;\n margin-top: 0;\n }\n .arap-root .arap-reset-btn {\n min-height: 44px;\n }\n .arap-root .arap-btn[data-open=true] {\n visibility: hidden;\n }\n .arap-position-popover {\n max-height: calc(100dvh - 96px);\n }\n}\n.arap-statement {\n flex: none;\n padding-top: 10px;\n text-align: center;\n}\n.arap-statement-link {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: 44px;\n padding: 6px 12px;\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 4px;\n font-size: 14px;\n font-weight: 500;\n border-radius: 8px;\n}\n.arap-statement-link:hover {\n color: var(--arap-accent-hover);\n background: var(--arap-selected);\n}\n.arap-statement-link:focus-visible {\n outline: 3px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-credits {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 2px;\n padding-top: 8px;\n color: var(--arap-muted);\n text-align: center;\n font-size: 11px;\n line-height: 1.4;\n}\n.arap-credits a {\n color: var(--arap-accent);\n text-decoration: underline;\n text-underline-offset: 2px;\n}\n.arap-credits a:hover {\n color: var(--arap-accent-hover);\n}\n.arap-credits a:focus-visible {\n outline: 2px solid var(--arap-accent);\n outline-offset: 2px;\n}\n.arap-root .arap-btn[data-large-controls=true] {\n width: 64px;\n height: 64px;\n min-width: 48px;\n min-height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] {\n width: min(440px, calc(100vw - 32px));\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-heading button {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 32px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-btn-sm {\n width: 48px;\n height: 48px;\n min-width: 48px;\n min-height: 48px;\n font-size: 24px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-value {\n min-width: 64px;\n font-size: 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-segment {\n min-width: 48px;\n min-height: 48px;\n padding: 10px 14px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle {\n width: 64px;\n height: 48px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle::before {\n inset: 8px 0;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-knob {\n top: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-toggle-active .arap-toggle-knob {\n transform: translateX(28px);\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-reset-btn {\n min-height: 52px;\n font-size: 16px;\n padding: 12px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-button,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-default,\n.arap-root .arap-panel[data-large-controls=true] .arap-position-arrows button {\n min-width: 48px;\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-position-popover select {\n min-height: 48px;\n font-size: 15px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-statement-link {\n min-height: 48px;\n font-size: 15px;\n padding: 10px 16px;\n}\n.arap-root .arap-panel[data-large-controls=true] .arap-skip-actions {\n min-width: 48px;\n min-height: 48px;\n}\n.arap-feature-card {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n}\n.arap-card-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-card-title {\n font-weight: 600;\n font-size: 15px;\n color: var(--arap-text);\n}\n.arap-card-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-status-badge {\n display: inline-flex;\n align-items: center;\n padding: 2px 8px;\n border-radius: 9999px;\n font-size: 11px;\n font-weight: 600;\n background: var(--arap-control);\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-card-alert {\n display: flex;\n align-items: flex-start;\n gap: 8px;\n padding: 10px 12px;\n border-radius: 8px;\n font-size: 13px;\n line-height: 1.4;\n}\n.arap-alert-icon {\n flex: none;\n font-size: 16px;\n line-height: 1;\n}\n.arap-card-error {\n background: #fef2f2;\n border: 1px solid #fecaca;\n color: #991b1b;\n}\n.arap-card-unavailable {\n background: #f8fafc;\n border: 1px solid var(--arap-border);\n color: var(--arap-muted);\n}\n.arap-card-permission {\n background: #fffbeb;\n border: 1px solid #fde68a;\n color: #92400e;\n}\n.arap-permission-content {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-permission-btn {\n align-self: flex-start;\n padding: 4px 10px;\n border: 1px solid #d97706;\n border-radius: 6px;\n background: #f59e0b;\n color: #fff;\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n}\n.arap-permission-btn:hover {\n background: #d97706;\n}\n.arap-card-content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.arap-choice-group {\n display: flex;\n flex-direction: column;\n gap: 6px;\n width: 100%;\n}\n.arap-choice-group-title {\n font-size: 12px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-choice-badge {\n font-size: 11px;\n padding: 1px 5px;\n border-radius: 4px;\n background: var(--arap-divider);\n color: var(--arap-muted);\n}\n.arap-segment-active .arap-choice-badge {\n background: rgba(255, 255, 255, 0.25);\n color: #fff;\n}\n.arap-stepper-control-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n}\n.arap-slider-container {\n display: flex;\n align-items: center;\n padding: 4px 0;\n}\n.arap-slider {\n width: 100%;\n accent-color: var(--arap-accent);\n cursor: pointer;\n}\n.arap-search-count {\n padding: 6px 0;\n font-size: 12px;\n font-weight: 500;\n color: var(--arap-muted);\n}\n.arap-empty-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n padding: 24px 16px;\n gap: 8px;\n}\n.arap-empty-icon {\n font-size: 32px;\n}\n.arap-empty-title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-empty-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n}\n.arap-empty-btn,\n.arap-retry-btn {\n margin-top: 6px;\n padding: 8px 16px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-control);\n font-weight: 500;\n font-size: 13px;\n color: var(--arap-text);\n cursor: pointer;\n}\n.arap-empty-btn:hover,\n.arap-retry-btn:hover {\n background: var(--arap-selected);\n border-color: var(--arap-accent);\n color: var(--arap-accent);\n}\n.arap-profile-card {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 16px;\n border: 1px solid var(--arap-border);\n border-radius: 12px;\n background: var(--arap-surface);\n transition: border-color 0.15s, box-shadow 0.15s;\n}\n.arap-profile-card-active {\n border-color: var(--arap-accent);\n background: var(--arap-selected);\n box-shadow: 0 0 0 1px var(--arap-accent);\n}\n.arap-profile-header {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n.arap-profile-title-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n}\n.arap-profile-title {\n margin: 0;\n font-size: 15px;\n font-weight: 600;\n color: var(--arap-text);\n}\n.arap-profile-active-badge {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-accent);\n background: #dbeafe;\n padding: 2px 8px;\n border-radius: 9999px;\n}\n.arap-profile-desc {\n margin: 0;\n font-size: 13px;\n color: var(--arap-muted);\n line-height: 1.4;\n}\n.arap-profile-affected {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n.arap-profile-affected-label {\n font-size: 11px;\n font-weight: 600;\n color: var(--arap-muted);\n text-transform: uppercase;\n letter-spacing: 0.05em;\n}\n.arap-profile-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n}\n.arap-profile-chip {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--arap-control);\n border: 1px solid var(--arap-divider);\n font-size: 12px;\n color: var(--arap-text);\n}\n.arap-profile-actions {\n display: flex;\n gap: 8px;\n margin-top: 4px;\n}\n.arap-profile-apply-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-accent);\n border-radius: 8px;\n background: var(--arap-accent);\n color: #fff;\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-apply-btn:hover {\n background: var(--arap-accent-hover);\n}\n.arap-profile-revert-btn {\n flex: 1;\n padding: 8px 14px;\n border: 1px solid var(--arap-border);\n border-radius: 8px;\n background: var(--arap-surface);\n color: var(--arap-muted);\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n text-align: center;\n}\n.arap-profile-revert-btn:hover {\n background: var(--arap-control);\n color: var(--arap-text);\n border-color: var(--arap-text);\n}\n.arap-notice {\n grid-column: 1 / -1;\n margin-top: 6px;\n padding: 8px 12px;\n border-radius: 8px;\n font-size: 12px;\n line-height: 1.45;\n background: #fefce8;\n border: 1px solid #fef08a;\n color: #854d0e;\n}\n.arap-notice-warning {\n background: #fffbeb;\n border-color: #fde68a;\n color: #92400e;\n}\n');
28
28
 
29
29
  // src/core/AccessibilityPlugin.tsx
30
30
  import {
@@ -249,6 +249,14 @@ var FONT_FAMILY_PRESETS = [
249
249
  "legible",
250
250
  "dyslexia-option"
251
251
  ];
252
+ var CONTRAST_MODES = [
253
+ "off",
254
+ "original",
255
+ "light",
256
+ "dark",
257
+ "high",
258
+ "invert"
259
+ ];
252
260
  var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
253
261
  fontSize: { defaultValue: 100, validate: numberIn(50, 200) },
254
262
  fontScale: { defaultValue: 1, validate: numberIn(0.5, 2) },
@@ -279,12 +287,23 @@ var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
279
287
  1,
280
288
  2,
281
289
  3,
290
+ "off",
291
+ "original",
292
+ "light",
293
+ "dark",
294
+ "high",
295
+ "invert",
282
296
  "reduced",
283
297
  "yellow-on-black",
284
298
  "white-on-black",
285
- "blue-on-yellow"
299
+ "blue-on-yellow",
300
+ "black-on-white"
286
301
  )
287
302
  },
303
+ contrastMode: {
304
+ defaultValue: "off",
305
+ validate: oneOf("off", "original", "light", "dark", "high", "invert")
306
+ },
288
307
  saturation: { defaultValue: 0, validate: oneOf(0, 1, 2) },
289
308
  textAlign: {
290
309
  defaultValue: "default",
@@ -305,6 +324,7 @@ var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
305
324
  validate: oneOf(
306
325
  false,
307
326
  true,
327
+ "underline",
308
328
  "yellow-on-black",
309
329
  "blue-on-yellow",
310
330
  "black-on-white"
@@ -318,7 +338,9 @@ for (const key of [
318
338
  "hideVideos",
319
339
  "bigCursor",
320
340
  "readingMask",
321
- "readingGuide"
341
+ "readingGuide",
342
+ "highlightFocus",
343
+ "focusHighlight"
322
344
  ]) {
323
345
  builtins[key] = {
324
346
  defaultValue: false,
@@ -342,22 +364,146 @@ import { useEffect } from "react";
342
364
  var EXCLUDED = "[data-arap-ui], [data-arap-ui] *, script, style, link, meta, noscript, template";
343
365
  var MAX_HOST_ELEMENTS = 4e3;
344
366
  var cursor = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M4 2v32l9-9 7 13 6-3-7-12h14z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto`;
367
+ function isForcedColorsActive() {
368
+ if (typeof window === "undefined" || !window.matchMedia) return false;
369
+ try {
370
+ return window.matchMedia("(forced-colors: active)").matches;
371
+ } catch {
372
+ return false;
373
+ }
374
+ }
375
+ function subscribeForcedColors(callback) {
376
+ if (typeof window === "undefined" || !window.matchMedia) return () => {
377
+ };
378
+ try {
379
+ const mql = window.matchMedia("(forced-colors: active)");
380
+ mql.addEventListener("change", callback);
381
+ return () => mql.removeEventListener("change", callback);
382
+ } catch {
383
+ return () => {
384
+ };
385
+ }
386
+ }
387
+ var CONTRAST_PALETTES = {
388
+ light: {
389
+ text: "#0f172a",
390
+ background: "#ffffff",
391
+ border: "#94a3b8",
392
+ link: "#0284c7"
393
+ },
394
+ dark: {
395
+ text: "#f8fafc",
396
+ background: "#0f172a",
397
+ border: "#475569",
398
+ link: "#38bdf8"
399
+ },
400
+ high: {
401
+ text: "#ffffff",
402
+ background: "#000000",
403
+ border: "#ffffff",
404
+ link: "#93c5fd"
405
+ },
406
+ "yellow-on-black": {
407
+ text: "#ffff00",
408
+ background: "#000000",
409
+ border: "#ffff00",
410
+ link: "#00ffff"
411
+ },
412
+ "white-on-black": {
413
+ text: "#ffffff",
414
+ background: "#000000",
415
+ border: "#ffffff",
416
+ link: "#ffff00"
417
+ },
418
+ "blue-on-yellow": {
419
+ text: "#005a9c",
420
+ background: "#ffd740",
421
+ border: "#005a9c",
422
+ link: "#002b49"
423
+ },
424
+ "black-on-white": {
425
+ text: "#000000",
426
+ background: "#ffffff",
427
+ border: "#000000",
428
+ link: "#0000ee"
429
+ }
430
+ };
345
431
  var palette = {
346
432
  "yellow-on-black": ["#ffff00", "#000000"],
347
433
  "white-on-black": ["#ffffff", "#000000"],
348
434
  "blue-on-yellow": ["#005a9c", "#ffd740"],
349
- "black-on-white": ["#000000", "#ffffff"]
435
+ "black-on-white": ["#000000", "#ffffff"],
436
+ light: ["#0f172a", "#ffffff"],
437
+ dark: ["#f8fafc", "#0f172a"],
438
+ high: ["#ffffff", "#000000"]
350
439
  };
351
440
  function composeFilter(values) {
441
+ if (isForcedColorsActive()) return "";
352
442
  const contrast = values.contrast === "reduced" ? 0.5 : [1, 1.25, 1.5, 2][Number(values.contrast)] ?? 1;
443
+ const isInvert = Boolean(values.invertColors) || values.contrast === "invert" || values.contrastMode === "invert";
353
444
  return [
354
445
  contrast !== 1 && `contrast(${contrast})`,
355
446
  values.saturation === 1 && "saturate(0.2)",
356
447
  values.saturation === 2 && "saturate(2)",
357
- values.invertColors && "invert(1)",
448
+ isInvert && "invert(1)",
358
449
  values.grayscale && "grayscale(1)"
359
450
  ].filter(Boolean).join(" ");
360
451
  }
452
+ var CONTRAST_PROTECTED_SELECTOR = [
453
+ "img",
454
+ "picture",
455
+ "picture *",
456
+ "video",
457
+ "canvas",
458
+ "svg",
459
+ "svg *",
460
+ "[role='img']",
461
+ "[role='img'] *",
462
+ "[role='graphics-document']",
463
+ "[role='graphics-document'] *",
464
+ "[role='graphics-symbol']",
465
+ "[role='graphics-symbol'] *",
466
+ "[data-icon]",
467
+ "[data-icon] *",
468
+ 'i[class*="icon"]',
469
+ 'span[class*="icon"]',
470
+ 'i[class*="fa-"]',
471
+ 'span[class*="fa-"]',
472
+ 'i[class*="material-symbols"]',
473
+ 'span[class*="material-symbols"]',
474
+ 'i[class*="lucide"]',
475
+ 'span[class*="lucide"]',
476
+ '[aria-invalid="true"]',
477
+ '[aria-invalid="true"] *',
478
+ ":invalid",
479
+ ".is-invalid",
480
+ ".invalid-feedback",
481
+ ":disabled",
482
+ "[aria-disabled='true']",
483
+ "[disabled]",
484
+ "[data-arap-ignore]",
485
+ "[data-arap-ignore] *",
486
+ "[data-arap-exempt]",
487
+ "[data-arap-exempt] *",
488
+ "[data-arap-ui]",
489
+ "[data-arap-ui] *",
490
+ ".arap-root",
491
+ ".arap-root *"
492
+ ].join(", ");
493
+ function isProtectedFromContrast(element) {
494
+ try {
495
+ if (element.matches(EXCLUDED)) return true;
496
+ if (element.matches(CONTRAST_PROTECTED_SELECTOR)) return true;
497
+ if (element.closest(
498
+ "svg, [role='img'], [data-icon], [aria-invalid='true'], :disabled, [aria-disabled='true'], [data-arap-ignore], [data-arap-exempt], [data-arap-ui], .arap-root"
499
+ )) {
500
+ return true;
501
+ }
502
+ } catch {
503
+ return false;
504
+ }
505
+ return false;
506
+ }
361
507
  var TEXT_SCALE_PROTECTED_SELECTOR = [
362
508
  "input",
363
509
  "textarea",
@@ -827,6 +973,72 @@ function applyPage(values) {
827
973
  set(el, "font-family", targetStack);
828
974
  }
829
975
  }
976
+ const isInvert = Boolean(values.invertColors) || values.contrast === "invert" || values.contrastMode === "invert";
977
+ if (isInvert && !isForcedColorsActive()) {
978
+ const mediaElements = Array.from(
979
+ document.body.querySelectorAll(
980
+ "img, video, canvas, picture, [role='img']"
981
+ )
982
+ ).filter((el) => !el.closest("[data-arap-ui]"));
983
+ for (const mediaEl of mediaElements) {
984
+ set(mediaEl, "filter", "invert(1)");
985
+ }
986
+ }
987
+ const activeContrastKey = values.contrastMode && values.contrastMode !== "off" && values.contrastMode !== "original" ? String(values.contrastMode) : values.contrast !== void 0 && values.contrast !== 0 && values.contrast !== "0" && values.contrast !== "off" && values.contrast !== "original" ? String(values.contrast) : null;
988
+ const activePalette = activeContrastKey && !isForcedColorsActive() ? CONTRAST_PALETTES[activeContrastKey] : null;
989
+ if (activePalette) {
990
+ for (const el of elements) {
991
+ if (isProtectedFromContrast(el)) continue;
992
+ set(el, "color", activePalette.text);
993
+ if (el.matches("a[href]") && activePalette.link) {
994
+ set(el, "color", activePalette.link);
995
+ }
996
+ if (el.matches(
997
+ "main, section, article, div, p, h1, h2, h3, h4, h5, h6, ul, ol, li, table, thead, tbody, tr, th, td, button, input, select, textarea, form, blockquote, header, footer, aside, nav"
998
+ )) {
999
+ set(el, "background-color", activePalette.background);
1000
+ }
1001
+ if (activePalette.border && el.matches(
1002
+ "button, input, select, textarea, [role='button'], fieldset, hr, table, th, td"
1003
+ )) {
1004
+ set(el, "border-color", activePalette.border);
1005
+ }
1006
+ }
1007
+ }
1008
+ if (values.highlightFocus || values.focusHighlight) {
1009
+ const FOCUS_STYLE_ID = "arap-focus-highlight-style";
1010
+ let styleEl = document.getElementById(
1011
+ FOCUS_STYLE_ID
1012
+ );
1013
+ if (!styleEl) {
1014
+ styleEl = document.createElement("style");
1015
+ styleEl.id = FOCUS_STYLE_ID;
1016
+ styleEl.dataset.arapUi = "";
1017
+ styleEl.textContent = `
1018
+ *:not([data-arap-ui]):not([data-arap-ui] *):focus-visible {
1019
+ outline: 3px solid #2563eb !important;
1020
+ outline-offset: 3px !important;
1021
+ box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9) !important;
1022
+ }
1023
+ @media (forced-colors: active) {
1024
+ *:not([data-arap-ui]):not([data-arap-ui] *):focus-visible {
1025
+ outline: 3px solid Highlight !important;
1026
+ outline-offset: 3px !important;
1027
+ box-shadow: none !important;
1028
+ }
1029
+ }
1030
+ *:disabled:focus-visible,
1031
+ *[aria-disabled="true"]:focus-visible {
1032
+ outline: none !important;
1033
+ box-shadow: none !important;
1034
+ }
1035
+ `;
1036
+ document.head.appendChild(styleEl);
1037
+ undo.push(() => {
1038
+ styleEl?.remove();
1039
+ });
1040
+ }
1041
+ }
830
1042
  for (const el of elements) {
831
1043
  if (values.bigCursor) set(el, "cursor", cursor);
832
1044
  if (values.hideImages) {
@@ -838,18 +1050,30 @@ function applyPage(values) {
838
1050
  ))
839
1051
  set(el, "visibility", "hidden");
840
1052
  const colors = palette[String(values.contrast)];
841
- if (colors) {
1053
+ if (colors && !activePalette && !isForcedColorsActive()) {
842
1054
  set(el, "color", colors[0]);
843
1055
  set(el, "background-color", colors[1]);
844
1056
  }
845
- if (values.linkHighlight && el.matches("a[href]")) {
846
- const colors2 = palette[String(values.linkHighlight)] ?? [
847
- "#111827",
848
- "#fef08a"
849
- ];
850
- set(el, "color", colors2[0]);
851
- set(el, "background-color", colors2[1]);
852
- set(el, "text-decoration", "underline");
1057
+ if (values.linkHighlight && el.matches("a[href]") && !el.closest("[data-arap-ui]")) {
1058
+ const isDisabled = el.getAttribute("aria-disabled") === "true" || el.hasAttribute("disabled") || el.classList.contains("disabled");
1059
+ if (!isDisabled) {
1060
+ if (isForcedColorsActive()) {
1061
+ set(el, "color", "LinkText");
1062
+ set(el, "text-decoration", "underline");
1063
+ set(el, "text-decoration-thickness", "2px");
1064
+ set(el, "text-underline-offset", "3px");
1065
+ } else {
1066
+ const colors2 = palette[String(values.linkHighlight)] ?? [
1067
+ "#111827",
1068
+ "#fef08a"
1069
+ ];
1070
+ set(el, "color", colors2[0]);
1071
+ set(el, "background-color", colors2[1]);
1072
+ set(el, "text-decoration", "underline");
1073
+ set(el, "text-decoration-thickness", "2px");
1074
+ set(el, "text-underline-offset", "3px");
1075
+ }
1076
+ }
853
1077
  }
854
1078
  }
855
1079
  return () => {
@@ -1112,7 +1336,7 @@ function AccessibilityPlugin({
1112
1336
  }
1113
1337
 
1114
1338
  // src/core/AccessibilityButton.tsx
1115
- import { useContext, useRef as useRef2, useState as useState2 } from "react";
1339
+ import { useContext as useContext2, useRef as useRef2, useState as useState2 } from "react";
1116
1340
 
1117
1341
  // src/core/WidgetPortal.tsx
1118
1342
  import { useSyncExternalStore as useSyncExternalStore3 } from "react";
@@ -1134,12 +1358,16 @@ function WidgetPortal({ children }) {
1134
1358
  ) : null;
1135
1359
  }
1136
1360
 
1361
+ // src/core/SkipToMainLink.tsx
1362
+ import { useContext, useSyncExternalStore as useSyncExternalStore4 } from "react";
1363
+
1137
1364
  // src/core/i18n/en.ts
1138
1365
  var enLocale = Object.freeze({
1139
1366
  title: "Accessibility settings",
1140
1367
  description: "Adjust your reading experience",
1141
1368
  closeLabel: "Close accessibility settings",
1142
1369
  skipToActions: "Jump to quick actions",
1370
+ skipToMain: "Skip to main content",
1143
1371
  toolsLabel: "Accessibility tools",
1144
1372
  quickActionsLabel: "Quick actions",
1145
1373
  resetLabel: "Reset all accessibility settings",
@@ -1205,8 +1433,69 @@ function resolveLocaleStrings(localeProp) {
1205
1433
  return enLocale;
1206
1434
  }
1207
1435
 
1436
+ // src/core/SkipToMainLink.tsx
1437
+ import { jsx as jsx3 } from "react/jsx-runtime";
1438
+ function findMainLandmark() {
1439
+ if (typeof document === "undefined") return null;
1440
+ const main = document.querySelector("main, [role='main']");
1441
+ return main instanceof HTMLElement ? main : null;
1442
+ }
1443
+ function subscribeLandmark(callback) {
1444
+ if (typeof MutationObserver === "undefined" || typeof document === "undefined" || !document.body) {
1445
+ return () => {
1446
+ };
1447
+ }
1448
+ const observer = new MutationObserver(callback);
1449
+ observer.observe(document.body, { childList: true, subtree: true });
1450
+ return () => observer.disconnect();
1451
+ }
1452
+ function getMainTargetId() {
1453
+ if (typeof document === "undefined") return null;
1454
+ const main = findMainLandmark();
1455
+ if (main) {
1456
+ if (!main.id) {
1457
+ main.id = "arap-main-content";
1458
+ }
1459
+ if (!main.hasAttribute("tabindex")) {
1460
+ main.setAttribute("tabindex", "-1");
1461
+ }
1462
+ return main.id;
1463
+ }
1464
+ return null;
1465
+ }
1466
+ function SkipToMainLink({ className = "", label }) {
1467
+ const ctx = useContext(AccessibilityContext);
1468
+ const strings = resolveLocaleStrings(ctx?.locale);
1469
+ const text = label ?? strings.skipToMain ?? "Skip to main content";
1470
+ const targetId = useSyncExternalStore4(
1471
+ subscribeLandmark,
1472
+ getMainTargetId,
1473
+ () => null
1474
+ );
1475
+ if (!targetId) return null;
1476
+ return /* @__PURE__ */ jsx3(
1477
+ "a",
1478
+ {
1479
+ href: `#${targetId}`,
1480
+ className: `arap-skip-to-main ${className}`,
1481
+ onClick: (e) => {
1482
+ const main = document.getElementById(targetId);
1483
+ if (main) {
1484
+ e.preventDefault();
1485
+ if (!main.hasAttribute("tabindex")) {
1486
+ main.setAttribute("tabindex", "-1");
1487
+ }
1488
+ main.focus();
1489
+ main.scrollIntoView({ behavior: "smooth", block: "start" });
1490
+ }
1491
+ },
1492
+ children: text
1493
+ }
1494
+ );
1495
+ }
1496
+
1208
1497
  // src/core/AccessibilityButton.tsx
1209
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
1498
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
1210
1499
  function AccessibilityButton({
1211
1500
  icon,
1212
1501
  draggable = true,
@@ -1216,7 +1505,7 @@ function AccessibilityButton({
1216
1505
  style,
1217
1506
  largeControls
1218
1507
  }) {
1219
- const ctx = useContext(AccessibilityContext);
1508
+ const ctx = useContext2(AccessibilityContext);
1220
1509
  if (!ctx)
1221
1510
  throw new Error(
1222
1511
  "AccessibilityButton must be used within an <AccessibilityPlugin> provider."
@@ -1232,6 +1521,7 @@ function AccessibilityButton({
1232
1521
  const placement = preview ?? ctx.widgetPlacement;
1233
1522
  const corner = placement?.kind === "corner" ? placement.corner : defaultCorner(ctx.position);
1234
1523
  return /* @__PURE__ */ jsxs2(WidgetPortal, { children: [
1524
+ /* @__PURE__ */ jsx4(SkipToMainLink, {}),
1235
1525
  /* @__PURE__ */ jsxs2(
1236
1526
  "button",
1237
1527
  {
@@ -1330,7 +1620,7 @@ function AccessibilityButton({
1330
1620
  "aria-expanded": ctx.isOpen,
1331
1621
  "aria-controls": ctx.panelId,
1332
1622
  children: [
1333
- /* @__PURE__ */ jsx3("span", { "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsxs2(
1623
+ /* @__PURE__ */ jsx4("span", { "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsxs2(
1334
1624
  "svg",
1335
1625
  {
1336
1626
  width: "28",
@@ -1340,8 +1630,8 @@ function AccessibilityButton({
1340
1630
  stroke: "currentColor",
1341
1631
  strokeWidth: "2",
1342
1632
  children: [
1343
- /* @__PURE__ */ jsx3("circle", { cx: "12", cy: "4", r: "2" }),
1344
- /* @__PURE__ */ jsx3("path", { d: "M4 9l8 2 8-2M12 11v5m0 0-5 6m5-6 5 6" })
1633
+ /* @__PURE__ */ jsx4("circle", { cx: "12", cy: "4", r: "2" }),
1634
+ /* @__PURE__ */ jsx4("path", { d: "M4 9l8 2 8-2M12 11v5m0 0-5 6m5-6 5 6" })
1345
1635
  ]
1346
1636
  }
1347
1637
  ) }),
@@ -1352,7 +1642,7 @@ function AccessibilityButton({
1352
1642
  ]
1353
1643
  }
1354
1644
  ),
1355
- /* @__PURE__ */ jsx3("span", { className: "arap-sr-only", role: "status", children: ctx.widgetPlacement?.kind === "point" ? strings.formatPointPosition ? strings.formatPointPosition(
1645
+ /* @__PURE__ */ jsx4("span", { className: "arap-sr-only", role: "status", children: ctx.widgetPlacement?.kind === "point" ? strings.formatPointPosition ? strings.formatPointPosition(
1356
1646
  ctx.widgetPlacement.x,
1357
1647
  ctx.widgetPlacement.y
1358
1648
  ) : `Button position: ${Math.round(ctx.widgetPlacement.x * 100)}% horizontally, ${Math.round(ctx.widgetPlacement.y * 100)}% vertically.` : strings.formatCornerPosition ? strings.formatCornerPosition(corner) : `Button position: ${corner.split("-").join(" ")}.` })
@@ -1360,17 +1650,17 @@ function AccessibilityButton({
1360
1650
  }
1361
1651
 
1362
1652
  // src/core/AccessibilityList.tsx
1363
- import { useContext as useContext3, useEffect as useEffect4, useRef as useRef4, useState as useState4 } from "react";
1653
+ import { useContext as useContext4, useEffect as useEffect4, useRef as useRef4, useState as useState4 } from "react";
1364
1654
 
1365
1655
  // src/core/PanelActionsContext.ts
1366
1656
  import { createContext as createContext2 } from "react";
1367
1657
  var PanelActionsContext = createContext2(null);
1368
1658
 
1369
1659
  // src/core/PositionControls.tsx
1370
- import { useContext as useContext2, useEffect as useEffect3, useRef as useRef3, useState as useState3 } from "react";
1371
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
1660
+ import { useContext as useContext3, useEffect as useEffect3, useRef as useRef3, useState as useState3 } from "react";
1661
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
1372
1662
  function PositionControls() {
1373
- const ctx = useContext2(AccessibilityContext);
1663
+ const ctx = useContext3(AccessibilityContext);
1374
1664
  const strings = resolveLocaleStrings(ctx.locale);
1375
1665
  const [open, setOpen] = useState3(false);
1376
1666
  const select = useRef3(null);
@@ -1391,7 +1681,7 @@ function PositionControls() {
1391
1681
  );
1392
1682
  };
1393
1683
  return /* @__PURE__ */ jsxs3("div", { className: "arap-position-tools", children: [
1394
- /* @__PURE__ */ jsx4(
1684
+ /* @__PURE__ */ jsx5(
1395
1685
  "button",
1396
1686
  {
1397
1687
  ref: opener,
@@ -1421,7 +1711,7 @@ function PositionControls() {
1421
1711
  }
1422
1712
  },
1423
1713
  children: [
1424
- /* @__PURE__ */ jsx4(
1714
+ /* @__PURE__ */ jsx5(
1425
1715
  "label",
1426
1716
  {
1427
1717
  className: "arap-position-label",
@@ -1441,17 +1731,17 @@ function PositionControls() {
1441
1731
  corner: event.target.value
1442
1732
  }),
1443
1733
  children: [
1444
- /* @__PURE__ */ jsx4("option", { value: "custom", disabled: true, children: strings.customPosition }),
1445
- corners.map((corner) => /* @__PURE__ */ jsx4("option", { value: corner, children: corner.split("-").join(" ") }, corner))
1734
+ /* @__PURE__ */ jsx5("option", { value: "custom", disabled: true, children: strings.customPosition }),
1735
+ corners.map((corner) => /* @__PURE__ */ jsx5("option", { value: corner, children: corner.split("-").join(" ") }, corner))
1446
1736
  ]
1447
1737
  }
1448
1738
  ),
1449
- /* @__PURE__ */ jsx4("div", { className: "arap-position-arrows", children: [
1739
+ /* @__PURE__ */ jsx5("div", { className: "arap-position-arrows", children: [
1450
1740
  ["left", -20, 0, "\u2190", strings.moveLeft],
1451
1741
  ["up", 0, -20, "\u2191", strings.moveUp],
1452
1742
  ["down", 0, 20, "\u2193", strings.moveDown],
1453
1743
  ["right", 20, 0, "\u2192", strings.moveRight]
1454
- ].map(([direction, dx, dy, arrowChar, label]) => /* @__PURE__ */ jsx4(
1744
+ ].map(([direction, dx, dy, arrowChar, label]) => /* @__PURE__ */ jsx5(
1455
1745
  "button",
1456
1746
  {
1457
1747
  type: "button",
@@ -1464,7 +1754,7 @@ function PositionControls() {
1464
1754
  },
1465
1755
  direction
1466
1756
  )) }),
1467
- /* @__PURE__ */ jsx4(
1757
+ /* @__PURE__ */ jsx5(
1468
1758
  "button",
1469
1759
  {
1470
1760
  className: "arap-position-default",
@@ -1476,7 +1766,7 @@ function PositionControls() {
1476
1766
  children: strings.resetPosition
1477
1767
  }
1478
1768
  ),
1479
- /* @__PURE__ */ jsx4("button", { className: "arap-position-default", type: "button", onClick: close, children: strings.doneMoving })
1769
+ /* @__PURE__ */ jsx5("button", { className: "arap-position-default", type: "button", onClick: close, children: strings.doneMoving })
1480
1770
  ]
1481
1771
  }
1482
1772
  )
@@ -1484,7 +1774,7 @@ function PositionControls() {
1484
1774
  }
1485
1775
 
1486
1776
  // src/core/AccessibilityList.tsx
1487
- import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
1777
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
1488
1778
  function Panel({
1489
1779
  children,
1490
1780
  footer,
@@ -1497,7 +1787,7 @@ function Panel({
1497
1787
  largeControls,
1498
1788
  locale
1499
1789
  }) {
1500
- const ctx = useContext3(AccessibilityContext);
1790
+ const ctx = useContext4(AccessibilityContext);
1501
1791
  const effectiveLocale = locale ?? ctx.locale;
1502
1792
  const strings = resolveLocaleStrings(effectiveLocale);
1503
1793
  const panelTitle = title ?? strings.title;
@@ -1557,10 +1847,10 @@ function Panel({
1557
1847
  children: [
1558
1848
  /* @__PURE__ */ jsxs4("div", { className: "arap-heading", children: [
1559
1849
  /* @__PURE__ */ jsxs4("div", { className: "arap-heading-copy", children: [
1560
- /* @__PURE__ */ jsx5("h2", { children: panelTitle }),
1561
- panelDescription && /* @__PURE__ */ jsx5("p", { id: `${ctx.panelId}-description`, className: "arap-description", children: panelDescription })
1850
+ /* @__PURE__ */ jsx6("h2", { children: panelTitle }),
1851
+ panelDescription && /* @__PURE__ */ jsx6("p", { id: `${ctx.panelId}-description`, className: "arap-description", children: panelDescription })
1562
1852
  ] }),
1563
- /* @__PURE__ */ jsx5(
1853
+ /* @__PURE__ */ jsx6(
1564
1854
  "button",
1565
1855
  {
1566
1856
  type: "button",
@@ -1570,7 +1860,7 @@ function Panel({
1570
1860
  }
1571
1861
  )
1572
1862
  ] }),
1573
- /* @__PURE__ */ jsx5(
1863
+ /* @__PURE__ */ jsx6(
1574
1864
  "button",
1575
1865
  {
1576
1866
  type: "button",
@@ -1584,7 +1874,7 @@ function Panel({
1584
1874
  children: strings.skipToActions
1585
1875
  }
1586
1876
  ),
1587
- /* @__PURE__ */ jsx5(PanelActionsContext.Provider, { value: actions, children: /* @__PURE__ */ jsx5(
1877
+ /* @__PURE__ */ jsx6(PanelActionsContext.Provider, { value: actions, children: /* @__PURE__ */ jsx6(
1588
1878
  "div",
1589
1879
  {
1590
1880
  className: "arap-tools",
@@ -1601,12 +1891,12 @@ function Panel({
1601
1891
  role: "group",
1602
1892
  "aria-label": strings.quickActionsLabel,
1603
1893
  children: [
1604
- /* @__PURE__ */ jsx5(PositionControls, {}, ctx.isOpen ? "open" : "closed"),
1605
- /* @__PURE__ */ jsx5("div", { className: "arap-actions", ref: setActions, children: footer })
1894
+ /* @__PURE__ */ jsx6(PositionControls, {}, ctx.isOpen ? "open" : "closed"),
1895
+ /* @__PURE__ */ jsx6("div", { className: "arap-actions", ref: setActions, children: footer })
1606
1896
  ]
1607
1897
  }
1608
1898
  ),
1609
- effectiveStatementUrl && /* @__PURE__ */ jsx5("div", { className: "arap-statement", children: /* @__PURE__ */ jsxs4(
1899
+ effectiveStatementUrl && /* @__PURE__ */ jsx6("div", { className: "arap-statement", children: /* @__PURE__ */ jsxs4(
1610
1900
  "a",
1611
1901
  {
1612
1902
  href: effectiveStatementUrl,
@@ -1666,18 +1956,18 @@ function Panel({
1666
1956
  );
1667
1957
  }
1668
1958
  function AccessibilityList(props) {
1669
- const ctx = useContext3(AccessibilityContext);
1959
+ const ctx = useContext4(AccessibilityContext);
1670
1960
  if (!ctx)
1671
1961
  throw new Error(
1672
1962
  "AccessibilityList must be used within an <AccessibilityPlugin> provider."
1673
1963
  );
1674
- return /* @__PURE__ */ jsx5(WidgetPortal, { children: /* @__PURE__ */ jsx5(Panel, { ...props }) });
1964
+ return /* @__PURE__ */ jsx6(WidgetPortal, { children: /* @__PURE__ */ jsx6(Panel, { ...props }) });
1675
1965
  }
1676
1966
 
1677
1967
  // src/core/useAccessibility.ts
1678
- import { useCallback as useCallback3, useContext as useContext4, useEffect as useEffect5, useState as useState5 } from "react";
1968
+ import { useCallback as useCallback3, useContext as useContext5, useEffect as useEffect5, useState as useState5 } from "react";
1679
1969
  function useAccessibility(featureKey, defaultValue, options) {
1680
- const ctx = useContext4(AccessibilityContext);
1970
+ const ctx = useContext5(AccessibilityContext);
1681
1971
  if (!ctx)
1682
1972
  throw new Error(
1683
1973
  "useAccessibility must be used within an <AccessibilityPlugin> provider."
@@ -2011,56 +2301,68 @@ function preferencesReducer(state, action) {
2011
2301
  }
2012
2302
 
2013
2303
  // src/core/FeatureIcon.tsx
2014
- import { Fragment, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
2304
+ import { Fragment, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
2015
2305
  var drawings = {
2016
- fontSize: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M3 18 8 5l5 13M5 13h6M15 18l3-8 3 8M16 15h4" }) }),
2017
- lineHeight: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M9 6h12M9 12h9M9 18h12M4 4v16m-2-2 2 2 2-2M2 6l2-2 2 2" }) }),
2018
- letterSpacing: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M3 13 7 3l4 10M4.5 9h5M14 13l4-10 4 10m-6.5-4h5M3 19h18m-3-2 3 2-3 2M6 17l-3 2 3 2" }) }),
2019
- wordSpacing: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M4 6v12M20 6v12M9 12h6m-2-3 3 3-3 3m-4-3-3-3 3 3" }) }),
2020
- paragraphSpacing: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M4 5h16M4 9h12M4 19h16M4 15h12M18 10v4m-2-2 2-2 2 2m-4 2 2 2 2-2" }) }),
2306
+ fontSize: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M3 18 8 5l5 13M5 13h6M15 18l3-8 3 8M16 15h4" }) }),
2307
+ lineHeight: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M9 6h12M9 12h9M9 18h12M4 4v16m-2-2 2 2 2-2M2 6l2-2 2 2" }) }),
2308
+ letterSpacing: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M3 13 7 3l4 10M4.5 9h5M14 13l4-10 4 10m-6.5-4h5M3 19h18m-3-2 3 2-3 2M6 17l-3 2 3 2" }) }),
2309
+ wordSpacing: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M4 6v12M20 6v12M9 12h6m-2-3 3 3-3 3m-4-3-3-3 3 3" }) }),
2310
+ paragraphSpacing: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M4 5h16M4 9h12M4 19h16M4 15h12M18 10v4m-2-2 2-2 2 2m-4 2 2 2 2-2" }) }),
2021
2311
  contrast: /* @__PURE__ */ jsxs5(Fragment, { children: [
2022
- /* @__PURE__ */ jsx6("circle", { cx: "12", cy: "12", r: "9" }),
2023
- /* @__PURE__ */ jsx6("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
2312
+ /* @__PURE__ */ jsx7("circle", { cx: "12", cy: "12", r: "9" }),
2313
+ /* @__PURE__ */ jsx7("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
2314
+ ] }),
2315
+ contrastMode: /* @__PURE__ */ jsxs5(Fragment, { children: [
2316
+ /* @__PURE__ */ jsx7("circle", { cx: "12", cy: "12", r: "9" }),
2317
+ /* @__PURE__ */ jsx7("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
2024
2318
  ] }),
2025
2319
  saturation: /* @__PURE__ */ jsxs5(Fragment, { children: [
2026
- /* @__PURE__ */ jsx6("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
2027
- /* @__PURE__ */ jsx6("path", { d: "M8 15a4 4 0 0 0 4 4" })
2320
+ /* @__PURE__ */ jsx7("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
2321
+ /* @__PURE__ */ jsx7("path", { d: "M8 15a4 4 0 0 0 4 4" })
2028
2322
  ] }),
2029
2323
  invertColors: /* @__PURE__ */ jsxs5(Fragment, { children: [
2030
- /* @__PURE__ */ jsx6("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
2031
- /* @__PURE__ */ jsx6("path", { d: "M12 3v19" })
2324
+ /* @__PURE__ */ jsx7("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
2325
+ /* @__PURE__ */ jsx7("path", { d: "M12 3v19" })
2032
2326
  ] }),
2033
2327
  grayscale: /* @__PURE__ */ jsxs5(Fragment, { children: [
2034
- /* @__PURE__ */ jsx6("circle", { cx: "8", cy: "12", r: "5" }),
2035
- /* @__PURE__ */ jsx6("circle", { cx: "16", cy: "12", r: "5" }),
2036
- /* @__PURE__ */ jsx6("path", { d: "M8 7v10M16 7v10" })
2328
+ /* @__PURE__ */ jsx7("circle", { cx: "8", cy: "12", r: "5" }),
2329
+ /* @__PURE__ */ jsx7("circle", { cx: "16", cy: "12", r: "5" }),
2330
+ /* @__PURE__ */ jsx7("path", { d: "M8 7v10M16 7v10" })
2331
+ ] }),
2332
+ linkHighlight: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "m10 14 4-4M8 16l-1 1a4 4 0 0 1-6-6l4-4a4 4 0 0 1 6 0M16 8l1-1a4 4 0 0 1 6 6l-4 4a4 4 0 0 1-6 0" }) }),
2333
+ highlightFocus: /* @__PURE__ */ jsxs5(Fragment, { children: [
2334
+ /* @__PURE__ */ jsx7("path", { d: "M4 8V4h4M20 8V4h-4M4 16v4h4M20 16v4h-4" }),
2335
+ /* @__PURE__ */ jsx7("circle", { cx: "12", cy: "12", r: "3" })
2336
+ ] }),
2337
+ focusHighlight: /* @__PURE__ */ jsxs5(Fragment, { children: [
2338
+ /* @__PURE__ */ jsx7("path", { d: "M4 8V4h4M20 8V4h-4M4 16v4h4M20 16v4h-4" }),
2339
+ /* @__PURE__ */ jsx7("circle", { cx: "12", cy: "12", r: "3" })
2037
2340
  ] }),
2038
- linkHighlight: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "m10 14 4-4M8 16l-1 1a4 4 0 0 1-6-6l4-4a4 4 0 0 1 6 0M16 8l1-1a4 4 0 0 1 6 6l-4 4a4 4 0 0 1-6 0" }) }),
2039
- textAlign: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M3 5h18M3 10h12M3 15h18M3 20h12" }) }),
2040
- fontFamily: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M4 7V4h16v3M9 20h6M12 4v16" }) }),
2341
+ textAlign: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M3 5h18M3 10h12M3 15h18M3 20h12" }) }),
2342
+ fontFamily: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M4 7V4h16v3M9 20h6M12 4v16" }) }),
2041
2343
  hideImages: /* @__PURE__ */ jsxs5(Fragment, { children: [
2042
- /* @__PURE__ */ jsx6("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
2043
- /* @__PURE__ */ jsx6("circle", { cx: "8", cy: "9", r: "1" }),
2044
- /* @__PURE__ */ jsx6("path", { d: "m3 17 5-5 4 4 3-3 6 5M2 2l20 20" })
2344
+ /* @__PURE__ */ jsx7("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
2345
+ /* @__PURE__ */ jsx7("circle", { cx: "8", cy: "9", r: "1" }),
2346
+ /* @__PURE__ */ jsx7("path", { d: "m3 17 5-5 4 4 3-3 6 5M2 2l20 20" })
2045
2347
  ] }),
2046
2348
  hideVideos: /* @__PURE__ */ jsxs5(Fragment, { children: [
2047
- /* @__PURE__ */ jsx6("rect", { x: "3", y: "5", width: "13", height: "14", rx: "2" }),
2048
- /* @__PURE__ */ jsx6("path", { d: "m16 10 5-3v10l-5-3M2 2l20 20" })
2349
+ /* @__PURE__ */ jsx7("rect", { x: "3", y: "5", width: "13", height: "14", rx: "2" }),
2350
+ /* @__PURE__ */ jsx7("path", { d: "m16 10 5-3v10l-5-3M2 2l20 20" })
2049
2351
  ] }),
2050
- bigCursor: /* @__PURE__ */ jsx6("path", { d: "m5 3 14 11-7 1-3 6Z" }),
2352
+ bigCursor: /* @__PURE__ */ jsx7("path", { d: "m5 3 14 11-7 1-3 6Z" }),
2051
2353
  readingMask: /* @__PURE__ */ jsxs5(Fragment, { children: [
2052
- /* @__PURE__ */ jsx6("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
2053
- /* @__PURE__ */ jsx6("path", { d: "M3 9h18M3 15h18" }),
2054
- /* @__PURE__ */ jsx6("path", { d: "M6 12h12" })
2354
+ /* @__PURE__ */ jsx7("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
2355
+ /* @__PURE__ */ jsx7("path", { d: "M3 9h18M3 15h18" }),
2356
+ /* @__PURE__ */ jsx7("path", { d: "M6 12h12" })
2055
2357
  ] }),
2056
2358
  readingGuide: /* @__PURE__ */ jsxs5(Fragment, { children: [
2057
- /* @__PURE__ */ jsx6("path", { d: "M3 5h18M3 10h12M3 19h18" }),
2058
- /* @__PURE__ */ jsx6("path", { d: "M2 15h20", strokeWidth: "3" })
2359
+ /* @__PURE__ */ jsx7("path", { d: "M3 5h18M3 10h12M3 19h18" }),
2360
+ /* @__PURE__ */ jsx7("path", { d: "M2 15h20", strokeWidth: "3" })
2059
2361
  ] }),
2060
- reset: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M3 10a9 9 0 1 1 1 7M3 4v6h6" }) })
2362
+ reset: /* @__PURE__ */ jsx7(Fragment, { children: /* @__PURE__ */ jsx7("path", { d: "M3 10a9 9 0 1 1 1 7M3 4v6h6" }) })
2061
2363
  };
2062
2364
  function FeatureIcon({ name }) {
2063
- return /* @__PURE__ */ jsx6(
2365
+ return /* @__PURE__ */ jsx7(
2064
2366
  "svg",
2065
2367
  {
2066
2368
  className: "arap-icon",
@@ -2078,7 +2380,7 @@ function FeatureIcon({ name }) {
2078
2380
  }
2079
2381
 
2080
2382
  // src/features/FontSizeController.tsx
2081
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
2383
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
2082
2384
  var FEATURE_KEY = "fontSize";
2083
2385
  var DEFAULT_VALUE = 100;
2084
2386
  var MIN = 50;
@@ -2130,11 +2432,11 @@ function FontSizeController({
2130
2432
  "aria-label": "Font Size",
2131
2433
  children: [
2132
2434
  /* @__PURE__ */ jsxs6("span", { className: "arap-label", children: [
2133
- /* @__PURE__ */ jsx7(FeatureIcon, { name: FEATURE_KEY }),
2134
- /* @__PURE__ */ jsx7("span", { children: "Font Size" })
2435
+ /* @__PURE__ */ jsx8(FeatureIcon, { name: FEATURE_KEY }),
2436
+ /* @__PURE__ */ jsx8("span", { children: "Font Size" })
2135
2437
  ] }),
2136
2438
  /* @__PURE__ */ jsxs6("div", { className: "arap-controls", children: [
2137
- /* @__PURE__ */ jsx7(
2439
+ /* @__PURE__ */ jsx8(
2138
2440
  "button",
2139
2441
  {
2140
2442
  className: "arap-btn-sm",
@@ -2149,7 +2451,7 @@ function FontSizeController({
2149
2451
  Math.round(value),
2150
2452
  "%"
2151
2453
  ] }),
2152
- /* @__PURE__ */ jsx7(
2454
+ /* @__PURE__ */ jsx8(
2153
2455
  "button",
2154
2456
  {
2155
2457
  className: "arap-btn-sm",
@@ -2167,7 +2469,7 @@ function FontSizeController({
2167
2469
  }
2168
2470
 
2169
2471
  // src/features/TextScaleController.tsx
2170
- import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
2472
+ import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
2171
2473
  var FEATURE_KEY2 = "fontScale";
2172
2474
  var DEFAULT_VALUE2 = 1;
2173
2475
  function TextScaleController({
@@ -2206,11 +2508,11 @@ function TextScaleController({
2206
2508
  "aria-label": label,
2207
2509
  children: [
2208
2510
  /* @__PURE__ */ jsxs7("span", { className: "arap-label", children: [
2209
- /* @__PURE__ */ jsx8(FeatureIcon, { name: "fontSize" }),
2210
- /* @__PURE__ */ jsx8("span", { children: label })
2511
+ /* @__PURE__ */ jsx9(FeatureIcon, { name: "fontSize" }),
2512
+ /* @__PURE__ */ jsx9("span", { children: label })
2211
2513
  ] }),
2212
2514
  /* @__PURE__ */ jsxs7("div", { className: "arap-controls", children: [
2213
- /* @__PURE__ */ jsx8(
2515
+ /* @__PURE__ */ jsx9(
2214
2516
  "button",
2215
2517
  {
2216
2518
  className: "arap-btn-sm",
@@ -2225,7 +2527,7 @@ function TextScaleController({
2225
2527
  percentage,
2226
2528
  "%"
2227
2529
  ] }),
2228
- /* @__PURE__ */ jsx8(
2530
+ /* @__PURE__ */ jsx9(
2229
2531
  "button",
2230
2532
  {
2231
2533
  className: "arap-btn-sm",
@@ -2243,7 +2545,7 @@ function TextScaleController({
2243
2545
  }
2244
2546
 
2245
2547
  // src/features/LineHeightController.tsx
2246
- import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
2548
+ import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
2247
2549
  var FEATURE_KEY3 = "lineHeight";
2248
2550
  var DEFAULT_VALUE3 = 100;
2249
2551
  var MIN2 = 50;
@@ -2295,11 +2597,11 @@ function LineHeightController({
2295
2597
  "aria-label": "Line Height",
2296
2598
  children: [
2297
2599
  /* @__PURE__ */ jsxs8("span", { className: "arap-label", children: [
2298
- /* @__PURE__ */ jsx9(FeatureIcon, { name: FEATURE_KEY3 }),
2299
- /* @__PURE__ */ jsx9("span", { children: "Line Height" })
2600
+ /* @__PURE__ */ jsx10(FeatureIcon, { name: FEATURE_KEY3 }),
2601
+ /* @__PURE__ */ jsx10("span", { children: "Line Height" })
2300
2602
  ] }),
2301
2603
  /* @__PURE__ */ jsxs8("div", { className: "arap-controls", children: [
2302
- /* @__PURE__ */ jsx9(
2604
+ /* @__PURE__ */ jsx10(
2303
2605
  "button",
2304
2606
  {
2305
2607
  className: "arap-btn-sm",
@@ -2314,7 +2616,7 @@ function LineHeightController({
2314
2616
  Math.round(normalizedValue),
2315
2617
  "%"
2316
2618
  ] }),
2317
- /* @__PURE__ */ jsx9(
2619
+ /* @__PURE__ */ jsx10(
2318
2620
  "button",
2319
2621
  {
2320
2622
  className: "arap-btn-sm",
@@ -2332,7 +2634,7 @@ function LineHeightController({
2332
2634
  }
2333
2635
 
2334
2636
  // src/features/LetterSpacingController.tsx
2335
- import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
2637
+ import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
2336
2638
  var FEATURE_KEY4 = "letterSpacing";
2337
2639
  var DEFAULT_VALUE4 = 0;
2338
2640
  var MIN3 = 0;
@@ -2384,11 +2686,11 @@ function LetterSpacingController({
2384
2686
  "aria-label": "Letter Spacing",
2385
2687
  children: [
2386
2688
  /* @__PURE__ */ jsxs9("span", { className: "arap-label", children: [
2387
- /* @__PURE__ */ jsx10(FeatureIcon, { name: FEATURE_KEY4 }),
2388
- /* @__PURE__ */ jsx10("span", { children: "Letter Spacing" })
2689
+ /* @__PURE__ */ jsx11(FeatureIcon, { name: FEATURE_KEY4 }),
2690
+ /* @__PURE__ */ jsx11("span", { children: "Letter Spacing" })
2389
2691
  ] }),
2390
2692
  /* @__PURE__ */ jsxs9("div", { className: "arap-controls", children: [
2391
- /* @__PURE__ */ jsx10(
2693
+ /* @__PURE__ */ jsx11(
2392
2694
  "button",
2393
2695
  {
2394
2696
  className: "arap-btn-sm",
@@ -2403,7 +2705,7 @@ function LetterSpacingController({
2403
2705
  value,
2404
2706
  "px"
2405
2707
  ] }),
2406
- /* @__PURE__ */ jsx10(
2708
+ /* @__PURE__ */ jsx11(
2407
2709
  "button",
2408
2710
  {
2409
2711
  className: "arap-btn-sm",
@@ -2421,7 +2723,7 @@ function LetterSpacingController({
2421
2723
  }
2422
2724
 
2423
2725
  // src/features/WordSpacingController.tsx
2424
- import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
2726
+ import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
2425
2727
  var FEATURE_KEY5 = "wordSpacing";
2426
2728
  var DEFAULT_VALUE5 = 0;
2427
2729
  var MIN4 = 0;
@@ -2473,11 +2775,11 @@ function WordSpacingController({
2473
2775
  "aria-label": "Word Spacing",
2474
2776
  children: [
2475
2777
  /* @__PURE__ */ jsxs10("span", { className: "arap-label", children: [
2476
- /* @__PURE__ */ jsx11(FeatureIcon, { name: FEATURE_KEY5 }),
2477
- /* @__PURE__ */ jsx11("span", { children: "Word Spacing" })
2778
+ /* @__PURE__ */ jsx12(FeatureIcon, { name: FEATURE_KEY5 }),
2779
+ /* @__PURE__ */ jsx12("span", { children: "Word Spacing" })
2478
2780
  ] }),
2479
2781
  /* @__PURE__ */ jsxs10("div", { className: "arap-controls", children: [
2480
- /* @__PURE__ */ jsx11(
2782
+ /* @__PURE__ */ jsx12(
2481
2783
  "button",
2482
2784
  {
2483
2785
  className: "arap-btn-sm",
@@ -2492,7 +2794,7 @@ function WordSpacingController({
2492
2794
  value,
2493
2795
  "px"
2494
2796
  ] }),
2495
- /* @__PURE__ */ jsx11(
2797
+ /* @__PURE__ */ jsx12(
2496
2798
  "button",
2497
2799
  {
2498
2800
  className: "arap-btn-sm",
@@ -2510,7 +2812,7 @@ function WordSpacingController({
2510
2812
  }
2511
2813
 
2512
2814
  // src/features/ParagraphSpacingController.tsx
2513
- import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
2815
+ import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
2514
2816
  var FEATURE_KEY6 = "paragraphSpacing";
2515
2817
  var DEFAULT_VALUE6 = 0;
2516
2818
  var MIN5 = 0;
@@ -2562,11 +2864,11 @@ function ParagraphSpacingController({
2562
2864
  "aria-label": "Paragraph Spacing",
2563
2865
  children: [
2564
2866
  /* @__PURE__ */ jsxs11("span", { className: "arap-label", children: [
2565
- /* @__PURE__ */ jsx12(FeatureIcon, { name: FEATURE_KEY6 }),
2566
- /* @__PURE__ */ jsx12("span", { children: "Paragraph Spacing" })
2867
+ /* @__PURE__ */ jsx13(FeatureIcon, { name: FEATURE_KEY6 }),
2868
+ /* @__PURE__ */ jsx13("span", { children: "Paragraph Spacing" })
2567
2869
  ] }),
2568
2870
  /* @__PURE__ */ jsxs11("div", { className: "arap-controls", children: [
2569
- /* @__PURE__ */ jsx12(
2871
+ /* @__PURE__ */ jsx13(
2570
2872
  "button",
2571
2873
  {
2572
2874
  className: "arap-btn-sm",
@@ -2581,7 +2883,7 @@ function ParagraphSpacingController({
2581
2883
  value,
2582
2884
  "px"
2583
2885
  ] }),
2584
- /* @__PURE__ */ jsx12(
2886
+ /* @__PURE__ */ jsx13(
2585
2887
  "button",
2586
2888
  {
2587
2889
  className: "arap-btn-sm",
@@ -2599,11 +2901,16 @@ function ParagraphSpacingController({
2599
2901
  }
2600
2902
 
2601
2903
  // src/features/ContrastController.tsx
2602
- import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
2904
+ import { useSyncExternalStore as useSyncExternalStore5 } from "react";
2905
+ import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
2603
2906
  var FEATURE_KEY7 = "contrast";
2604
2907
  var DEFAULT_VALUE7 = 0;
2605
2908
  var LEVELS = [
2606
2909
  { label: "Off", value: 0 },
2910
+ { label: "Light", value: "light" },
2911
+ { label: "Dark", value: "dark" },
2912
+ { label: "High Contrast", value: "high" },
2913
+ { label: "Invert", value: "invert" },
2607
2914
  { label: "Reduced", value: "reduced" },
2608
2915
  { label: "Low", value: 1 },
2609
2916
  { label: "High", value: 2 },
@@ -2617,32 +2924,89 @@ function ContrastController() {
2617
2924
  FEATURE_KEY7,
2618
2925
  DEFAULT_VALUE7
2619
2926
  );
2927
+ const forcedColors = useSyncExternalStore5(
2928
+ subscribeForcedColors,
2929
+ isForcedColorsActive,
2930
+ () => false
2931
+ );
2620
2932
  return /* @__PURE__ */ jsxs12("div", { className: "arap-feature", role: "group", "aria-label": "Contrast", children: [
2621
2933
  /* @__PURE__ */ jsxs12("span", { className: "arap-label", children: [
2622
- /* @__PURE__ */ jsx13(FeatureIcon, { name: FEATURE_KEY7 }),
2623
- /* @__PURE__ */ jsx13("span", { children: "Contrast" })
2934
+ /* @__PURE__ */ jsx14(FeatureIcon, { name: FEATURE_KEY7 }),
2935
+ /* @__PURE__ */ jsx14("span", { children: "Contrast" })
2624
2936
  ] }),
2625
- /* @__PURE__ */ jsx13("div", { className: "arap-segmented", children: LEVELS.map((level) => /* @__PURE__ */ jsxs12(
2626
- "button",
2627
- {
2628
- className: `arap-segment ${value === level.value ? "arap-segment-active" : ""}`,
2629
- onClick: () => setValue(level.value),
2630
- "aria-pressed": value === level.value,
2631
- type: "button",
2632
- children: [
2633
- value === level.value && /* @__PURE__ */ jsx13("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2634
- level.label
2635
- ]
2636
- },
2637
- level.value
2638
- )) })
2937
+ /* @__PURE__ */ jsx14("div", { className: "arap-segmented", children: LEVELS.map((level) => {
2938
+ const isActive = value === level.value || level.value === 0 && (value === "off" || value === "original");
2939
+ return /* @__PURE__ */ jsxs12(
2940
+ "button",
2941
+ {
2942
+ className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
2943
+ onClick: () => setValue(level.value),
2944
+ "aria-pressed": isActive,
2945
+ type: "button",
2946
+ children: [
2947
+ isActive && /* @__PURE__ */ jsx14("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2948
+ level.label
2949
+ ]
2950
+ },
2951
+ String(level.value)
2952
+ );
2953
+ }) }),
2954
+ forcedColors && /* @__PURE__ */ jsx14("div", { className: "arap-notice", role: "status", "aria-live": "polite", children: "Operating system high contrast (forced colors) is active." })
2955
+ ] });
2956
+ }
2957
+
2958
+ // src/features/ContrastModeController.tsx
2959
+ import { useSyncExternalStore as useSyncExternalStore6 } from "react";
2960
+ import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
2961
+ var FEATURE_KEY8 = "contrastMode";
2962
+ var DEFAULT_VALUE8 = "off";
2963
+ var OPTIONS = [
2964
+ { label: "Original", value: "off" },
2965
+ { label: "Light", value: "light" },
2966
+ { label: "Dark", value: "dark" },
2967
+ { label: "High", value: "high" },
2968
+ { label: "Invert", value: "invert" }
2969
+ ];
2970
+ function ContrastModeController() {
2971
+ const { value, setValue } = useAccessibility(
2972
+ FEATURE_KEY8,
2973
+ DEFAULT_VALUE8
2974
+ );
2975
+ const forcedColors = useSyncExternalStore6(
2976
+ subscribeForcedColors,
2977
+ isForcedColorsActive,
2978
+ () => false
2979
+ );
2980
+ return /* @__PURE__ */ jsxs13("div", { className: "arap-feature", role: "group", "aria-label": "Contrast Mode", children: [
2981
+ /* @__PURE__ */ jsxs13("span", { className: "arap-label", children: [
2982
+ /* @__PURE__ */ jsx15(FeatureIcon, { name: FEATURE_KEY8 }),
2983
+ /* @__PURE__ */ jsx15("span", { children: "Contrast Mode" })
2984
+ ] }),
2985
+ /* @__PURE__ */ jsx15("div", { className: "arap-segmented", children: OPTIONS.map((option) => {
2986
+ const isActive = value === option.value || option.value === "off" && (value === "original" || !value);
2987
+ return /* @__PURE__ */ jsxs13(
2988
+ "button",
2989
+ {
2990
+ className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
2991
+ onClick: () => setValue(option.value),
2992
+ "aria-pressed": isActive,
2993
+ type: "button",
2994
+ children: [
2995
+ isActive && /* @__PURE__ */ jsx15("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2996
+ option.label
2997
+ ]
2998
+ },
2999
+ option.value
3000
+ );
3001
+ }) }),
3002
+ forcedColors && /* @__PURE__ */ jsx15("div", { className: "arap-notice", role: "status", "aria-live": "polite", children: "Operating system high contrast (forced colors) is active." })
2639
3003
  ] });
2640
3004
  }
2641
3005
 
2642
3006
  // src/features/SaturationController.tsx
2643
- import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
2644
- var FEATURE_KEY8 = "saturation";
2645
- var DEFAULT_VALUE8 = 0;
3007
+ import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
3008
+ var FEATURE_KEY9 = "saturation";
3009
+ var DEFAULT_VALUE9 = 0;
2646
3010
  var LEVELS2 = [
2647
3011
  { label: "Off", value: 0 },
2648
3012
  { label: "Low", value: 1 },
@@ -2650,15 +3014,15 @@ var LEVELS2 = [
2650
3014
  ];
2651
3015
  function SaturationController() {
2652
3016
  const { value, setValue } = useAccessibility(
2653
- FEATURE_KEY8,
2654
- DEFAULT_VALUE8
3017
+ FEATURE_KEY9,
3018
+ DEFAULT_VALUE9
2655
3019
  );
2656
- return /* @__PURE__ */ jsxs13("div", { className: "arap-feature", role: "group", "aria-label": "Saturation", children: [
2657
- /* @__PURE__ */ jsxs13("span", { className: "arap-label", children: [
2658
- /* @__PURE__ */ jsx14(FeatureIcon, { name: FEATURE_KEY8 }),
2659
- /* @__PURE__ */ jsx14("span", { children: "Saturation" })
3020
+ return /* @__PURE__ */ jsxs14("div", { className: "arap-feature", role: "group", "aria-label": "Saturation", children: [
3021
+ /* @__PURE__ */ jsxs14("span", { className: "arap-label", children: [
3022
+ /* @__PURE__ */ jsx16(FeatureIcon, { name: FEATURE_KEY9 }),
3023
+ /* @__PURE__ */ jsx16("span", { children: "Saturation" })
2660
3024
  ] }),
2661
- /* @__PURE__ */ jsx14("div", { className: "arap-segmented", children: LEVELS2.map((level) => /* @__PURE__ */ jsxs13(
3025
+ /* @__PURE__ */ jsx16("div", { className: "arap-segmented", children: LEVELS2.map((level) => /* @__PURE__ */ jsxs14(
2662
3026
  "button",
2663
3027
  {
2664
3028
  className: `arap-segment ${value === level.value ? "arap-segment-active" : ""}`,
@@ -2666,7 +3030,7 @@ function SaturationController() {
2666
3030
  "aria-pressed": value === level.value,
2667
3031
  type: "button",
2668
3032
  children: [
2669
- value === level.value && /* @__PURE__ */ jsx14("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3033
+ value === level.value && /* @__PURE__ */ jsx16("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2670
3034
  level.label
2671
3035
  ]
2672
3036
  },
@@ -2676,20 +3040,20 @@ function SaturationController() {
2676
3040
  }
2677
3041
 
2678
3042
  // src/features/InvertColorsController.tsx
2679
- import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
2680
- var FEATURE_KEY9 = "invertColors";
2681
- var DEFAULT_VALUE9 = false;
3043
+ import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
3044
+ var FEATURE_KEY10 = "invertColors";
3045
+ var DEFAULT_VALUE10 = false;
2682
3046
  function InvertColorsController() {
2683
3047
  const { value, setValue } = useAccessibility(
2684
- FEATURE_KEY9,
2685
- DEFAULT_VALUE9
3048
+ FEATURE_KEY10,
3049
+ DEFAULT_VALUE10
2686
3050
  );
2687
- return /* @__PURE__ */ jsxs14("div", { className: "arap-feature", role: "group", "aria-label": "Invert Colors", children: [
2688
- /* @__PURE__ */ jsxs14("span", { className: "arap-label", children: [
2689
- /* @__PURE__ */ jsx15(FeatureIcon, { name: FEATURE_KEY9 }),
2690
- /* @__PURE__ */ jsx15("span", { children: "Invert Colors" })
3051
+ return /* @__PURE__ */ jsxs15("div", { className: "arap-feature", role: "group", "aria-label": "Invert Colors", children: [
3052
+ /* @__PURE__ */ jsxs15("span", { className: "arap-label", children: [
3053
+ /* @__PURE__ */ jsx17(FeatureIcon, { name: FEATURE_KEY10 }),
3054
+ /* @__PURE__ */ jsx17("span", { children: "Invert Colors" })
2691
3055
  ] }),
2692
- /* @__PURE__ */ jsx15(
3056
+ /* @__PURE__ */ jsx17(
2693
3057
  "button",
2694
3058
  {
2695
3059
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2697,27 +3061,27 @@ function InvertColorsController() {
2697
3061
  "aria-label": "Invert Colors",
2698
3062
  "aria-pressed": value,
2699
3063
  type: "button",
2700
- children: /* @__PURE__ */ jsx15("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3064
+ children: /* @__PURE__ */ jsx17("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2701
3065
  }
2702
3066
  )
2703
3067
  ] });
2704
3068
  }
2705
3069
 
2706
3070
  // src/features/GrayscaleController.tsx
2707
- import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
2708
- var FEATURE_KEY10 = "grayscale";
2709
- var DEFAULT_VALUE10 = false;
3071
+ import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
3072
+ var FEATURE_KEY11 = "grayscale";
3073
+ var DEFAULT_VALUE11 = false;
2710
3074
  function GrayscaleController() {
2711
3075
  const { value, setValue } = useAccessibility(
2712
- FEATURE_KEY10,
2713
- DEFAULT_VALUE10
3076
+ FEATURE_KEY11,
3077
+ DEFAULT_VALUE11
2714
3078
  );
2715
- return /* @__PURE__ */ jsxs15("div", { className: "arap-feature", role: "group", "aria-label": "Grayscale", children: [
2716
- /* @__PURE__ */ jsxs15("span", { className: "arap-label", children: [
2717
- /* @__PURE__ */ jsx16(FeatureIcon, { name: FEATURE_KEY10 }),
2718
- /* @__PURE__ */ jsx16("span", { children: "Grayscale" })
3079
+ return /* @__PURE__ */ jsxs16("div", { className: "arap-feature", role: "group", "aria-label": "Grayscale", children: [
3080
+ /* @__PURE__ */ jsxs16("span", { className: "arap-label", children: [
3081
+ /* @__PURE__ */ jsx18(FeatureIcon, { name: FEATURE_KEY11 }),
3082
+ /* @__PURE__ */ jsx18("span", { children: "Grayscale" })
2719
3083
  ] }),
2720
- /* @__PURE__ */ jsx16(
3084
+ /* @__PURE__ */ jsx18(
2721
3085
  "button",
2722
3086
  {
2723
3087
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2725,27 +3089,27 @@ function GrayscaleController() {
2725
3089
  "aria-label": "Grayscale",
2726
3090
  "aria-pressed": value,
2727
3091
  type: "button",
2728
- children: /* @__PURE__ */ jsx16("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3092
+ children: /* @__PURE__ */ jsx18("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2729
3093
  }
2730
3094
  )
2731
3095
  ] });
2732
3096
  }
2733
3097
 
2734
3098
  // src/features/LinkHighlightController.tsx
2735
- import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
2736
- var FEATURE_KEY11 = "linkHighlight";
2737
- var DEFAULT_VALUE11 = false;
3099
+ import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
3100
+ var FEATURE_KEY12 = "linkHighlight";
3101
+ var DEFAULT_VALUE12 = false;
2738
3102
  function LinkHighlightController() {
2739
3103
  const { value, setValue } = useAccessibility(
2740
- FEATURE_KEY11,
2741
- DEFAULT_VALUE11
3104
+ FEATURE_KEY12,
3105
+ DEFAULT_VALUE12
2742
3106
  );
2743
- return /* @__PURE__ */ jsxs16("div", { className: "arap-feature", role: "group", "aria-label": "Link Highlight", children: [
2744
- /* @__PURE__ */ jsxs16("span", { className: "arap-label", children: [
2745
- /* @__PURE__ */ jsx17(FeatureIcon, { name: FEATURE_KEY11 }),
2746
- /* @__PURE__ */ jsx17("span", { children: "Link Highlight" })
3107
+ return /* @__PURE__ */ jsxs17("div", { className: "arap-feature", role: "group", "aria-label": "Link Highlight", children: [
3108
+ /* @__PURE__ */ jsxs17("span", { className: "arap-label", children: [
3109
+ /* @__PURE__ */ jsx19(FeatureIcon, { name: FEATURE_KEY12 }),
3110
+ /* @__PURE__ */ jsx19("span", { children: "Link Highlight" })
2747
3111
  ] }),
2748
- /* @__PURE__ */ jsx17(
3112
+ /* @__PURE__ */ jsx19(
2749
3113
  "button",
2750
3114
  {
2751
3115
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2753,10 +3117,10 @@ function LinkHighlightController() {
2753
3117
  "aria-label": "Link Highlight",
2754
3118
  "aria-pressed": !!value,
2755
3119
  type: "button",
2756
- children: /* @__PURE__ */ jsx17("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3120
+ children: /* @__PURE__ */ jsx19("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2757
3121
  }
2758
3122
  ),
2759
- /* @__PURE__ */ jsx17("div", { className: "arap-segmented", children: ["yellow-on-black", "blue-on-yellow", "black-on-white"].map((mode) => /* @__PURE__ */ jsxs16(
3123
+ /* @__PURE__ */ jsx19("div", { className: "arap-segmented", children: ["yellow-on-black", "blue-on-yellow", "black-on-white"].map((mode) => /* @__PURE__ */ jsxs17(
2760
3124
  "button",
2761
3125
  {
2762
3126
  type: "button",
@@ -2764,7 +3128,7 @@ function LinkHighlightController() {
2764
3128
  "aria-pressed": value === mode,
2765
3129
  onClick: () => setValue(mode),
2766
3130
  children: [
2767
- value === mode && /* @__PURE__ */ jsx17("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3131
+ value === mode && /* @__PURE__ */ jsx19("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2768
3132
  mode.split("-").join(" ")
2769
3133
  ]
2770
3134
  },
@@ -2774,21 +3138,21 @@ function LinkHighlightController() {
2774
3138
  }
2775
3139
 
2776
3140
  // src/features/TextAlignController.tsx
2777
- import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
2778
- var FEATURE_KEY12 = "textAlign";
2779
- var DEFAULT_VALUE12 = "default";
2780
- var OPTIONS = ["default", "left", "center", "right", "justify"];
3141
+ import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
3142
+ var FEATURE_KEY13 = "textAlign";
3143
+ var DEFAULT_VALUE13 = "default";
3144
+ var OPTIONS2 = ["default", "left", "center", "right", "justify"];
2781
3145
  function TextAlignController() {
2782
3146
  const { value, setValue } = useAccessibility(
2783
- FEATURE_KEY12,
2784
- DEFAULT_VALUE12
3147
+ FEATURE_KEY13,
3148
+ DEFAULT_VALUE13
2785
3149
  );
2786
- return /* @__PURE__ */ jsxs17("div", { className: "arap-feature", role: "group", "aria-label": "Text Alignment", children: [
2787
- /* @__PURE__ */ jsxs17("span", { className: "arap-label", children: [
2788
- /* @__PURE__ */ jsx18(FeatureIcon, { name: FEATURE_KEY12 }),
2789
- /* @__PURE__ */ jsx18("span", { children: "Text Alignment" })
3150
+ return /* @__PURE__ */ jsxs18("div", { className: "arap-feature", role: "group", "aria-label": "Text Alignment", children: [
3151
+ /* @__PURE__ */ jsxs18("span", { className: "arap-label", children: [
3152
+ /* @__PURE__ */ jsx20(FeatureIcon, { name: FEATURE_KEY13 }),
3153
+ /* @__PURE__ */ jsx20("span", { children: "Text Alignment" })
2790
3154
  ] }),
2791
- /* @__PURE__ */ jsx18("div", { className: "arap-segmented", children: OPTIONS.map((option) => /* @__PURE__ */ jsxs17(
3155
+ /* @__PURE__ */ jsx20("div", { className: "arap-segmented", children: OPTIONS2.map((option) => /* @__PURE__ */ jsxs18(
2792
3156
  "button",
2793
3157
  {
2794
3158
  className: `arap-segment ${value === option ? "arap-segment-active" : ""}`,
@@ -2797,13 +3161,13 @@ function TextAlignController() {
2797
3161
  type: "button",
2798
3162
  style: { textTransform: "capitalize" },
2799
3163
  children: [
2800
- value === option && /* @__PURE__ */ jsx18("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3164
+ value === option && /* @__PURE__ */ jsx20("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2801
3165
  option
2802
3166
  ]
2803
3167
  },
2804
3168
  option
2805
3169
  )) }),
2806
- value === "justify" && /* @__PURE__ */ jsx18(
3170
+ value === "justify" && /* @__PURE__ */ jsx20(
2807
3171
  "div",
2808
3172
  {
2809
3173
  className: "arap-notice arap-notice-warning",
@@ -2816,27 +3180,27 @@ function TextAlignController() {
2816
3180
  }
2817
3181
 
2818
3182
  // src/features/FontFamilyController.tsx
2819
- import { jsx as jsx19, jsxs as jsxs18 } from "react/jsx-runtime";
2820
- var FEATURE_KEY13 = "fontFamily";
2821
- var DEFAULT_VALUE13 = "default";
2822
- var OPTIONS2 = [
3183
+ import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
3184
+ var FEATURE_KEY14 = "fontFamily";
3185
+ var DEFAULT_VALUE14 = "default";
3186
+ var OPTIONS3 = [
2823
3187
  { label: "Default", value: "default" },
2824
3188
  { label: "Legible", value: "legible" },
2825
3189
  { label: "Dyslexia", value: "dyslexia-option" }
2826
3190
  ];
2827
3191
  function FontFamilyController() {
2828
3192
  const { value, setValue } = useAccessibility(
2829
- FEATURE_KEY13,
2830
- DEFAULT_VALUE13
3193
+ FEATURE_KEY14,
3194
+ DEFAULT_VALUE14
2831
3195
  );
2832
- return /* @__PURE__ */ jsxs18("div", { className: "arap-feature", role: "group", "aria-label": "Font Family", children: [
2833
- /* @__PURE__ */ jsxs18("span", { className: "arap-label", children: [
2834
- /* @__PURE__ */ jsx19(FeatureIcon, { name: FEATURE_KEY13 }),
2835
- /* @__PURE__ */ jsx19("span", { children: "Font Family" })
3196
+ return /* @__PURE__ */ jsxs19("div", { className: "arap-feature", role: "group", "aria-label": "Font Family", children: [
3197
+ /* @__PURE__ */ jsxs19("span", { className: "arap-label", children: [
3198
+ /* @__PURE__ */ jsx21(FeatureIcon, { name: FEATURE_KEY14 }),
3199
+ /* @__PURE__ */ jsx21("span", { children: "Font Family" })
2836
3200
  ] }),
2837
- /* @__PURE__ */ jsx19("div", { className: "arap-segmented", children: OPTIONS2.map((option) => {
3201
+ /* @__PURE__ */ jsx21("div", { className: "arap-segmented", children: OPTIONS3.map((option) => {
2838
3202
  const isActive = value === option.value || option.value === "default" && (value === "original" || !value || value === "default");
2839
- return /* @__PURE__ */ jsxs18(
3203
+ return /* @__PURE__ */ jsxs19(
2840
3204
  "button",
2841
3205
  {
2842
3206
  className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
@@ -2844,7 +3208,7 @@ function FontFamilyController() {
2844
3208
  "aria-pressed": isActive,
2845
3209
  type: "button",
2846
3210
  children: [
2847
- isActive && /* @__PURE__ */ jsx19("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3211
+ isActive && /* @__PURE__ */ jsx21("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2848
3212
  option.label
2849
3213
  ]
2850
3214
  },
@@ -2855,20 +3219,20 @@ function FontFamilyController() {
2855
3219
  }
2856
3220
 
2857
3221
  // src/features/HideImagesController.tsx
2858
- import { jsx as jsx20, jsxs as jsxs19 } from "react/jsx-runtime";
2859
- var FEATURE_KEY14 = "hideImages";
2860
- var DEFAULT_VALUE14 = false;
3222
+ import { jsx as jsx22, jsxs as jsxs20 } from "react/jsx-runtime";
3223
+ var FEATURE_KEY15 = "hideImages";
3224
+ var DEFAULT_VALUE15 = false;
2861
3225
  function HideImagesController() {
2862
3226
  const { value, setValue } = useAccessibility(
2863
- FEATURE_KEY14,
2864
- DEFAULT_VALUE14
3227
+ FEATURE_KEY15,
3228
+ DEFAULT_VALUE15
2865
3229
  );
2866
- return /* @__PURE__ */ jsxs19("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
2867
- /* @__PURE__ */ jsxs19("span", { className: "arap-label", children: [
2868
- /* @__PURE__ */ jsx20(FeatureIcon, { name: FEATURE_KEY14 }),
2869
- /* @__PURE__ */ jsx20("span", { children: "Hide Images" })
3230
+ return /* @__PURE__ */ jsxs20("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
3231
+ /* @__PURE__ */ jsxs20("span", { className: "arap-label", children: [
3232
+ /* @__PURE__ */ jsx22(FeatureIcon, { name: FEATURE_KEY15 }),
3233
+ /* @__PURE__ */ jsx22("span", { children: "Hide Images" })
2870
3234
  ] }),
2871
- /* @__PURE__ */ jsx20(
3235
+ /* @__PURE__ */ jsx22(
2872
3236
  "button",
2873
3237
  {
2874
3238
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2876,27 +3240,27 @@ function HideImagesController() {
2876
3240
  "aria-label": "Hide Images",
2877
3241
  "aria-pressed": value,
2878
3242
  type: "button",
2879
- children: /* @__PURE__ */ jsx20("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3243
+ children: /* @__PURE__ */ jsx22("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2880
3244
  }
2881
3245
  )
2882
3246
  ] });
2883
3247
  }
2884
3248
 
2885
3249
  // src/features/HideVideosController.tsx
2886
- import { jsx as jsx21, jsxs as jsxs20 } from "react/jsx-runtime";
2887
- var FEATURE_KEY15 = "hideVideos";
2888
- var DEFAULT_VALUE15 = false;
3250
+ import { jsx as jsx23, jsxs as jsxs21 } from "react/jsx-runtime";
3251
+ var FEATURE_KEY16 = "hideVideos";
3252
+ var DEFAULT_VALUE16 = false;
2889
3253
  function HideVideosController() {
2890
3254
  const { value, setValue } = useAccessibility(
2891
- FEATURE_KEY15,
2892
- DEFAULT_VALUE15
3255
+ FEATURE_KEY16,
3256
+ DEFAULT_VALUE16
2893
3257
  );
2894
- return /* @__PURE__ */ jsxs20("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
2895
- /* @__PURE__ */ jsxs20("span", { className: "arap-label", children: [
2896
- /* @__PURE__ */ jsx21(FeatureIcon, { name: FEATURE_KEY15 }),
2897
- /* @__PURE__ */ jsx21("span", { children: "Hide Videos" })
3258
+ return /* @__PURE__ */ jsxs21("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
3259
+ /* @__PURE__ */ jsxs21("span", { className: "arap-label", children: [
3260
+ /* @__PURE__ */ jsx23(FeatureIcon, { name: FEATURE_KEY16 }),
3261
+ /* @__PURE__ */ jsx23("span", { children: "Hide Videos" })
2898
3262
  ] }),
2899
- /* @__PURE__ */ jsx21(
3263
+ /* @__PURE__ */ jsx23(
2900
3264
  "button",
2901
3265
  {
2902
3266
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2904,27 +3268,27 @@ function HideVideosController() {
2904
3268
  "aria-label": "Hide Videos",
2905
3269
  "aria-pressed": value,
2906
3270
  type: "button",
2907
- children: /* @__PURE__ */ jsx21("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3271
+ children: /* @__PURE__ */ jsx23("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2908
3272
  }
2909
3273
  )
2910
3274
  ] });
2911
3275
  }
2912
3276
 
2913
3277
  // src/features/BigCursorController.tsx
2914
- import { jsx as jsx22, jsxs as jsxs21 } from "react/jsx-runtime";
2915
- var FEATURE_KEY16 = "bigCursor";
2916
- var DEFAULT_VALUE16 = false;
3278
+ import { jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
3279
+ var FEATURE_KEY17 = "bigCursor";
3280
+ var DEFAULT_VALUE17 = false;
2917
3281
  function BigCursorController() {
2918
3282
  const { value, setValue } = useAccessibility(
2919
- FEATURE_KEY16,
2920
- DEFAULT_VALUE16
3283
+ FEATURE_KEY17,
3284
+ DEFAULT_VALUE17
2921
3285
  );
2922
- return /* @__PURE__ */ jsxs21("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
2923
- /* @__PURE__ */ jsxs21("span", { className: "arap-label", children: [
2924
- /* @__PURE__ */ jsx22(FeatureIcon, { name: FEATURE_KEY16 }),
2925
- /* @__PURE__ */ jsx22("span", { children: "Big Cursor" })
3286
+ return /* @__PURE__ */ jsxs22("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
3287
+ /* @__PURE__ */ jsxs22("span", { className: "arap-label", children: [
3288
+ /* @__PURE__ */ jsx24(FeatureIcon, { name: FEATURE_KEY17 }),
3289
+ /* @__PURE__ */ jsx24("span", { children: "Big Cursor" })
2926
3290
  ] }),
2927
- /* @__PURE__ */ jsx22(
3291
+ /* @__PURE__ */ jsx24(
2928
3292
  "button",
2929
3293
  {
2930
3294
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2932,27 +3296,27 @@ function BigCursorController() {
2932
3296
  "aria-label": "Big Cursor",
2933
3297
  "aria-pressed": value,
2934
3298
  type: "button",
2935
- children: /* @__PURE__ */ jsx22("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3299
+ children: /* @__PURE__ */ jsx24("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2936
3300
  }
2937
3301
  )
2938
3302
  ] });
2939
3303
  }
2940
3304
 
2941
3305
  // src/features/ReadingMaskController.tsx
2942
- import { jsx as jsx23, jsxs as jsxs22 } from "react/jsx-runtime";
2943
- var FEATURE_KEY17 = "readingMask";
2944
- var DEFAULT_VALUE17 = false;
3306
+ import { jsx as jsx25, jsxs as jsxs23 } from "react/jsx-runtime";
3307
+ var FEATURE_KEY18 = "readingMask";
3308
+ var DEFAULT_VALUE18 = false;
2945
3309
  function ReadingMaskController() {
2946
3310
  const { value, setValue } = useAccessibility(
2947
- FEATURE_KEY17,
2948
- DEFAULT_VALUE17
3311
+ FEATURE_KEY18,
3312
+ DEFAULT_VALUE18
2949
3313
  );
2950
- return /* @__PURE__ */ jsxs22("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
2951
- /* @__PURE__ */ jsxs22("span", { className: "arap-label", children: [
2952
- /* @__PURE__ */ jsx23(FeatureIcon, { name: FEATURE_KEY17 }),
2953
- /* @__PURE__ */ jsx23("span", { children: "Reading Mask" })
3314
+ return /* @__PURE__ */ jsxs23("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
3315
+ /* @__PURE__ */ jsxs23("span", { className: "arap-label", children: [
3316
+ /* @__PURE__ */ jsx25(FeatureIcon, { name: FEATURE_KEY18 }),
3317
+ /* @__PURE__ */ jsx25("span", { children: "Reading Mask" })
2954
3318
  ] }),
2955
- /* @__PURE__ */ jsx23(
3319
+ /* @__PURE__ */ jsx25(
2956
3320
  "button",
2957
3321
  {
2958
3322
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2960,27 +3324,27 @@ function ReadingMaskController() {
2960
3324
  "aria-label": "Reading Mask",
2961
3325
  "aria-pressed": value,
2962
3326
  type: "button",
2963
- children: /* @__PURE__ */ jsx23("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3327
+ children: /* @__PURE__ */ jsx25("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2964
3328
  }
2965
3329
  )
2966
3330
  ] });
2967
3331
  }
2968
3332
 
2969
3333
  // src/features/ReadingGuideController.tsx
2970
- import { jsx as jsx24, jsxs as jsxs23 } from "react/jsx-runtime";
2971
- var FEATURE_KEY18 = "readingGuide";
2972
- var DEFAULT_VALUE18 = false;
3334
+ import { jsx as jsx26, jsxs as jsxs24 } from "react/jsx-runtime";
3335
+ var FEATURE_KEY19 = "readingGuide";
3336
+ var DEFAULT_VALUE19 = false;
2973
3337
  function ReadingGuideController() {
2974
3338
  const { value, setValue } = useAccessibility(
2975
- FEATURE_KEY18,
2976
- DEFAULT_VALUE18
3339
+ FEATURE_KEY19,
3340
+ DEFAULT_VALUE19
2977
3341
  );
2978
- return /* @__PURE__ */ jsxs23("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
2979
- /* @__PURE__ */ jsxs23("span", { className: "arap-label", children: [
2980
- /* @__PURE__ */ jsx24(FeatureIcon, { name: FEATURE_KEY18 }),
2981
- /* @__PURE__ */ jsx24("span", { children: "Reading Guide" })
3342
+ return /* @__PURE__ */ jsxs24("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
3343
+ /* @__PURE__ */ jsxs24("span", { className: "arap-label", children: [
3344
+ /* @__PURE__ */ jsx26(FeatureIcon, { name: FEATURE_KEY19 }),
3345
+ /* @__PURE__ */ jsx26("span", { children: "Reading Guide" })
2982
3346
  ] }),
2983
- /* @__PURE__ */ jsx24(
3347
+ /* @__PURE__ */ jsx26(
2984
3348
  "button",
2985
3349
  {
2986
3350
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2988,35 +3352,64 @@ function ReadingGuideController() {
2988
3352
  "aria-label": "Reading Guide",
2989
3353
  "aria-pressed": value,
2990
3354
  type: "button",
2991
- children: /* @__PURE__ */ jsx24("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3355
+ children: /* @__PURE__ */ jsx26("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2992
3356
  }
2993
3357
  )
2994
3358
  ] });
2995
3359
  }
2996
3360
 
3361
+ // src/features/HighlightFocusController.tsx
3362
+ import { jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
3363
+ var FEATURE_KEY20 = "highlightFocus";
3364
+ var DEFAULT_VALUE20 = false;
3365
+ function HighlightFocusController() {
3366
+ const { value, setValue } = useAccessibility(
3367
+ FEATURE_KEY20,
3368
+ DEFAULT_VALUE20
3369
+ );
3370
+ return /* @__PURE__ */ jsxs25("div", { className: "arap-feature", role: "group", "aria-label": "Highlight Focus", children: [
3371
+ /* @__PURE__ */ jsxs25("span", { className: "arap-label", children: [
3372
+ /* @__PURE__ */ jsx27(FeatureIcon, { name: FEATURE_KEY20 }),
3373
+ /* @__PURE__ */ jsx27("span", { children: "Highlight Focus" })
3374
+ ] }),
3375
+ /* @__PURE__ */ jsx27(
3376
+ "button",
3377
+ {
3378
+ className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
3379
+ onClick: () => setValue(!value),
3380
+ "aria-label": "Highlight Focus",
3381
+ "aria-pressed": Boolean(value),
3382
+ type: "button",
3383
+ children: /* @__PURE__ */ jsx27("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3384
+ }
3385
+ )
3386
+ ] });
3387
+ }
3388
+ var FocusHighlightController = HighlightFocusController;
3389
+
2997
3390
  // src/features/ResetController.tsx
2998
3391
  import { createPortal as createPortal2 } from "react-dom";
2999
- import { useContext as useContext5 } from "react";
3000
- import { jsx as jsx25, jsxs as jsxs24 } from "react/jsx-runtime";
3392
+ import { useContext as useContext6 } from "react";
3393
+ import { jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
3001
3394
  function ResetController() {
3002
- const ctx = useContext5(AccessibilityContext);
3395
+ const ctx = useContext6(AccessibilityContext);
3003
3396
  if (!ctx) {
3004
3397
  throw new Error(
3005
3398
  "ResetController must be used within an <AccessibilityPlugin> provider."
3006
3399
  );
3007
3400
  }
3008
- const actionHost = useContext5(PanelActionsContext);
3401
+ const actionHost = useContext6(PanelActionsContext);
3009
3402
  const { resetAll } = ctx;
3010
3403
  const strings = resolveLocaleStrings(ctx.locale);
3011
- const button = /* @__PURE__ */ jsx25("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ jsxs24("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
3012
- /* @__PURE__ */ jsx25(FeatureIcon, { name: "reset" }),
3404
+ const button = /* @__PURE__ */ jsx28("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ jsxs26("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
3405
+ /* @__PURE__ */ jsx28(FeatureIcon, { name: "reset" }),
3013
3406
  strings.resetAll
3014
3407
  ] }) });
3015
3408
  return actionHost ? createPortal2(button, actionHost) : button;
3016
3409
  }
3017
3410
 
3018
3411
  // src/core/controls/ToggleControl.tsx
3019
- import { jsx as jsx26 } from "react/jsx-runtime";
3412
+ import { jsx as jsx29 } from "react/jsx-runtime";
3020
3413
  function ToggleControl({
3021
3414
  id,
3022
3415
  label,
@@ -3038,12 +3431,12 @@ function ToggleControl({
3038
3431
  onChange(!checked);
3039
3432
  }
3040
3433
  };
3041
- return /* @__PURE__ */ jsx26(
3434
+ return /* @__PURE__ */ jsx29(
3042
3435
  "div",
3043
3436
  {
3044
3437
  className: `arap-toggle-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
3045
3438
  style,
3046
- children: /* @__PURE__ */ jsx26(
3439
+ children: /* @__PURE__ */ jsx29(
3047
3440
  "button",
3048
3441
  {
3049
3442
  id,
@@ -3057,7 +3450,7 @@ function ToggleControl({
3057
3450
  disabled: !isInteractive,
3058
3451
  onClick: handleClick,
3059
3452
  title: unavailableReason || description || toggleLabel,
3060
- children: /* @__PURE__ */ jsx26(
3453
+ children: /* @__PURE__ */ jsx29(
3061
3454
  "span",
3062
3455
  {
3063
3456
  className: "arap-toggle-knob",
@@ -3074,7 +3467,7 @@ function ToggleControl({
3074
3467
 
3075
3468
  // src/core/controls/ChoiceControl.tsx
3076
3469
  import { useCallback as useCallback4, useMemo as useMemo2, useRef as useRef5 } from "react";
3077
- import { jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
3470
+ import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
3078
3471
  function ChoiceControl({
3079
3472
  id,
3080
3473
  label,
@@ -3130,7 +3523,7 @@ function ChoiceControl({
3130
3523
  const renderOptionButton = (opt) => {
3131
3524
  const isSelected = value === opt.value;
3132
3525
  const isOptionDisabled = disabled || Boolean(opt.disabled);
3133
- return /* @__PURE__ */ jsxs25(
3526
+ return /* @__PURE__ */ jsxs27(
3134
3527
  "button",
3135
3528
  {
3136
3529
  type: "button",
@@ -3144,15 +3537,15 @@ function ChoiceControl({
3144
3537
  onClick: () => !isOptionDisabled && onChange(opt.value),
3145
3538
  title: opt.description,
3146
3539
  children: [
3147
- isSelected && /* @__PURE__ */ jsx27("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3148
- /* @__PURE__ */ jsx27("span", { children: opt.label }),
3149
- opt.badge && /* @__PURE__ */ jsx27("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
3540
+ isSelected && /* @__PURE__ */ jsx30("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3541
+ /* @__PURE__ */ jsx30("span", { children: opt.label }),
3542
+ opt.badge && /* @__PURE__ */ jsx30("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
3150
3543
  ]
3151
3544
  },
3152
3545
  String(opt.value)
3153
3546
  );
3154
3547
  };
3155
- return /* @__PURE__ */ jsx27(
3548
+ return /* @__PURE__ */ jsx30(
3156
3549
  "div",
3157
3550
  {
3158
3551
  ref: containerRef,
@@ -3163,15 +3556,15 @@ function ChoiceControl({
3163
3556
  className: `arap-choice-control arap-segmented ${largeControls ? "arap-large-controls" : ""} ${className}`,
3164
3557
  style,
3165
3558
  onKeyDown: handleKeyDown,
3166
- children: groups ? groups.map((group) => /* @__PURE__ */ jsxs25(
3559
+ children: groups ? groups.map((group) => /* @__PURE__ */ jsxs27(
3167
3560
  "div",
3168
3561
  {
3169
3562
  className: "arap-choice-group",
3170
3563
  role: "group",
3171
3564
  "aria-label": group.label,
3172
3565
  children: [
3173
- /* @__PURE__ */ jsx27("span", { className: "arap-choice-group-title", children: group.label }),
3174
- /* @__PURE__ */ jsx27("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
3566
+ /* @__PURE__ */ jsx30("span", { className: "arap-choice-group-title", children: group.label }),
3567
+ /* @__PURE__ */ jsx30("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
3175
3568
  ]
3176
3569
  },
3177
3570
  group.label
@@ -3181,7 +3574,7 @@ function ChoiceControl({
3181
3574
  }
3182
3575
 
3183
3576
  // src/core/controls/StepperControl.tsx
3184
- import { jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
3577
+ import { jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
3185
3578
  function StepperControl({
3186
3579
  id,
3187
3580
  label,
@@ -3211,15 +3604,15 @@ function StepperControl({
3211
3604
  onChange(Math.min(max, Number((value + step).toFixed(2))));
3212
3605
  }
3213
3606
  };
3214
- return /* @__PURE__ */ jsxs26(
3607
+ return /* @__PURE__ */ jsxs28(
3215
3608
  "div",
3216
3609
  {
3217
3610
  id,
3218
3611
  className: `arap-stepper-control-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
3219
3612
  style,
3220
3613
  children: [
3221
- /* @__PURE__ */ jsxs26("div", { className: "arap-controls", children: [
3222
- /* @__PURE__ */ jsx28(
3614
+ /* @__PURE__ */ jsxs28("div", { className: "arap-controls", children: [
3615
+ /* @__PURE__ */ jsx31(
3223
3616
  "button",
3224
3617
  {
3225
3618
  type: "button",
@@ -3230,8 +3623,8 @@ function StepperControl({
3230
3623
  children: "\u2212"
3231
3624
  }
3232
3625
  ),
3233
- /* @__PURE__ */ jsx28("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
3234
- /* @__PURE__ */ jsx28(
3626
+ /* @__PURE__ */ jsx31("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
3627
+ /* @__PURE__ */ jsx31(
3235
3628
  "button",
3236
3629
  {
3237
3630
  type: "button",
@@ -3243,7 +3636,7 @@ function StepperControl({
3243
3636
  }
3244
3637
  )
3245
3638
  ] }),
3246
- showSlider && /* @__PURE__ */ jsx28("div", { className: "arap-slider-container", children: /* @__PURE__ */ jsx28(
3639
+ showSlider && /* @__PURE__ */ jsx31("div", { className: "arap-slider-container", children: /* @__PURE__ */ jsx31(
3247
3640
  "input",
3248
3641
  {
3249
3642
  type: "range",
@@ -3267,7 +3660,7 @@ function StepperControl({
3267
3660
  }
3268
3661
 
3269
3662
  // src/core/controls/FeatureCard.tsx
3270
- import { jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
3663
+ import { jsx as jsx32, jsxs as jsxs29 } from "react/jsx-runtime";
3271
3664
  function FeatureCard({
3272
3665
  id,
3273
3666
  featureKey,
@@ -3286,7 +3679,7 @@ function FeatureCard({
3286
3679
  largeControls = false
3287
3680
  }) {
3288
3681
  const cardTitle = typeof title === "string" ? title : void 0;
3289
- return /* @__PURE__ */ jsxs27(
3682
+ return /* @__PURE__ */ jsxs29(
3290
3683
  "div",
3291
3684
  {
3292
3685
  id,
@@ -3295,27 +3688,27 @@ function FeatureCard({
3295
3688
  className: `arap-feature arap-feature-card ${status !== "idle" ? `arap-feature-${status}` : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
3296
3689
  style,
3297
3690
  children: [
3298
- /* @__PURE__ */ jsxs27("div", { className: "arap-card-header", children: [
3299
- /* @__PURE__ */ jsxs27("span", { className: "arap-label", children: [
3300
- icon ?? (featureKey ? /* @__PURE__ */ jsx29(FeatureIcon, { name: featureKey }) : null),
3301
- /* @__PURE__ */ jsx29("span", { className: "arap-card-title", children: title })
3691
+ /* @__PURE__ */ jsxs29("div", { className: "arap-card-header", children: [
3692
+ /* @__PURE__ */ jsxs29("span", { className: "arap-label", children: [
3693
+ icon ?? (featureKey ? /* @__PURE__ */ jsx32(FeatureIcon, { name: featureKey }) : null),
3694
+ /* @__PURE__ */ jsx32("span", { className: "arap-card-title", children: title })
3302
3695
  ] }),
3303
- statusBadge && /* @__PURE__ */ jsx29("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
3696
+ statusBadge && /* @__PURE__ */ jsx32("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
3304
3697
  ] }),
3305
- description && /* @__PURE__ */ jsx29("p", { className: "arap-card-desc", children: description }),
3306
- status === "error" && errorMessage && /* @__PURE__ */ jsxs27("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
3307
- /* @__PURE__ */ jsx29("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3308
- /* @__PURE__ */ jsx29("span", { children: errorMessage })
3698
+ description && /* @__PURE__ */ jsx32("p", { className: "arap-card-desc", children: description }),
3699
+ status === "error" && errorMessage && /* @__PURE__ */ jsxs29("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
3700
+ /* @__PURE__ */ jsx32("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3701
+ /* @__PURE__ */ jsx32("span", { children: errorMessage })
3309
3702
  ] }),
3310
- status === "unavailable" && unavailableMessage && /* @__PURE__ */ jsxs27("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
3311
- /* @__PURE__ */ jsx29("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
3312
- /* @__PURE__ */ jsx29("span", { children: unavailableMessage })
3703
+ status === "unavailable" && unavailableMessage && /* @__PURE__ */ jsxs29("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
3704
+ /* @__PURE__ */ jsx32("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
3705
+ /* @__PURE__ */ jsx32("span", { children: unavailableMessage })
3313
3706
  ] }),
3314
- status === "permission-required" && permissionMessage && /* @__PURE__ */ jsxs27("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
3315
- /* @__PURE__ */ jsx29("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
3316
- /* @__PURE__ */ jsxs27("div", { className: "arap-permission-content", children: [
3317
- /* @__PURE__ */ jsx29("span", { children: permissionMessage }),
3318
- onRequestPermission && /* @__PURE__ */ jsx29(
3707
+ status === "permission-required" && permissionMessage && /* @__PURE__ */ jsxs29("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
3708
+ /* @__PURE__ */ jsx32("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
3709
+ /* @__PURE__ */ jsxs29("div", { className: "arap-permission-content", children: [
3710
+ /* @__PURE__ */ jsx32("span", { children: permissionMessage }),
3711
+ onRequestPermission && /* @__PURE__ */ jsx32(
3319
3712
  "button",
3320
3713
  {
3321
3714
  type: "button",
@@ -3326,14 +3719,14 @@ function FeatureCard({
3326
3719
  )
3327
3720
  ] })
3328
3721
  ] }),
3329
- /* @__PURE__ */ jsx29("div", { className: "arap-card-content", children })
3722
+ /* @__PURE__ */ jsx32("div", { className: "arap-card-content", children })
3330
3723
  ]
3331
3724
  }
3332
3725
  );
3333
3726
  }
3334
3727
 
3335
3728
  // src/core/controls/FeatureStatusState.tsx
3336
- import { jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
3729
+ import { jsx as jsx33, jsxs as jsxs30 } from "react/jsx-runtime";
3337
3730
  function SearchCount({
3338
3731
  totalCount,
3339
3732
  matchedCount,
@@ -3342,7 +3735,7 @@ function SearchCount({
3342
3735
  style
3343
3736
  }) {
3344
3737
  const text = query ? `Showing ${matchedCount} of ${totalCount} tools matching "${query}"` : `Showing all ${totalCount} tools`;
3345
- return /* @__PURE__ */ jsx30(
3738
+ return /* @__PURE__ */ jsx33(
3346
3739
  "div",
3347
3740
  {
3348
3741
  role: "status",
@@ -3362,17 +3755,17 @@ function EmptyState({
3362
3755
  className = "",
3363
3756
  style
3364
3757
  }) {
3365
- return /* @__PURE__ */ jsxs28(
3758
+ return /* @__PURE__ */ jsxs30(
3366
3759
  "div",
3367
3760
  {
3368
3761
  role: "status",
3369
3762
  className: `arap-empty-state ${className}`,
3370
3763
  style,
3371
3764
  children: [
3372
- /* @__PURE__ */ jsx30("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
3373
- /* @__PURE__ */ jsx30("h3", { className: "arap-empty-title", children: title }),
3374
- /* @__PURE__ */ jsx30("p", { className: "arap-empty-desc", children: description }),
3375
- onAction && /* @__PURE__ */ jsx30("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
3765
+ /* @__PURE__ */ jsx33("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
3766
+ /* @__PURE__ */ jsx33("h3", { className: "arap-empty-title", children: title }),
3767
+ /* @__PURE__ */ jsx33("p", { className: "arap-empty-desc", children: description }),
3768
+ onAction && /* @__PURE__ */ jsx33("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
3376
3769
  ]
3377
3770
  }
3378
3771
  );
@@ -3385,18 +3778,18 @@ function ErrorState({
3385
3778
  className = "",
3386
3779
  style
3387
3780
  }) {
3388
- return /* @__PURE__ */ jsxs28(
3781
+ return /* @__PURE__ */ jsxs30(
3389
3782
  "div",
3390
3783
  {
3391
3784
  role: "alert",
3392
3785
  className: `arap-error-state arap-card-alert arap-card-error ${className}`,
3393
3786
  style,
3394
3787
  children: [
3395
- /* @__PURE__ */ jsx30("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3396
- /* @__PURE__ */ jsxs28("div", { className: "arap-error-content", children: [
3397
- title && /* @__PURE__ */ jsx30("h4", { className: "arap-error-title", children: title }),
3398
- /* @__PURE__ */ jsx30("p", { className: "arap-error-message", children: message }),
3399
- onRetry && /* @__PURE__ */ jsx30("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
3788
+ /* @__PURE__ */ jsx33("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3789
+ /* @__PURE__ */ jsxs30("div", { className: "arap-error-content", children: [
3790
+ title && /* @__PURE__ */ jsx33("h4", { className: "arap-error-title", children: title }),
3791
+ /* @__PURE__ */ jsx33("p", { className: "arap-error-message", children: message }),
3792
+ onRetry && /* @__PURE__ */ jsx33("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
3400
3793
  ] })
3401
3794
  ]
3402
3795
  }
@@ -3404,7 +3797,7 @@ function ErrorState({
3404
3797
  }
3405
3798
 
3406
3799
  // src/core/controls/ProfilePreviewCard.tsx
3407
- import { jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
3800
+ import { jsx as jsx34, jsxs as jsxs31 } from "react/jsx-runtime";
3408
3801
  function ProfilePreviewCard({
3409
3802
  profile,
3410
3803
  isActive,
@@ -3454,7 +3847,7 @@ function ProfilePreviewCard({
3454
3847
  if (val === null || val === void 0) return "Original";
3455
3848
  return String(val);
3456
3849
  };
3457
- return /* @__PURE__ */ jsxs29(
3850
+ return /* @__PURE__ */ jsxs31(
3458
3851
  "div",
3459
3852
  {
3460
3853
  role: "group",
@@ -3462,10 +3855,10 @@ function ProfilePreviewCard({
3462
3855
  className: `arap-profile-card ${isActive ? "arap-profile-card-active" : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
3463
3856
  style,
3464
3857
  children: [
3465
- /* @__PURE__ */ jsxs29("div", { className: "arap-profile-header", children: [
3466
- /* @__PURE__ */ jsxs29("div", { className: "arap-profile-title-row", children: [
3467
- /* @__PURE__ */ jsx31("h4", { className: "arap-profile-title", children: profile.label }),
3468
- isActive && /* @__PURE__ */ jsx31(
3858
+ /* @__PURE__ */ jsxs31("div", { className: "arap-profile-header", children: [
3859
+ /* @__PURE__ */ jsxs31("div", { className: "arap-profile-title-row", children: [
3860
+ /* @__PURE__ */ jsx34("h4", { className: "arap-profile-title", children: profile.label }),
3861
+ isActive && /* @__PURE__ */ jsx34(
3469
3862
  "span",
3470
3863
  {
3471
3864
  className: "arap-profile-active-badge",
@@ -3474,14 +3867,14 @@ function ProfilePreviewCard({
3474
3867
  }
3475
3868
  )
3476
3869
  ] }),
3477
- /* @__PURE__ */ jsx31("p", { className: "arap-profile-desc", children: profile.description })
3870
+ /* @__PURE__ */ jsx34("p", { className: "arap-profile-desc", children: profile.description })
3478
3871
  ] }),
3479
- /* @__PURE__ */ jsxs29("div", { className: "arap-profile-affected", children: [
3480
- /* @__PURE__ */ jsx31("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
3481
- /* @__PURE__ */ jsx31("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
3872
+ /* @__PURE__ */ jsxs31("div", { className: "arap-profile-affected", children: [
3873
+ /* @__PURE__ */ jsx34("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
3874
+ /* @__PURE__ */ jsx34("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
3482
3875
  const val = profile.settings[key];
3483
- return /* @__PURE__ */ jsxs29("span", { className: "arap-profile-chip", children: [
3484
- /* @__PURE__ */ jsxs29("strong", { children: [
3876
+ return /* @__PURE__ */ jsxs31("span", { className: "arap-profile-chip", children: [
3877
+ /* @__PURE__ */ jsxs31("strong", { children: [
3485
3878
  formatKeyName(key),
3486
3879
  ":"
3487
3880
  ] }),
@@ -3490,7 +3883,7 @@ function ProfilePreviewCard({
3490
3883
  ] }, key);
3491
3884
  }) })
3492
3885
  ] }),
3493
- /* @__PURE__ */ jsx31("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ jsx31(
3886
+ /* @__PURE__ */ jsx34("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ jsx34(
3494
3887
  "button",
3495
3888
  {
3496
3889
  type: "button",
@@ -3499,7 +3892,7 @@ function ProfilePreviewCard({
3499
3892
  "aria-label": `Revert ${profile.label} profile`,
3500
3893
  children: "Revert to custom settings"
3501
3894
  }
3502
- ) : /* @__PURE__ */ jsx31(
3895
+ ) : /* @__PURE__ */ jsx34(
3503
3896
  "button",
3504
3897
  {
3505
3898
  type: "button",
@@ -3519,8 +3912,12 @@ export {
3519
3912
  AccessibilityList,
3520
3913
  AccessibilityPlugin,
3521
3914
  BigCursorController,
3915
+ CONTRAST_MODES,
3916
+ CONTRAST_PALETTES,
3917
+ CONTRAST_PROTECTED_SELECTOR,
3522
3918
  ChoiceControl,
3523
3919
  ContrastController,
3920
+ ContrastModeController,
3524
3921
  DEFAULT_PREFERENCES,
3525
3922
  DYSLEXIA_FONT_STACK,
3526
3923
  EmptyState,
@@ -3528,11 +3925,13 @@ export {
3528
3925
  FONT_FAMILY_PRESETS,
3529
3926
  FONT_FAMILY_PROTECTED_SELECTOR,
3530
3927
  FeatureCard,
3928
+ FocusHighlightController,
3531
3929
  FontFamilyController,
3532
3930
  FontSizeController,
3533
3931
  GrayscaleController,
3534
3932
  HideImagesController,
3535
3933
  HideVideosController,
3934
+ HighlightFocusController,
3536
3935
  InvertColorsController,
3537
3936
  LEGIBLE_FONT_STACK,
3538
3937
  LINE_HEIGHT_RATIOS,
@@ -3548,6 +3947,7 @@ export {
3548
3947
  ResetController,
3549
3948
  SaturationController,
3550
3949
  SearchCount,
3950
+ SkipToMainLink,
3551
3951
  StepperControl,
3552
3952
  TEXT_ALIGN_BLOCK_SELECTOR,
3553
3953
  TEXT_SCALE_PROTECTED_SELECTOR,
@@ -3559,7 +3959,10 @@ export {
3559
3959
  WordSpacingController,
3560
3960
  createInitialPreferencesState,
3561
3961
  enLocale,
3962
+ findMainLandmark,
3562
3963
  getScriptSpacingConstraints,
3964
+ isForcedColorsActive,
3965
+ isProtectedFromContrast,
3563
3966
  isProtectedFromFontFamily,
3564
3967
  isProtectedFromTextAlign,
3565
3968
  isProtectedFromTextScale,