accessibility-plugin-react 2.5.0 → 2.7.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');
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');
28
28
 
29
29
  // src/core/AccessibilityPlugin.tsx
30
30
  import {
@@ -244,6 +244,19 @@ var oneOf = (...values) => (v) => values.includes(v);
244
244
  var TEXT_SCALE_STEPS = [1, 1.125, 1.25, 1.5, 2];
245
245
  var LINE_HEIGHT_STEPS = [100, 150, 175, 200];
246
246
  var LINE_HEIGHT_RATIOS = [1, 1.5, 1.75, 2];
247
+ var FONT_FAMILY_PRESETS = [
248
+ "default",
249
+ "legible",
250
+ "dyslexia-option"
251
+ ];
252
+ var CONTRAST_MODES = [
253
+ "off",
254
+ "original",
255
+ "light",
256
+ "dark",
257
+ "high",
258
+ "invert"
259
+ ];
247
260
  var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
248
261
  fontSize: { defaultValue: 100, validate: numberIn(50, 200) },
249
262
  fontScale: { defaultValue: 1, validate: numberIn(0.5, 2) },
@@ -274,17 +287,38 @@ var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
274
287
  1,
275
288
  2,
276
289
  3,
290
+ "off",
291
+ "original",
292
+ "light",
293
+ "dark",
294
+ "high",
295
+ "invert",
277
296
  "reduced",
278
297
  "yellow-on-black",
279
298
  "white-on-black",
280
- "blue-on-yellow"
299
+ "blue-on-yellow",
300
+ "black-on-white"
281
301
  )
282
302
  },
303
+ contrastMode: {
304
+ defaultValue: "off",
305
+ validate: oneOf("off", "original", "light", "dark", "high", "invert")
306
+ },
283
307
  saturation: { defaultValue: 0, validate: oneOf(0, 1, 2) },
284
308
  textAlign: {
285
309
  defaultValue: "default",
286
310
  validate: oneOf("default", "left", "center", "right", "justify")
287
311
  },
312
+ fontFamily: {
313
+ defaultValue: "default",
314
+ validate: oneOf(
315
+ "default",
316
+ "original",
317
+ "legible",
318
+ "dyslexia-option",
319
+ "dyslexia"
320
+ )
321
+ },
288
322
  linkHighlight: {
289
323
  defaultValue: false,
290
324
  validate: oneOf(
@@ -327,22 +361,146 @@ import { useEffect } from "react";
327
361
  var EXCLUDED = "[data-arap-ui], [data-arap-ui] *, script, style, link, meta, noscript, template";
328
362
  var MAX_HOST_ELEMENTS = 4e3;
329
363
  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`;
364
+ function isForcedColorsActive() {
365
+ if (typeof window === "undefined" || !window.matchMedia) return false;
366
+ try {
367
+ return window.matchMedia("(forced-colors: active)").matches;
368
+ } catch {
369
+ return false;
370
+ }
371
+ }
372
+ function subscribeForcedColors(callback) {
373
+ if (typeof window === "undefined" || !window.matchMedia) return () => {
374
+ };
375
+ try {
376
+ const mql = window.matchMedia("(forced-colors: active)");
377
+ mql.addEventListener("change", callback);
378
+ return () => mql.removeEventListener("change", callback);
379
+ } catch {
380
+ return () => {
381
+ };
382
+ }
383
+ }
384
+ var CONTRAST_PALETTES = {
385
+ light: {
386
+ text: "#0f172a",
387
+ background: "#ffffff",
388
+ border: "#94a3b8",
389
+ link: "#0284c7"
390
+ },
391
+ dark: {
392
+ text: "#f8fafc",
393
+ background: "#0f172a",
394
+ border: "#475569",
395
+ link: "#38bdf8"
396
+ },
397
+ high: {
398
+ text: "#ffffff",
399
+ background: "#000000",
400
+ border: "#ffffff",
401
+ link: "#93c5fd"
402
+ },
403
+ "yellow-on-black": {
404
+ text: "#ffff00",
405
+ background: "#000000",
406
+ border: "#ffff00",
407
+ link: "#00ffff"
408
+ },
409
+ "white-on-black": {
410
+ text: "#ffffff",
411
+ background: "#000000",
412
+ border: "#ffffff",
413
+ link: "#ffff00"
414
+ },
415
+ "blue-on-yellow": {
416
+ text: "#005a9c",
417
+ background: "#ffd740",
418
+ border: "#005a9c",
419
+ link: "#002b49"
420
+ },
421
+ "black-on-white": {
422
+ text: "#000000",
423
+ background: "#ffffff",
424
+ border: "#000000",
425
+ link: "#0000ee"
426
+ }
427
+ };
330
428
  var palette = {
331
429
  "yellow-on-black": ["#ffff00", "#000000"],
332
430
  "white-on-black": ["#ffffff", "#000000"],
333
431
  "blue-on-yellow": ["#005a9c", "#ffd740"],
334
- "black-on-white": ["#000000", "#ffffff"]
432
+ "black-on-white": ["#000000", "#ffffff"],
433
+ light: ["#0f172a", "#ffffff"],
434
+ dark: ["#f8fafc", "#0f172a"],
435
+ high: ["#ffffff", "#000000"]
335
436
  };
336
437
  function composeFilter(values) {
438
+ if (isForcedColorsActive()) return "";
337
439
  const contrast = values.contrast === "reduced" ? 0.5 : [1, 1.25, 1.5, 2][Number(values.contrast)] ?? 1;
440
+ const isInvert = Boolean(values.invertColors) || values.contrast === "invert" || values.contrastMode === "invert";
338
441
  return [
339
442
  contrast !== 1 && `contrast(${contrast})`,
340
443
  values.saturation === 1 && "saturate(0.2)",
341
444
  values.saturation === 2 && "saturate(2)",
342
- values.invertColors && "invert(1)",
445
+ isInvert && "invert(1)",
343
446
  values.grayscale && "grayscale(1)"
344
447
  ].filter(Boolean).join(" ");
345
448
  }
449
+ var CONTRAST_PROTECTED_SELECTOR = [
450
+ "img",
451
+ "picture",
452
+ "picture *",
453
+ "video",
454
+ "canvas",
455
+ "svg",
456
+ "svg *",
457
+ "[role='img']",
458
+ "[role='img'] *",
459
+ "[role='graphics-document']",
460
+ "[role='graphics-document'] *",
461
+ "[role='graphics-symbol']",
462
+ "[role='graphics-symbol'] *",
463
+ "[data-icon]",
464
+ "[data-icon] *",
465
+ 'i[class*="icon"]',
466
+ 'span[class*="icon"]',
467
+ 'i[class*="fa-"]',
468
+ 'span[class*="fa-"]',
469
+ 'i[class*="material-symbols"]',
470
+ 'span[class*="material-symbols"]',
471
+ 'i[class*="lucide"]',
472
+ 'span[class*="lucide"]',
473
+ '[aria-invalid="true"]',
474
+ '[aria-invalid="true"] *',
475
+ ":invalid",
476
+ ".is-invalid",
477
+ ".invalid-feedback",
478
+ ":disabled",
479
+ "[aria-disabled='true']",
480
+ "[disabled]",
481
+ "[data-arap-ignore]",
482
+ "[data-arap-ignore] *",
483
+ "[data-arap-exempt]",
484
+ "[data-arap-exempt] *",
485
+ "[data-arap-ui]",
486
+ "[data-arap-ui] *",
487
+ ".arap-root",
488
+ ".arap-root *"
489
+ ].join(", ");
490
+ function isProtectedFromContrast(element) {
491
+ try {
492
+ if (element.matches(EXCLUDED)) return true;
493
+ if (element.matches(CONTRAST_PROTECTED_SELECTOR)) return true;
494
+ if (element.closest(
495
+ "svg, [role='img'], [data-icon], [aria-invalid='true'], :disabled, [aria-disabled='true'], [data-arap-ignore], [data-arap-exempt], [data-arap-ui], .arap-root"
496
+ )) {
497
+ return true;
498
+ }
499
+ } catch {
500
+ return false;
501
+ }
502
+ return false;
503
+ }
346
504
  var TEXT_SCALE_PROTECTED_SELECTOR = [
347
505
  "input",
348
506
  "textarea",
@@ -490,6 +648,108 @@ function isProtectedFromTextSpacing(element) {
490
648
  }
491
649
  return false;
492
650
  }
651
+ var TEXT_ALIGN_BLOCK_SELECTOR = [
652
+ "p",
653
+ "h1",
654
+ "h2",
655
+ "h3",
656
+ "h4",
657
+ "h5",
658
+ "h6",
659
+ "li",
660
+ "blockquote",
661
+ "dt",
662
+ "dd",
663
+ "figcaption",
664
+ '[role="paragraph"]',
665
+ '[role="heading"]'
666
+ ].join(", ");
667
+ function isProtectedFromTextAlign(element) {
668
+ try {
669
+ if (element.matches(EXCLUDED)) return true;
670
+ if (element.matches(TEXT_SPACING_EXCLUDED_SELECTOR)) return true;
671
+ if (element.closest(
672
+ "pre, code, kbd, samp, var, button, input, select, textarea, [role='button'], table, [role='table'], [role='grid'], [data-arap-ignore], [data-arap-exempt], [data-arap-ui], .arap-root"
673
+ )) {
674
+ return true;
675
+ }
676
+ } catch {
677
+ return false;
678
+ }
679
+ return false;
680
+ }
681
+ var LEGIBLE_FONT_STACK = [
682
+ "system-ui",
683
+ "-apple-system",
684
+ "BlinkMacSystemFont",
685
+ '"Segoe UI"',
686
+ "Roboto",
687
+ '"Helvetica Neue"',
688
+ "Arial",
689
+ '"Noto Sans Sinhala"',
690
+ '"Iskoola Pota"',
691
+ '"Noto Sans Tamil"',
692
+ '"Latha"',
693
+ '"Nirmala UI"',
694
+ "sans-serif"
695
+ ].join(", ");
696
+ var DYSLEXIA_FONT_STACK = [
697
+ "OpenDyslexic",
698
+ '"Comic Sans MS"',
699
+ '"Trebuchet MS"',
700
+ '"Arial Rounded MT Bold"',
701
+ '"Noto Sans Sinhala"',
702
+ '"Iskoola Pota"',
703
+ '"Noto Sans Tamil"',
704
+ '"Latha"',
705
+ "sans-serif"
706
+ ].join(", ");
707
+ var FONT_FAMILY_PROTECTED_SELECTOR = [
708
+ "pre",
709
+ "pre *",
710
+ "code",
711
+ "code *",
712
+ "kbd",
713
+ "kbd *",
714
+ "samp",
715
+ "samp *",
716
+ "var",
717
+ "var *",
718
+ "svg",
719
+ "svg *",
720
+ "[data-icon]",
721
+ "[data-icon] *",
722
+ 'i[class*="icon"]',
723
+ 'span[class*="icon"]',
724
+ 'i[class*="fa-"]',
725
+ 'span[class*="fa-"]',
726
+ 'i[class*="material-symbols"]',
727
+ 'span[class*="material-symbols"]',
728
+ 'i[class*="lucide"]',
729
+ 'span[class*="lucide"]',
730
+ "[data-arap-ignore]",
731
+ "[data-arap-ignore] *",
732
+ "[data-arap-exempt]",
733
+ "[data-arap-exempt] *",
734
+ "[data-arap-ui]",
735
+ "[data-arap-ui] *",
736
+ ".arap-root",
737
+ ".arap-root *"
738
+ ].join(", ");
739
+ function isProtectedFromFontFamily(element) {
740
+ try {
741
+ if (element.matches(EXCLUDED)) return true;
742
+ if (element.matches(FONT_FAMILY_PROTECTED_SELECTOR)) return true;
743
+ if (element.closest(
744
+ "pre, code, kbd, samp, var, svg, [data-icon], [data-arap-ignore], [data-arap-exempt], [data-arap-ui], .arap-root"
745
+ )) {
746
+ return true;
747
+ }
748
+ } catch {
749
+ return false;
750
+ }
751
+ return false;
752
+ }
493
753
  var ARABIC_SCRIPT_REGEX = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/;
494
754
  var INDIC_SCRIPT_REGEX = /[\u0900-\u0DFF]/;
495
755
  var CURSIVE_LANG_REGEX = /^(ar|fa|ur|ug|dv|ps|ku)($|-)/i;
@@ -681,9 +941,68 @@ function applyPage(values) {
681
941
  }
682
942
  }
683
943
  }
944
+ const textAlignVal = values.textAlign ? String(values.textAlign) : "default";
945
+ if (textAlignVal !== "default" && textAlignVal !== "original") {
946
+ for (const el of elements) {
947
+ if (isProtectedFromTextAlign(el)) continue;
948
+ if (el.matches(TEXT_ALIGN_BLOCK_SELECTOR)) {
949
+ set(el, "text-align", textAlignVal);
950
+ }
951
+ }
952
+ }
953
+ const fontFamilyVal = values.fontFamily ? String(values.fontFamily) : "default";
954
+ if (fontFamilyVal !== "default" && fontFamilyVal !== "original") {
955
+ const targetStack = fontFamilyVal === "dyslexia-option" || fontFamilyVal === "dyslexia" ? DYSLEXIA_FONT_STACK : LEGIBLE_FONT_STACK;
956
+ for (const el of elements) {
957
+ if (isProtectedFromFontFamily(el)) {
958
+ if (el.matches("pre, code, kbd, samp, var")) {
959
+ const previous = el.style.getPropertyValue("font-family");
960
+ if (!previous) {
961
+ set(
962
+ el,
963
+ "font-family",
964
+ 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
965
+ );
966
+ }
967
+ }
968
+ continue;
969
+ }
970
+ set(el, "font-family", targetStack);
971
+ }
972
+ }
973
+ const isInvert = Boolean(values.invertColors) || values.contrast === "invert" || values.contrastMode === "invert";
974
+ if (isInvert && !isForcedColorsActive()) {
975
+ const mediaElements = Array.from(
976
+ document.body.querySelectorAll(
977
+ "img, video, canvas, picture, [role='img']"
978
+ )
979
+ ).filter((el) => !el.closest("[data-arap-ui]"));
980
+ for (const mediaEl of mediaElements) {
981
+ set(mediaEl, "filter", "invert(1)");
982
+ }
983
+ }
984
+ 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;
985
+ const activePalette = activeContrastKey && !isForcedColorsActive() ? CONTRAST_PALETTES[activeContrastKey] : null;
986
+ if (activePalette) {
987
+ for (const el of elements) {
988
+ if (isProtectedFromContrast(el)) continue;
989
+ set(el, "color", activePalette.text);
990
+ if (el.matches("a[href]") && activePalette.link) {
991
+ set(el, "color", activePalette.link);
992
+ }
993
+ if (el.matches(
994
+ "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"
995
+ )) {
996
+ set(el, "background-color", activePalette.background);
997
+ }
998
+ if (activePalette.border && el.matches(
999
+ "button, input, select, textarea, [role='button'], fieldset, hr, table, th, td"
1000
+ )) {
1001
+ set(el, "border-color", activePalette.border);
1002
+ }
1003
+ }
1004
+ }
684
1005
  for (const el of elements) {
685
- if (values.textAlign && values.textAlign !== "default")
686
- set(el, "text-align", String(values.textAlign));
687
1006
  if (values.bigCursor) set(el, "cursor", cursor);
688
1007
  if (values.hideImages) {
689
1008
  if (el.matches("img, picture")) set(el, "visibility", "hidden");
@@ -694,7 +1013,7 @@ function applyPage(values) {
694
1013
  ))
695
1014
  set(el, "visibility", "hidden");
696
1015
  const colors = palette[String(values.contrast)];
697
- if (colors) {
1016
+ if (colors && !activePalette && !isForcedColorsActive()) {
698
1017
  set(el, "color", colors[0]);
699
1018
  set(el, "background-color", colors[1]);
700
1019
  }
@@ -1878,6 +2197,10 @@ var drawings = {
1878
2197
  /* @__PURE__ */ jsx6("circle", { cx: "12", cy: "12", r: "9" }),
1879
2198
  /* @__PURE__ */ jsx6("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
1880
2199
  ] }),
2200
+ contrastMode: /* @__PURE__ */ jsxs5(Fragment, { children: [
2201
+ /* @__PURE__ */ jsx6("circle", { cx: "12", cy: "12", r: "9" }),
2202
+ /* @__PURE__ */ jsx6("path", { d: "M12 3a9 9 0 0 1 0 18Z", fill: "currentColor", stroke: "none" })
2203
+ ] }),
1881
2204
  saturation: /* @__PURE__ */ jsxs5(Fragment, { children: [
1882
2205
  /* @__PURE__ */ jsx6("path", { d: "M12 3c-2 4-7 8-7 12a7 7 0 0 0 14 0c0-4-5-8-7-12Z" }),
1883
2206
  /* @__PURE__ */ jsx6("path", { d: "M8 15a4 4 0 0 0 4 4" })
@@ -1893,6 +2216,7 @@ var drawings = {
1893
2216
  ] }),
1894
2217
  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" }) }),
1895
2218
  textAlign: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M3 5h18M3 10h12M3 15h18M3 20h12" }) }),
2219
+ fontFamily: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M4 7V4h16v3M9 20h6M12 4v16" }) }),
1896
2220
  hideImages: /* @__PURE__ */ jsxs5(Fragment, { children: [
1897
2221
  /* @__PURE__ */ jsx6("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
1898
2222
  /* @__PURE__ */ jsx6("circle", { cx: "8", cy: "9", r: "1" }),
@@ -2454,11 +2778,16 @@ function ParagraphSpacingController({
2454
2778
  }
2455
2779
 
2456
2780
  // src/features/ContrastController.tsx
2781
+ import { useSyncExternalStore as useSyncExternalStore4 } from "react";
2457
2782
  import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
2458
2783
  var FEATURE_KEY7 = "contrast";
2459
2784
  var DEFAULT_VALUE7 = 0;
2460
2785
  var LEVELS = [
2461
2786
  { label: "Off", value: 0 },
2787
+ { label: "Light", value: "light" },
2788
+ { label: "Dark", value: "dark" },
2789
+ { label: "High Contrast", value: "high" },
2790
+ { label: "Invert", value: "invert" },
2462
2791
  { label: "Reduced", value: "reduced" },
2463
2792
  { label: "Low", value: 1 },
2464
2793
  { label: "High", value: 2 },
@@ -2472,32 +2801,89 @@ function ContrastController() {
2472
2801
  FEATURE_KEY7,
2473
2802
  DEFAULT_VALUE7
2474
2803
  );
2804
+ const forcedColors = useSyncExternalStore4(
2805
+ subscribeForcedColors,
2806
+ isForcedColorsActive,
2807
+ () => false
2808
+ );
2475
2809
  return /* @__PURE__ */ jsxs12("div", { className: "arap-feature", role: "group", "aria-label": "Contrast", children: [
2476
2810
  /* @__PURE__ */ jsxs12("span", { className: "arap-label", children: [
2477
2811
  /* @__PURE__ */ jsx13(FeatureIcon, { name: FEATURE_KEY7 }),
2478
2812
  /* @__PURE__ */ jsx13("span", { children: "Contrast" })
2479
2813
  ] }),
2480
- /* @__PURE__ */ jsx13("div", { className: "arap-segmented", children: LEVELS.map((level) => /* @__PURE__ */ jsxs12(
2481
- "button",
2482
- {
2483
- className: `arap-segment ${value === level.value ? "arap-segment-active" : ""}`,
2484
- onClick: () => setValue(level.value),
2485
- "aria-pressed": value === level.value,
2486
- type: "button",
2487
- children: [
2488
- value === level.value && /* @__PURE__ */ jsx13("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2489
- level.label
2490
- ]
2491
- },
2492
- level.value
2493
- )) })
2814
+ /* @__PURE__ */ jsx13("div", { className: "arap-segmented", children: LEVELS.map((level) => {
2815
+ const isActive = value === level.value || level.value === 0 && (value === "off" || value === "original");
2816
+ return /* @__PURE__ */ jsxs12(
2817
+ "button",
2818
+ {
2819
+ className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
2820
+ onClick: () => setValue(level.value),
2821
+ "aria-pressed": isActive,
2822
+ type: "button",
2823
+ children: [
2824
+ isActive && /* @__PURE__ */ jsx13("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2825
+ level.label
2826
+ ]
2827
+ },
2828
+ String(level.value)
2829
+ );
2830
+ }) }),
2831
+ forcedColors && /* @__PURE__ */ jsx13("div", { className: "arap-notice", role: "status", "aria-live": "polite", children: "Operating system high contrast (forced colors) is active." })
2494
2832
  ] });
2495
2833
  }
2496
2834
 
2497
- // src/features/SaturationController.tsx
2835
+ // src/features/ContrastModeController.tsx
2836
+ import { useSyncExternalStore as useSyncExternalStore5 } from "react";
2498
2837
  import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
2499
- var FEATURE_KEY8 = "saturation";
2500
- var DEFAULT_VALUE8 = 0;
2838
+ var FEATURE_KEY8 = "contrastMode";
2839
+ var DEFAULT_VALUE8 = "off";
2840
+ var OPTIONS = [
2841
+ { label: "Original", value: "off" },
2842
+ { label: "Light", value: "light" },
2843
+ { label: "Dark", value: "dark" },
2844
+ { label: "High", value: "high" },
2845
+ { label: "Invert", value: "invert" }
2846
+ ];
2847
+ function ContrastModeController() {
2848
+ const { value, setValue } = useAccessibility(
2849
+ FEATURE_KEY8,
2850
+ DEFAULT_VALUE8
2851
+ );
2852
+ const forcedColors = useSyncExternalStore5(
2853
+ subscribeForcedColors,
2854
+ isForcedColorsActive,
2855
+ () => false
2856
+ );
2857
+ return /* @__PURE__ */ jsxs13("div", { className: "arap-feature", role: "group", "aria-label": "Contrast Mode", children: [
2858
+ /* @__PURE__ */ jsxs13("span", { className: "arap-label", children: [
2859
+ /* @__PURE__ */ jsx14(FeatureIcon, { name: FEATURE_KEY8 }),
2860
+ /* @__PURE__ */ jsx14("span", { children: "Contrast Mode" })
2861
+ ] }),
2862
+ /* @__PURE__ */ jsx14("div", { className: "arap-segmented", children: OPTIONS.map((option) => {
2863
+ const isActive = value === option.value || option.value === "off" && (value === "original" || !value);
2864
+ return /* @__PURE__ */ jsxs13(
2865
+ "button",
2866
+ {
2867
+ className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
2868
+ onClick: () => setValue(option.value),
2869
+ "aria-pressed": isActive,
2870
+ type: "button",
2871
+ children: [
2872
+ isActive && /* @__PURE__ */ jsx14("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2873
+ option.label
2874
+ ]
2875
+ },
2876
+ option.value
2877
+ );
2878
+ }) }),
2879
+ forcedColors && /* @__PURE__ */ jsx14("div", { className: "arap-notice", role: "status", "aria-live": "polite", children: "Operating system high contrast (forced colors) is active." })
2880
+ ] });
2881
+ }
2882
+
2883
+ // src/features/SaturationController.tsx
2884
+ import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
2885
+ var FEATURE_KEY9 = "saturation";
2886
+ var DEFAULT_VALUE9 = 0;
2501
2887
  var LEVELS2 = [
2502
2888
  { label: "Off", value: 0 },
2503
2889
  { label: "Low", value: 1 },
@@ -2505,15 +2891,15 @@ var LEVELS2 = [
2505
2891
  ];
2506
2892
  function SaturationController() {
2507
2893
  const { value, setValue } = useAccessibility(
2508
- FEATURE_KEY8,
2509
- DEFAULT_VALUE8
2894
+ FEATURE_KEY9,
2895
+ DEFAULT_VALUE9
2510
2896
  );
2511
- return /* @__PURE__ */ jsxs13("div", { className: "arap-feature", role: "group", "aria-label": "Saturation", children: [
2512
- /* @__PURE__ */ jsxs13("span", { className: "arap-label", children: [
2513
- /* @__PURE__ */ jsx14(FeatureIcon, { name: FEATURE_KEY8 }),
2514
- /* @__PURE__ */ jsx14("span", { children: "Saturation" })
2897
+ return /* @__PURE__ */ jsxs14("div", { className: "arap-feature", role: "group", "aria-label": "Saturation", children: [
2898
+ /* @__PURE__ */ jsxs14("span", { className: "arap-label", children: [
2899
+ /* @__PURE__ */ jsx15(FeatureIcon, { name: FEATURE_KEY9 }),
2900
+ /* @__PURE__ */ jsx15("span", { children: "Saturation" })
2515
2901
  ] }),
2516
- /* @__PURE__ */ jsx14("div", { className: "arap-segmented", children: LEVELS2.map((level) => /* @__PURE__ */ jsxs13(
2902
+ /* @__PURE__ */ jsx15("div", { className: "arap-segmented", children: LEVELS2.map((level) => /* @__PURE__ */ jsxs14(
2517
2903
  "button",
2518
2904
  {
2519
2905
  className: `arap-segment ${value === level.value ? "arap-segment-active" : ""}`,
@@ -2521,7 +2907,7 @@ function SaturationController() {
2521
2907
  "aria-pressed": value === level.value,
2522
2908
  type: "button",
2523
2909
  children: [
2524
- value === level.value && /* @__PURE__ */ jsx14("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2910
+ value === level.value && /* @__PURE__ */ jsx15("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2525
2911
  level.label
2526
2912
  ]
2527
2913
  },
@@ -2531,20 +2917,20 @@ function SaturationController() {
2531
2917
  }
2532
2918
 
2533
2919
  // src/features/InvertColorsController.tsx
2534
- import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
2535
- var FEATURE_KEY9 = "invertColors";
2536
- var DEFAULT_VALUE9 = false;
2920
+ import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
2921
+ var FEATURE_KEY10 = "invertColors";
2922
+ var DEFAULT_VALUE10 = false;
2537
2923
  function InvertColorsController() {
2538
2924
  const { value, setValue } = useAccessibility(
2539
- FEATURE_KEY9,
2540
- DEFAULT_VALUE9
2925
+ FEATURE_KEY10,
2926
+ DEFAULT_VALUE10
2541
2927
  );
2542
- return /* @__PURE__ */ jsxs14("div", { className: "arap-feature", role: "group", "aria-label": "Invert Colors", children: [
2543
- /* @__PURE__ */ jsxs14("span", { className: "arap-label", children: [
2544
- /* @__PURE__ */ jsx15(FeatureIcon, { name: FEATURE_KEY9 }),
2545
- /* @__PURE__ */ jsx15("span", { children: "Invert Colors" })
2928
+ return /* @__PURE__ */ jsxs15("div", { className: "arap-feature", role: "group", "aria-label": "Invert Colors", children: [
2929
+ /* @__PURE__ */ jsxs15("span", { className: "arap-label", children: [
2930
+ /* @__PURE__ */ jsx16(FeatureIcon, { name: FEATURE_KEY10 }),
2931
+ /* @__PURE__ */ jsx16("span", { children: "Invert Colors" })
2546
2932
  ] }),
2547
- /* @__PURE__ */ jsx15(
2933
+ /* @__PURE__ */ jsx16(
2548
2934
  "button",
2549
2935
  {
2550
2936
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2552,27 +2938,27 @@ function InvertColorsController() {
2552
2938
  "aria-label": "Invert Colors",
2553
2939
  "aria-pressed": value,
2554
2940
  type: "button",
2555
- children: /* @__PURE__ */ jsx15("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2941
+ children: /* @__PURE__ */ jsx16("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2556
2942
  }
2557
2943
  )
2558
2944
  ] });
2559
2945
  }
2560
2946
 
2561
2947
  // src/features/GrayscaleController.tsx
2562
- import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
2563
- var FEATURE_KEY10 = "grayscale";
2564
- var DEFAULT_VALUE10 = false;
2948
+ import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
2949
+ var FEATURE_KEY11 = "grayscale";
2950
+ var DEFAULT_VALUE11 = false;
2565
2951
  function GrayscaleController() {
2566
2952
  const { value, setValue } = useAccessibility(
2567
- FEATURE_KEY10,
2568
- DEFAULT_VALUE10
2953
+ FEATURE_KEY11,
2954
+ DEFAULT_VALUE11
2569
2955
  );
2570
- return /* @__PURE__ */ jsxs15("div", { className: "arap-feature", role: "group", "aria-label": "Grayscale", children: [
2571
- /* @__PURE__ */ jsxs15("span", { className: "arap-label", children: [
2572
- /* @__PURE__ */ jsx16(FeatureIcon, { name: FEATURE_KEY10 }),
2573
- /* @__PURE__ */ jsx16("span", { children: "Grayscale" })
2956
+ return /* @__PURE__ */ jsxs16("div", { className: "arap-feature", role: "group", "aria-label": "Grayscale", children: [
2957
+ /* @__PURE__ */ jsxs16("span", { className: "arap-label", children: [
2958
+ /* @__PURE__ */ jsx17(FeatureIcon, { name: FEATURE_KEY11 }),
2959
+ /* @__PURE__ */ jsx17("span", { children: "Grayscale" })
2574
2960
  ] }),
2575
- /* @__PURE__ */ jsx16(
2961
+ /* @__PURE__ */ jsx17(
2576
2962
  "button",
2577
2963
  {
2578
2964
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2580,27 +2966,27 @@ function GrayscaleController() {
2580
2966
  "aria-label": "Grayscale",
2581
2967
  "aria-pressed": value,
2582
2968
  type: "button",
2583
- children: /* @__PURE__ */ jsx16("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2969
+ children: /* @__PURE__ */ jsx17("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2584
2970
  }
2585
2971
  )
2586
2972
  ] });
2587
2973
  }
2588
2974
 
2589
2975
  // src/features/LinkHighlightController.tsx
2590
- import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
2591
- var FEATURE_KEY11 = "linkHighlight";
2592
- var DEFAULT_VALUE11 = false;
2976
+ import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
2977
+ var FEATURE_KEY12 = "linkHighlight";
2978
+ var DEFAULT_VALUE12 = false;
2593
2979
  function LinkHighlightController() {
2594
2980
  const { value, setValue } = useAccessibility(
2595
- FEATURE_KEY11,
2596
- DEFAULT_VALUE11
2981
+ FEATURE_KEY12,
2982
+ DEFAULT_VALUE12
2597
2983
  );
2598
- return /* @__PURE__ */ jsxs16("div", { className: "arap-feature", role: "group", "aria-label": "Link Highlight", children: [
2599
- /* @__PURE__ */ jsxs16("span", { className: "arap-label", children: [
2600
- /* @__PURE__ */ jsx17(FeatureIcon, { name: FEATURE_KEY11 }),
2601
- /* @__PURE__ */ jsx17("span", { children: "Link Highlight" })
2984
+ return /* @__PURE__ */ jsxs17("div", { className: "arap-feature", role: "group", "aria-label": "Link Highlight", children: [
2985
+ /* @__PURE__ */ jsxs17("span", { className: "arap-label", children: [
2986
+ /* @__PURE__ */ jsx18(FeatureIcon, { name: FEATURE_KEY12 }),
2987
+ /* @__PURE__ */ jsx18("span", { children: "Link Highlight" })
2602
2988
  ] }),
2603
- /* @__PURE__ */ jsx17(
2989
+ /* @__PURE__ */ jsx18(
2604
2990
  "button",
2605
2991
  {
2606
2992
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2608,10 +2994,10 @@ function LinkHighlightController() {
2608
2994
  "aria-label": "Link Highlight",
2609
2995
  "aria-pressed": !!value,
2610
2996
  type: "button",
2611
- children: /* @__PURE__ */ jsx17("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2997
+ children: /* @__PURE__ */ jsx18("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2612
2998
  }
2613
2999
  ),
2614
- /* @__PURE__ */ jsx17("div", { className: "arap-segmented", children: ["yellow-on-black", "blue-on-yellow", "black-on-white"].map((mode) => /* @__PURE__ */ jsxs16(
3000
+ /* @__PURE__ */ jsx18("div", { className: "arap-segmented", children: ["yellow-on-black", "blue-on-yellow", "black-on-white"].map((mode) => /* @__PURE__ */ jsxs17(
2615
3001
  "button",
2616
3002
  {
2617
3003
  type: "button",
@@ -2619,7 +3005,7 @@ function LinkHighlightController() {
2619
3005
  "aria-pressed": value === mode,
2620
3006
  onClick: () => setValue(mode),
2621
3007
  children: [
2622
- value === mode && /* @__PURE__ */ jsx17("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3008
+ value === mode && /* @__PURE__ */ jsx18("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2623
3009
  mode.split("-").join(" ")
2624
3010
  ]
2625
3011
  },
@@ -2629,21 +3015,21 @@ function LinkHighlightController() {
2629
3015
  }
2630
3016
 
2631
3017
  // src/features/TextAlignController.tsx
2632
- import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
2633
- var FEATURE_KEY12 = "textAlign";
2634
- var DEFAULT_VALUE12 = "default";
2635
- var OPTIONS = ["default", "left", "center", "right", "justify"];
3018
+ import { jsx as jsx19, jsxs as jsxs18 } from "react/jsx-runtime";
3019
+ var FEATURE_KEY13 = "textAlign";
3020
+ var DEFAULT_VALUE13 = "default";
3021
+ var OPTIONS2 = ["default", "left", "center", "right", "justify"];
2636
3022
  function TextAlignController() {
2637
3023
  const { value, setValue } = useAccessibility(
2638
- FEATURE_KEY12,
2639
- DEFAULT_VALUE12
3024
+ FEATURE_KEY13,
3025
+ DEFAULT_VALUE13
2640
3026
  );
2641
- return /* @__PURE__ */ jsxs17("div", { className: "arap-feature", role: "group", "aria-label": "Text Alignment", children: [
2642
- /* @__PURE__ */ jsxs17("span", { className: "arap-label", children: [
2643
- /* @__PURE__ */ jsx18(FeatureIcon, { name: FEATURE_KEY12 }),
2644
- /* @__PURE__ */ jsx18("span", { children: "Text Alignment" })
3027
+ return /* @__PURE__ */ jsxs18("div", { className: "arap-feature", role: "group", "aria-label": "Text Alignment", children: [
3028
+ /* @__PURE__ */ jsxs18("span", { className: "arap-label", children: [
3029
+ /* @__PURE__ */ jsx19(FeatureIcon, { name: FEATURE_KEY13 }),
3030
+ /* @__PURE__ */ jsx19("span", { children: "Text Alignment" })
2645
3031
  ] }),
2646
- /* @__PURE__ */ jsx18("div", { className: "arap-segmented", children: OPTIONS.map((option) => /* @__PURE__ */ jsxs17(
3032
+ /* @__PURE__ */ jsx19("div", { className: "arap-segmented", children: OPTIONS2.map((option) => /* @__PURE__ */ jsxs18(
2647
3033
  "button",
2648
3034
  {
2649
3035
  className: `arap-segment ${value === option ? "arap-segment-active" : ""}`,
@@ -2652,30 +3038,78 @@ function TextAlignController() {
2652
3038
  type: "button",
2653
3039
  style: { textTransform: "capitalize" },
2654
3040
  children: [
2655
- value === option && /* @__PURE__ */ jsx18("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3041
+ value === option && /* @__PURE__ */ jsx19("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2656
3042
  option
2657
3043
  ]
2658
3044
  },
2659
3045
  option
2660
- )) })
3046
+ )) }),
3047
+ value === "justify" && /* @__PURE__ */ jsx19(
3048
+ "div",
3049
+ {
3050
+ className: "arap-notice arap-notice-warning",
3051
+ role: "note",
3052
+ "aria-live": "polite",
3053
+ children: "Justified text creates uneven word spacing (\u201Crivers of white\u201D) that can impair readability."
3054
+ }
3055
+ )
3056
+ ] });
3057
+ }
3058
+
3059
+ // src/features/FontFamilyController.tsx
3060
+ import { jsx as jsx20, jsxs as jsxs19 } from "react/jsx-runtime";
3061
+ var FEATURE_KEY14 = "fontFamily";
3062
+ var DEFAULT_VALUE14 = "default";
3063
+ var OPTIONS3 = [
3064
+ { label: "Default", value: "default" },
3065
+ { label: "Legible", value: "legible" },
3066
+ { label: "Dyslexia", value: "dyslexia-option" }
3067
+ ];
3068
+ function FontFamilyController() {
3069
+ const { value, setValue } = useAccessibility(
3070
+ FEATURE_KEY14,
3071
+ DEFAULT_VALUE14
3072
+ );
3073
+ return /* @__PURE__ */ jsxs19("div", { className: "arap-feature", role: "group", "aria-label": "Font Family", children: [
3074
+ /* @__PURE__ */ jsxs19("span", { className: "arap-label", children: [
3075
+ /* @__PURE__ */ jsx20(FeatureIcon, { name: FEATURE_KEY14 }),
3076
+ /* @__PURE__ */ jsx20("span", { children: "Font Family" })
3077
+ ] }),
3078
+ /* @__PURE__ */ jsx20("div", { className: "arap-segmented", children: OPTIONS3.map((option) => {
3079
+ const isActive = value === option.value || option.value === "default" && (value === "original" || !value || value === "default");
3080
+ return /* @__PURE__ */ jsxs19(
3081
+ "button",
3082
+ {
3083
+ className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
3084
+ onClick: () => setValue(option.value),
3085
+ "aria-pressed": isActive,
3086
+ type: "button",
3087
+ children: [
3088
+ isActive && /* @__PURE__ */ jsx20("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3089
+ option.label
3090
+ ]
3091
+ },
3092
+ option.value
3093
+ );
3094
+ }) })
2661
3095
  ] });
2662
3096
  }
2663
3097
 
2664
3098
  // src/features/HideImagesController.tsx
2665
- import { jsx as jsx19, jsxs as jsxs18 } from "react/jsx-runtime";
2666
- var FEATURE_KEY13 = "hideImages";
2667
- var DEFAULT_VALUE13 = false;
3099
+ import { jsx as jsx21, jsxs as jsxs20 } from "react/jsx-runtime";
3100
+ var FEATURE_KEY15 = "hideImages";
3101
+ var DEFAULT_VALUE15 = false;
2668
3102
  function HideImagesController() {
2669
3103
  const { value, setValue } = useAccessibility(
2670
- FEATURE_KEY13,
2671
- DEFAULT_VALUE13
3104
+ FEATURE_KEY15,
3105
+ DEFAULT_VALUE15
2672
3106
  );
2673
- return /* @__PURE__ */ jsxs18("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
2674
- /* @__PURE__ */ jsxs18("span", { className: "arap-label", children: [
2675
- /* @__PURE__ */ jsx19(FeatureIcon, { name: FEATURE_KEY13 }),
2676
- /* @__PURE__ */ jsx19("span", { children: "Hide Images" })
3107
+ return /* @__PURE__ */ jsxs20("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
3108
+ /* @__PURE__ */ jsxs20("span", { className: "arap-label", children: [
3109
+ /* @__PURE__ */ jsx21(FeatureIcon, { name: FEATURE_KEY15 }),
3110
+ /* @__PURE__ */ jsx21("span", { children: "Hide Images" })
2677
3111
  ] }),
2678
- /* @__PURE__ */ jsx19(
3112
+ /* @__PURE__ */ jsx21(
2679
3113
  "button",
2680
3114
  {
2681
3115
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2683,27 +3117,27 @@ function HideImagesController() {
2683
3117
  "aria-label": "Hide Images",
2684
3118
  "aria-pressed": value,
2685
3119
  type: "button",
2686
- children: /* @__PURE__ */ jsx19("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3120
+ children: /* @__PURE__ */ jsx21("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2687
3121
  }
2688
3122
  )
2689
3123
  ] });
2690
3124
  }
2691
3125
 
2692
3126
  // src/features/HideVideosController.tsx
2693
- import { jsx as jsx20, jsxs as jsxs19 } from "react/jsx-runtime";
2694
- var FEATURE_KEY14 = "hideVideos";
2695
- var DEFAULT_VALUE14 = false;
3127
+ import { jsx as jsx22, jsxs as jsxs21 } from "react/jsx-runtime";
3128
+ var FEATURE_KEY16 = "hideVideos";
3129
+ var DEFAULT_VALUE16 = false;
2696
3130
  function HideVideosController() {
2697
3131
  const { value, setValue } = useAccessibility(
2698
- FEATURE_KEY14,
2699
- DEFAULT_VALUE14
3132
+ FEATURE_KEY16,
3133
+ DEFAULT_VALUE16
2700
3134
  );
2701
- return /* @__PURE__ */ jsxs19("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
2702
- /* @__PURE__ */ jsxs19("span", { className: "arap-label", children: [
2703
- /* @__PURE__ */ jsx20(FeatureIcon, { name: FEATURE_KEY14 }),
2704
- /* @__PURE__ */ jsx20("span", { children: "Hide Videos" })
3135
+ return /* @__PURE__ */ jsxs21("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
3136
+ /* @__PURE__ */ jsxs21("span", { className: "arap-label", children: [
3137
+ /* @__PURE__ */ jsx22(FeatureIcon, { name: FEATURE_KEY16 }),
3138
+ /* @__PURE__ */ jsx22("span", { children: "Hide Videos" })
2705
3139
  ] }),
2706
- /* @__PURE__ */ jsx20(
3140
+ /* @__PURE__ */ jsx22(
2707
3141
  "button",
2708
3142
  {
2709
3143
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2711,27 +3145,27 @@ function HideVideosController() {
2711
3145
  "aria-label": "Hide Videos",
2712
3146
  "aria-pressed": value,
2713
3147
  type: "button",
2714
- children: /* @__PURE__ */ jsx20("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3148
+ children: /* @__PURE__ */ jsx22("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2715
3149
  }
2716
3150
  )
2717
3151
  ] });
2718
3152
  }
2719
3153
 
2720
3154
  // src/features/BigCursorController.tsx
2721
- import { jsx as jsx21, jsxs as jsxs20 } from "react/jsx-runtime";
2722
- var FEATURE_KEY15 = "bigCursor";
2723
- var DEFAULT_VALUE15 = false;
3155
+ import { jsx as jsx23, jsxs as jsxs22 } from "react/jsx-runtime";
3156
+ var FEATURE_KEY17 = "bigCursor";
3157
+ var DEFAULT_VALUE17 = false;
2724
3158
  function BigCursorController() {
2725
3159
  const { value, setValue } = useAccessibility(
2726
- FEATURE_KEY15,
2727
- DEFAULT_VALUE15
3160
+ FEATURE_KEY17,
3161
+ DEFAULT_VALUE17
2728
3162
  );
2729
- return /* @__PURE__ */ jsxs20("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
2730
- /* @__PURE__ */ jsxs20("span", { className: "arap-label", children: [
2731
- /* @__PURE__ */ jsx21(FeatureIcon, { name: FEATURE_KEY15 }),
2732
- /* @__PURE__ */ jsx21("span", { children: "Big Cursor" })
3163
+ return /* @__PURE__ */ jsxs22("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
3164
+ /* @__PURE__ */ jsxs22("span", { className: "arap-label", children: [
3165
+ /* @__PURE__ */ jsx23(FeatureIcon, { name: FEATURE_KEY17 }),
3166
+ /* @__PURE__ */ jsx23("span", { children: "Big Cursor" })
2733
3167
  ] }),
2734
- /* @__PURE__ */ jsx21(
3168
+ /* @__PURE__ */ jsx23(
2735
3169
  "button",
2736
3170
  {
2737
3171
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2739,27 +3173,27 @@ function BigCursorController() {
2739
3173
  "aria-label": "Big Cursor",
2740
3174
  "aria-pressed": value,
2741
3175
  type: "button",
2742
- children: /* @__PURE__ */ jsx21("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3176
+ children: /* @__PURE__ */ jsx23("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2743
3177
  }
2744
3178
  )
2745
3179
  ] });
2746
3180
  }
2747
3181
 
2748
3182
  // src/features/ReadingMaskController.tsx
2749
- import { jsx as jsx22, jsxs as jsxs21 } from "react/jsx-runtime";
2750
- var FEATURE_KEY16 = "readingMask";
2751
- var DEFAULT_VALUE16 = false;
3183
+ import { jsx as jsx24, jsxs as jsxs23 } from "react/jsx-runtime";
3184
+ var FEATURE_KEY18 = "readingMask";
3185
+ var DEFAULT_VALUE18 = false;
2752
3186
  function ReadingMaskController() {
2753
3187
  const { value, setValue } = useAccessibility(
2754
- FEATURE_KEY16,
2755
- DEFAULT_VALUE16
3188
+ FEATURE_KEY18,
3189
+ DEFAULT_VALUE18
2756
3190
  );
2757
- return /* @__PURE__ */ jsxs21("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
2758
- /* @__PURE__ */ jsxs21("span", { className: "arap-label", children: [
2759
- /* @__PURE__ */ jsx22(FeatureIcon, { name: FEATURE_KEY16 }),
2760
- /* @__PURE__ */ jsx22("span", { children: "Reading Mask" })
3191
+ return /* @__PURE__ */ jsxs23("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
3192
+ /* @__PURE__ */ jsxs23("span", { className: "arap-label", children: [
3193
+ /* @__PURE__ */ jsx24(FeatureIcon, { name: FEATURE_KEY18 }),
3194
+ /* @__PURE__ */ jsx24("span", { children: "Reading Mask" })
2761
3195
  ] }),
2762
- /* @__PURE__ */ jsx22(
3196
+ /* @__PURE__ */ jsx24(
2763
3197
  "button",
2764
3198
  {
2765
3199
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2767,27 +3201,27 @@ function ReadingMaskController() {
2767
3201
  "aria-label": "Reading Mask",
2768
3202
  "aria-pressed": value,
2769
3203
  type: "button",
2770
- children: /* @__PURE__ */ jsx22("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3204
+ children: /* @__PURE__ */ jsx24("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2771
3205
  }
2772
3206
  )
2773
3207
  ] });
2774
3208
  }
2775
3209
 
2776
3210
  // src/features/ReadingGuideController.tsx
2777
- import { jsx as jsx23, jsxs as jsxs22 } from "react/jsx-runtime";
2778
- var FEATURE_KEY17 = "readingGuide";
2779
- var DEFAULT_VALUE17 = false;
3211
+ import { jsx as jsx25, jsxs as jsxs24 } from "react/jsx-runtime";
3212
+ var FEATURE_KEY19 = "readingGuide";
3213
+ var DEFAULT_VALUE19 = false;
2780
3214
  function ReadingGuideController() {
2781
3215
  const { value, setValue } = useAccessibility(
2782
- FEATURE_KEY17,
2783
- DEFAULT_VALUE17
3216
+ FEATURE_KEY19,
3217
+ DEFAULT_VALUE19
2784
3218
  );
2785
- return /* @__PURE__ */ jsxs22("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
2786
- /* @__PURE__ */ jsxs22("span", { className: "arap-label", children: [
2787
- /* @__PURE__ */ jsx23(FeatureIcon, { name: FEATURE_KEY17 }),
2788
- /* @__PURE__ */ jsx23("span", { children: "Reading Guide" })
3219
+ return /* @__PURE__ */ jsxs24("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
3220
+ /* @__PURE__ */ jsxs24("span", { className: "arap-label", children: [
3221
+ /* @__PURE__ */ jsx25(FeatureIcon, { name: FEATURE_KEY19 }),
3222
+ /* @__PURE__ */ jsx25("span", { children: "Reading Guide" })
2789
3223
  ] }),
2790
- /* @__PURE__ */ jsx23(
3224
+ /* @__PURE__ */ jsx25(
2791
3225
  "button",
2792
3226
  {
2793
3227
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
@@ -2795,7 +3229,7 @@ function ReadingGuideController() {
2795
3229
  "aria-label": "Reading Guide",
2796
3230
  "aria-pressed": value,
2797
3231
  type: "button",
2798
- children: /* @__PURE__ */ jsx23("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
3232
+ children: /* @__PURE__ */ jsx25("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2799
3233
  }
2800
3234
  )
2801
3235
  ] });
@@ -2804,7 +3238,7 @@ function ReadingGuideController() {
2804
3238
  // src/features/ResetController.tsx
2805
3239
  import { createPortal as createPortal2 } from "react-dom";
2806
3240
  import { useContext as useContext5 } from "react";
2807
- import { jsx as jsx24, jsxs as jsxs23 } from "react/jsx-runtime";
3241
+ import { jsx as jsx26, jsxs as jsxs25 } from "react/jsx-runtime";
2808
3242
  function ResetController() {
2809
3243
  const ctx = useContext5(AccessibilityContext);
2810
3244
  if (!ctx) {
@@ -2815,15 +3249,15 @@ function ResetController() {
2815
3249
  const actionHost = useContext5(PanelActionsContext);
2816
3250
  const { resetAll } = ctx;
2817
3251
  const strings = resolveLocaleStrings(ctx.locale);
2818
- const button = /* @__PURE__ */ jsx24("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ jsxs23("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
2819
- /* @__PURE__ */ jsx24(FeatureIcon, { name: "reset" }),
3252
+ const button = /* @__PURE__ */ jsx26("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ jsxs25("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
3253
+ /* @__PURE__ */ jsx26(FeatureIcon, { name: "reset" }),
2820
3254
  strings.resetAll
2821
3255
  ] }) });
2822
3256
  return actionHost ? createPortal2(button, actionHost) : button;
2823
3257
  }
2824
3258
 
2825
3259
  // src/core/controls/ToggleControl.tsx
2826
- import { jsx as jsx25 } from "react/jsx-runtime";
3260
+ import { jsx as jsx27 } from "react/jsx-runtime";
2827
3261
  function ToggleControl({
2828
3262
  id,
2829
3263
  label,
@@ -2845,12 +3279,12 @@ function ToggleControl({
2845
3279
  onChange(!checked);
2846
3280
  }
2847
3281
  };
2848
- return /* @__PURE__ */ jsx25(
3282
+ return /* @__PURE__ */ jsx27(
2849
3283
  "div",
2850
3284
  {
2851
3285
  className: `arap-toggle-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
2852
3286
  style,
2853
- children: /* @__PURE__ */ jsx25(
3287
+ children: /* @__PURE__ */ jsx27(
2854
3288
  "button",
2855
3289
  {
2856
3290
  id,
@@ -2864,7 +3298,7 @@ function ToggleControl({
2864
3298
  disabled: !isInteractive,
2865
3299
  onClick: handleClick,
2866
3300
  title: unavailableReason || description || toggleLabel,
2867
- children: /* @__PURE__ */ jsx25(
3301
+ children: /* @__PURE__ */ jsx27(
2868
3302
  "span",
2869
3303
  {
2870
3304
  className: "arap-toggle-knob",
@@ -2881,7 +3315,7 @@ function ToggleControl({
2881
3315
 
2882
3316
  // src/core/controls/ChoiceControl.tsx
2883
3317
  import { useCallback as useCallback4, useMemo as useMemo2, useRef as useRef5 } from "react";
2884
- import { jsx as jsx26, jsxs as jsxs24 } from "react/jsx-runtime";
3318
+ import { jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
2885
3319
  function ChoiceControl({
2886
3320
  id,
2887
3321
  label,
@@ -2937,7 +3371,7 @@ function ChoiceControl({
2937
3371
  const renderOptionButton = (opt) => {
2938
3372
  const isSelected = value === opt.value;
2939
3373
  const isOptionDisabled = disabled || Boolean(opt.disabled);
2940
- return /* @__PURE__ */ jsxs24(
3374
+ return /* @__PURE__ */ jsxs26(
2941
3375
  "button",
2942
3376
  {
2943
3377
  type: "button",
@@ -2951,15 +3385,15 @@ function ChoiceControl({
2951
3385
  onClick: () => !isOptionDisabled && onChange(opt.value),
2952
3386
  title: opt.description,
2953
3387
  children: [
2954
- isSelected && /* @__PURE__ */ jsx26("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2955
- /* @__PURE__ */ jsx26("span", { children: opt.label }),
2956
- opt.badge && /* @__PURE__ */ jsx26("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
3388
+ isSelected && /* @__PURE__ */ jsx28("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3389
+ /* @__PURE__ */ jsx28("span", { children: opt.label }),
3390
+ opt.badge && /* @__PURE__ */ jsx28("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
2957
3391
  ]
2958
3392
  },
2959
3393
  String(opt.value)
2960
3394
  );
2961
3395
  };
2962
- return /* @__PURE__ */ jsx26(
3396
+ return /* @__PURE__ */ jsx28(
2963
3397
  "div",
2964
3398
  {
2965
3399
  ref: containerRef,
@@ -2970,15 +3404,15 @@ function ChoiceControl({
2970
3404
  className: `arap-choice-control arap-segmented ${largeControls ? "arap-large-controls" : ""} ${className}`,
2971
3405
  style,
2972
3406
  onKeyDown: handleKeyDown,
2973
- children: groups ? groups.map((group) => /* @__PURE__ */ jsxs24(
3407
+ children: groups ? groups.map((group) => /* @__PURE__ */ jsxs26(
2974
3408
  "div",
2975
3409
  {
2976
3410
  className: "arap-choice-group",
2977
3411
  role: "group",
2978
3412
  "aria-label": group.label,
2979
3413
  children: [
2980
- /* @__PURE__ */ jsx26("span", { className: "arap-choice-group-title", children: group.label }),
2981
- /* @__PURE__ */ jsx26("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
3414
+ /* @__PURE__ */ jsx28("span", { className: "arap-choice-group-title", children: group.label }),
3415
+ /* @__PURE__ */ jsx28("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
2982
3416
  ]
2983
3417
  },
2984
3418
  group.label
@@ -2988,7 +3422,7 @@ function ChoiceControl({
2988
3422
  }
2989
3423
 
2990
3424
  // src/core/controls/StepperControl.tsx
2991
- import { jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
3425
+ import { jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
2992
3426
  function StepperControl({
2993
3427
  id,
2994
3428
  label,
@@ -3018,15 +3452,15 @@ function StepperControl({
3018
3452
  onChange(Math.min(max, Number((value + step).toFixed(2))));
3019
3453
  }
3020
3454
  };
3021
- return /* @__PURE__ */ jsxs25(
3455
+ return /* @__PURE__ */ jsxs27(
3022
3456
  "div",
3023
3457
  {
3024
3458
  id,
3025
3459
  className: `arap-stepper-control-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
3026
3460
  style,
3027
3461
  children: [
3028
- /* @__PURE__ */ jsxs25("div", { className: "arap-controls", children: [
3029
- /* @__PURE__ */ jsx27(
3462
+ /* @__PURE__ */ jsxs27("div", { className: "arap-controls", children: [
3463
+ /* @__PURE__ */ jsx29(
3030
3464
  "button",
3031
3465
  {
3032
3466
  type: "button",
@@ -3037,8 +3471,8 @@ function StepperControl({
3037
3471
  children: "\u2212"
3038
3472
  }
3039
3473
  ),
3040
- /* @__PURE__ */ jsx27("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
3041
- /* @__PURE__ */ jsx27(
3474
+ /* @__PURE__ */ jsx29("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
3475
+ /* @__PURE__ */ jsx29(
3042
3476
  "button",
3043
3477
  {
3044
3478
  type: "button",
@@ -3050,7 +3484,7 @@ function StepperControl({
3050
3484
  }
3051
3485
  )
3052
3486
  ] }),
3053
- showSlider && /* @__PURE__ */ jsx27("div", { className: "arap-slider-container", children: /* @__PURE__ */ jsx27(
3487
+ showSlider && /* @__PURE__ */ jsx29("div", { className: "arap-slider-container", children: /* @__PURE__ */ jsx29(
3054
3488
  "input",
3055
3489
  {
3056
3490
  type: "range",
@@ -3074,7 +3508,7 @@ function StepperControl({
3074
3508
  }
3075
3509
 
3076
3510
  // src/core/controls/FeatureCard.tsx
3077
- import { jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
3511
+ import { jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
3078
3512
  function FeatureCard({
3079
3513
  id,
3080
3514
  featureKey,
@@ -3093,7 +3527,7 @@ function FeatureCard({
3093
3527
  largeControls = false
3094
3528
  }) {
3095
3529
  const cardTitle = typeof title === "string" ? title : void 0;
3096
- return /* @__PURE__ */ jsxs26(
3530
+ return /* @__PURE__ */ jsxs28(
3097
3531
  "div",
3098
3532
  {
3099
3533
  id,
@@ -3102,27 +3536,27 @@ function FeatureCard({
3102
3536
  className: `arap-feature arap-feature-card ${status !== "idle" ? `arap-feature-${status}` : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
3103
3537
  style,
3104
3538
  children: [
3105
- /* @__PURE__ */ jsxs26("div", { className: "arap-card-header", children: [
3106
- /* @__PURE__ */ jsxs26("span", { className: "arap-label", children: [
3107
- icon ?? (featureKey ? /* @__PURE__ */ jsx28(FeatureIcon, { name: featureKey }) : null),
3108
- /* @__PURE__ */ jsx28("span", { className: "arap-card-title", children: title })
3539
+ /* @__PURE__ */ jsxs28("div", { className: "arap-card-header", children: [
3540
+ /* @__PURE__ */ jsxs28("span", { className: "arap-label", children: [
3541
+ icon ?? (featureKey ? /* @__PURE__ */ jsx30(FeatureIcon, { name: featureKey }) : null),
3542
+ /* @__PURE__ */ jsx30("span", { className: "arap-card-title", children: title })
3109
3543
  ] }),
3110
- statusBadge && /* @__PURE__ */ jsx28("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
3544
+ statusBadge && /* @__PURE__ */ jsx30("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
3111
3545
  ] }),
3112
- description && /* @__PURE__ */ jsx28("p", { className: "arap-card-desc", children: description }),
3113
- status === "error" && errorMessage && /* @__PURE__ */ jsxs26("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
3114
- /* @__PURE__ */ jsx28("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3115
- /* @__PURE__ */ jsx28("span", { children: errorMessage })
3546
+ description && /* @__PURE__ */ jsx30("p", { className: "arap-card-desc", children: description }),
3547
+ status === "error" && errorMessage && /* @__PURE__ */ jsxs28("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
3548
+ /* @__PURE__ */ jsx30("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3549
+ /* @__PURE__ */ jsx30("span", { children: errorMessage })
3116
3550
  ] }),
3117
- status === "unavailable" && unavailableMessage && /* @__PURE__ */ jsxs26("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
3118
- /* @__PURE__ */ jsx28("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
3119
- /* @__PURE__ */ jsx28("span", { children: unavailableMessage })
3551
+ status === "unavailable" && unavailableMessage && /* @__PURE__ */ jsxs28("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
3552
+ /* @__PURE__ */ jsx30("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
3553
+ /* @__PURE__ */ jsx30("span", { children: unavailableMessage })
3120
3554
  ] }),
3121
- status === "permission-required" && permissionMessage && /* @__PURE__ */ jsxs26("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
3122
- /* @__PURE__ */ jsx28("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
3123
- /* @__PURE__ */ jsxs26("div", { className: "arap-permission-content", children: [
3124
- /* @__PURE__ */ jsx28("span", { children: permissionMessage }),
3125
- onRequestPermission && /* @__PURE__ */ jsx28(
3555
+ status === "permission-required" && permissionMessage && /* @__PURE__ */ jsxs28("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
3556
+ /* @__PURE__ */ jsx30("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
3557
+ /* @__PURE__ */ jsxs28("div", { className: "arap-permission-content", children: [
3558
+ /* @__PURE__ */ jsx30("span", { children: permissionMessage }),
3559
+ onRequestPermission && /* @__PURE__ */ jsx30(
3126
3560
  "button",
3127
3561
  {
3128
3562
  type: "button",
@@ -3133,14 +3567,14 @@ function FeatureCard({
3133
3567
  )
3134
3568
  ] })
3135
3569
  ] }),
3136
- /* @__PURE__ */ jsx28("div", { className: "arap-card-content", children })
3570
+ /* @__PURE__ */ jsx30("div", { className: "arap-card-content", children })
3137
3571
  ]
3138
3572
  }
3139
3573
  );
3140
3574
  }
3141
3575
 
3142
3576
  // src/core/controls/FeatureStatusState.tsx
3143
- import { jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
3577
+ import { jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
3144
3578
  function SearchCount({
3145
3579
  totalCount,
3146
3580
  matchedCount,
@@ -3149,7 +3583,7 @@ function SearchCount({
3149
3583
  style
3150
3584
  }) {
3151
3585
  const text = query ? `Showing ${matchedCount} of ${totalCount} tools matching "${query}"` : `Showing all ${totalCount} tools`;
3152
- return /* @__PURE__ */ jsx29(
3586
+ return /* @__PURE__ */ jsx31(
3153
3587
  "div",
3154
3588
  {
3155
3589
  role: "status",
@@ -3169,17 +3603,17 @@ function EmptyState({
3169
3603
  className = "",
3170
3604
  style
3171
3605
  }) {
3172
- return /* @__PURE__ */ jsxs27(
3606
+ return /* @__PURE__ */ jsxs29(
3173
3607
  "div",
3174
3608
  {
3175
3609
  role: "status",
3176
3610
  className: `arap-empty-state ${className}`,
3177
3611
  style,
3178
3612
  children: [
3179
- /* @__PURE__ */ jsx29("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
3180
- /* @__PURE__ */ jsx29("h3", { className: "arap-empty-title", children: title }),
3181
- /* @__PURE__ */ jsx29("p", { className: "arap-empty-desc", children: description }),
3182
- onAction && /* @__PURE__ */ jsx29("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
3613
+ /* @__PURE__ */ jsx31("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
3614
+ /* @__PURE__ */ jsx31("h3", { className: "arap-empty-title", children: title }),
3615
+ /* @__PURE__ */ jsx31("p", { className: "arap-empty-desc", children: description }),
3616
+ onAction && /* @__PURE__ */ jsx31("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
3183
3617
  ]
3184
3618
  }
3185
3619
  );
@@ -3192,18 +3626,18 @@ function ErrorState({
3192
3626
  className = "",
3193
3627
  style
3194
3628
  }) {
3195
- return /* @__PURE__ */ jsxs27(
3629
+ return /* @__PURE__ */ jsxs29(
3196
3630
  "div",
3197
3631
  {
3198
3632
  role: "alert",
3199
3633
  className: `arap-error-state arap-card-alert arap-card-error ${className}`,
3200
3634
  style,
3201
3635
  children: [
3202
- /* @__PURE__ */ jsx29("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3203
- /* @__PURE__ */ jsxs27("div", { className: "arap-error-content", children: [
3204
- title && /* @__PURE__ */ jsx29("h4", { className: "arap-error-title", children: title }),
3205
- /* @__PURE__ */ jsx29("p", { className: "arap-error-message", children: message }),
3206
- onRetry && /* @__PURE__ */ jsx29("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
3636
+ /* @__PURE__ */ jsx31("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3637
+ /* @__PURE__ */ jsxs29("div", { className: "arap-error-content", children: [
3638
+ title && /* @__PURE__ */ jsx31("h4", { className: "arap-error-title", children: title }),
3639
+ /* @__PURE__ */ jsx31("p", { className: "arap-error-message", children: message }),
3640
+ onRetry && /* @__PURE__ */ jsx31("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
3207
3641
  ] })
3208
3642
  ]
3209
3643
  }
@@ -3211,7 +3645,7 @@ function ErrorState({
3211
3645
  }
3212
3646
 
3213
3647
  // src/core/controls/ProfilePreviewCard.tsx
3214
- import { jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
3648
+ import { jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
3215
3649
  function ProfilePreviewCard({
3216
3650
  profile,
3217
3651
  isActive,
@@ -3261,7 +3695,7 @@ function ProfilePreviewCard({
3261
3695
  if (val === null || val === void 0) return "Original";
3262
3696
  return String(val);
3263
3697
  };
3264
- return /* @__PURE__ */ jsxs28(
3698
+ return /* @__PURE__ */ jsxs30(
3265
3699
  "div",
3266
3700
  {
3267
3701
  role: "group",
@@ -3269,10 +3703,10 @@ function ProfilePreviewCard({
3269
3703
  className: `arap-profile-card ${isActive ? "arap-profile-card-active" : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
3270
3704
  style,
3271
3705
  children: [
3272
- /* @__PURE__ */ jsxs28("div", { className: "arap-profile-header", children: [
3273
- /* @__PURE__ */ jsxs28("div", { className: "arap-profile-title-row", children: [
3274
- /* @__PURE__ */ jsx30("h4", { className: "arap-profile-title", children: profile.label }),
3275
- isActive && /* @__PURE__ */ jsx30(
3706
+ /* @__PURE__ */ jsxs30("div", { className: "arap-profile-header", children: [
3707
+ /* @__PURE__ */ jsxs30("div", { className: "arap-profile-title-row", children: [
3708
+ /* @__PURE__ */ jsx32("h4", { className: "arap-profile-title", children: profile.label }),
3709
+ isActive && /* @__PURE__ */ jsx32(
3276
3710
  "span",
3277
3711
  {
3278
3712
  className: "arap-profile-active-badge",
@@ -3281,14 +3715,14 @@ function ProfilePreviewCard({
3281
3715
  }
3282
3716
  )
3283
3717
  ] }),
3284
- /* @__PURE__ */ jsx30("p", { className: "arap-profile-desc", children: profile.description })
3718
+ /* @__PURE__ */ jsx32("p", { className: "arap-profile-desc", children: profile.description })
3285
3719
  ] }),
3286
- /* @__PURE__ */ jsxs28("div", { className: "arap-profile-affected", children: [
3287
- /* @__PURE__ */ jsx30("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
3288
- /* @__PURE__ */ jsx30("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
3720
+ /* @__PURE__ */ jsxs30("div", { className: "arap-profile-affected", children: [
3721
+ /* @__PURE__ */ jsx32("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
3722
+ /* @__PURE__ */ jsx32("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
3289
3723
  const val = profile.settings[key];
3290
- return /* @__PURE__ */ jsxs28("span", { className: "arap-profile-chip", children: [
3291
- /* @__PURE__ */ jsxs28("strong", { children: [
3724
+ return /* @__PURE__ */ jsxs30("span", { className: "arap-profile-chip", children: [
3725
+ /* @__PURE__ */ jsxs30("strong", { children: [
3292
3726
  formatKeyName(key),
3293
3727
  ":"
3294
3728
  ] }),
@@ -3297,7 +3731,7 @@ function ProfilePreviewCard({
3297
3731
  ] }, key);
3298
3732
  }) })
3299
3733
  ] }),
3300
- /* @__PURE__ */ jsx30("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ jsx30(
3734
+ /* @__PURE__ */ jsx32("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ jsx32(
3301
3735
  "button",
3302
3736
  {
3303
3737
  type: "button",
@@ -3306,7 +3740,7 @@ function ProfilePreviewCard({
3306
3740
  "aria-label": `Revert ${profile.label} profile`,
3307
3741
  children: "Revert to custom settings"
3308
3742
  }
3309
- ) : /* @__PURE__ */ jsx30(
3743
+ ) : /* @__PURE__ */ jsx32(
3310
3744
  "button",
3311
3745
  {
3312
3746
  type: "button",
@@ -3326,17 +3760,26 @@ export {
3326
3760
  AccessibilityList,
3327
3761
  AccessibilityPlugin,
3328
3762
  BigCursorController,
3763
+ CONTRAST_MODES,
3764
+ CONTRAST_PALETTES,
3765
+ CONTRAST_PROTECTED_SELECTOR,
3329
3766
  ChoiceControl,
3330
3767
  ContrastController,
3768
+ ContrastModeController,
3331
3769
  DEFAULT_PREFERENCES,
3770
+ DYSLEXIA_FONT_STACK,
3332
3771
  EmptyState,
3333
3772
  ErrorState,
3773
+ FONT_FAMILY_PRESETS,
3774
+ FONT_FAMILY_PROTECTED_SELECTOR,
3334
3775
  FeatureCard,
3776
+ FontFamilyController,
3335
3777
  FontSizeController,
3336
3778
  GrayscaleController,
3337
3779
  HideImagesController,
3338
3780
  HideVideosController,
3339
3781
  InvertColorsController,
3782
+ LEGIBLE_FONT_STACK,
3340
3783
  LINE_HEIGHT_RATIOS,
3341
3784
  LINE_HEIGHT_STEPS,
3342
3785
  LetterSpacingController,
@@ -3351,6 +3794,7 @@ export {
3351
3794
  SaturationController,
3352
3795
  SearchCount,
3353
3796
  StepperControl,
3797
+ TEXT_ALIGN_BLOCK_SELECTOR,
3354
3798
  TEXT_SCALE_PROTECTED_SELECTOR,
3355
3799
  TEXT_SCALE_STEPS,
3356
3800
  TEXT_SPACING_EXCLUDED_SELECTOR,
@@ -3361,6 +3805,10 @@ export {
3361
3805
  createInitialPreferencesState,
3362
3806
  enLocale,
3363
3807
  getScriptSpacingConstraints,
3808
+ isForcedColorsActive,
3809
+ isProtectedFromContrast,
3810
+ isProtectedFromFontFamily,
3811
+ isProtectedFromTextAlign,
3364
3812
  isProtectedFromTextScale,
3365
3813
  isProtectedFromTextSpacing,
3366
3814
  isRtlLocale,