accessibility-plugin-react 2.5.0 → 2.6.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,11 @@ 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
+ ];
247
252
  var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
248
253
  fontSize: { defaultValue: 100, validate: numberIn(50, 200) },
249
254
  fontScale: { defaultValue: 1, validate: numberIn(0.5, 2) },
@@ -285,6 +290,16 @@ var builtins = Object.assign(/* @__PURE__ */ Object.create(null), {
285
290
  defaultValue: "default",
286
291
  validate: oneOf("default", "left", "center", "right", "justify")
287
292
  },
293
+ fontFamily: {
294
+ defaultValue: "default",
295
+ validate: oneOf(
296
+ "default",
297
+ "original",
298
+ "legible",
299
+ "dyslexia-option",
300
+ "dyslexia"
301
+ )
302
+ },
288
303
  linkHighlight: {
289
304
  defaultValue: false,
290
305
  validate: oneOf(
@@ -490,6 +505,108 @@ function isProtectedFromTextSpacing(element) {
490
505
  }
491
506
  return false;
492
507
  }
508
+ var TEXT_ALIGN_BLOCK_SELECTOR = [
509
+ "p",
510
+ "h1",
511
+ "h2",
512
+ "h3",
513
+ "h4",
514
+ "h5",
515
+ "h6",
516
+ "li",
517
+ "blockquote",
518
+ "dt",
519
+ "dd",
520
+ "figcaption",
521
+ '[role="paragraph"]',
522
+ '[role="heading"]'
523
+ ].join(", ");
524
+ function isProtectedFromTextAlign(element) {
525
+ try {
526
+ if (element.matches(EXCLUDED)) return true;
527
+ if (element.matches(TEXT_SPACING_EXCLUDED_SELECTOR)) return true;
528
+ if (element.closest(
529
+ "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"
530
+ )) {
531
+ return true;
532
+ }
533
+ } catch {
534
+ return false;
535
+ }
536
+ return false;
537
+ }
538
+ var LEGIBLE_FONT_STACK = [
539
+ "system-ui",
540
+ "-apple-system",
541
+ "BlinkMacSystemFont",
542
+ '"Segoe UI"',
543
+ "Roboto",
544
+ '"Helvetica Neue"',
545
+ "Arial",
546
+ '"Noto Sans Sinhala"',
547
+ '"Iskoola Pota"',
548
+ '"Noto Sans Tamil"',
549
+ '"Latha"',
550
+ '"Nirmala UI"',
551
+ "sans-serif"
552
+ ].join(", ");
553
+ var DYSLEXIA_FONT_STACK = [
554
+ "OpenDyslexic",
555
+ '"Comic Sans MS"',
556
+ '"Trebuchet MS"',
557
+ '"Arial Rounded MT Bold"',
558
+ '"Noto Sans Sinhala"',
559
+ '"Iskoola Pota"',
560
+ '"Noto Sans Tamil"',
561
+ '"Latha"',
562
+ "sans-serif"
563
+ ].join(", ");
564
+ var FONT_FAMILY_PROTECTED_SELECTOR = [
565
+ "pre",
566
+ "pre *",
567
+ "code",
568
+ "code *",
569
+ "kbd",
570
+ "kbd *",
571
+ "samp",
572
+ "samp *",
573
+ "var",
574
+ "var *",
575
+ "svg",
576
+ "svg *",
577
+ "[data-icon]",
578
+ "[data-icon] *",
579
+ 'i[class*="icon"]',
580
+ 'span[class*="icon"]',
581
+ 'i[class*="fa-"]',
582
+ 'span[class*="fa-"]',
583
+ 'i[class*="material-symbols"]',
584
+ 'span[class*="material-symbols"]',
585
+ 'i[class*="lucide"]',
586
+ 'span[class*="lucide"]',
587
+ "[data-arap-ignore]",
588
+ "[data-arap-ignore] *",
589
+ "[data-arap-exempt]",
590
+ "[data-arap-exempt] *",
591
+ "[data-arap-ui]",
592
+ "[data-arap-ui] *",
593
+ ".arap-root",
594
+ ".arap-root *"
595
+ ].join(", ");
596
+ function isProtectedFromFontFamily(element) {
597
+ try {
598
+ if (element.matches(EXCLUDED)) return true;
599
+ if (element.matches(FONT_FAMILY_PROTECTED_SELECTOR)) return true;
600
+ if (element.closest(
601
+ "pre, code, kbd, samp, var, svg, [data-icon], [data-arap-ignore], [data-arap-exempt], [data-arap-ui], .arap-root"
602
+ )) {
603
+ return true;
604
+ }
605
+ } catch {
606
+ return false;
607
+ }
608
+ return false;
609
+ }
493
610
  var ARABIC_SCRIPT_REGEX = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/;
494
611
  var INDIC_SCRIPT_REGEX = /[\u0900-\u0DFF]/;
495
612
  var CURSIVE_LANG_REGEX = /^(ar|fa|ur|ug|dv|ps|ku)($|-)/i;
@@ -681,9 +798,36 @@ function applyPage(values) {
681
798
  }
682
799
  }
683
800
  }
801
+ const textAlignVal = values.textAlign ? String(values.textAlign) : "default";
802
+ if (textAlignVal !== "default" && textAlignVal !== "original") {
803
+ for (const el of elements) {
804
+ if (isProtectedFromTextAlign(el)) continue;
805
+ if (el.matches(TEXT_ALIGN_BLOCK_SELECTOR)) {
806
+ set(el, "text-align", textAlignVal);
807
+ }
808
+ }
809
+ }
810
+ const fontFamilyVal = values.fontFamily ? String(values.fontFamily) : "default";
811
+ if (fontFamilyVal !== "default" && fontFamilyVal !== "original") {
812
+ const targetStack = fontFamilyVal === "dyslexia-option" || fontFamilyVal === "dyslexia" ? DYSLEXIA_FONT_STACK : LEGIBLE_FONT_STACK;
813
+ for (const el of elements) {
814
+ if (isProtectedFromFontFamily(el)) {
815
+ if (el.matches("pre, code, kbd, samp, var")) {
816
+ const previous = el.style.getPropertyValue("font-family");
817
+ if (!previous) {
818
+ set(
819
+ el,
820
+ "font-family",
821
+ 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
822
+ );
823
+ }
824
+ }
825
+ continue;
826
+ }
827
+ set(el, "font-family", targetStack);
828
+ }
829
+ }
684
830
  for (const el of elements) {
685
- if (values.textAlign && values.textAlign !== "default")
686
- set(el, "text-align", String(values.textAlign));
687
831
  if (values.bigCursor) set(el, "cursor", cursor);
688
832
  if (values.hideImages) {
689
833
  if (el.matches("img, picture")) set(el, "visibility", "hidden");
@@ -1893,6 +2037,7 @@ var drawings = {
1893
2037
  ] }),
1894
2038
  linkHighlight: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "m10 14 4-4M8 16l-1 1a4 4 0 0 1-6-6l4-4a4 4 0 0 1 6 0M16 8l1-1a4 4 0 0 1 6 6l-4 4a4 4 0 0 1-6 0" }) }),
1895
2039
  textAlign: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M3 5h18M3 10h12M3 15h18M3 20h12" }) }),
2040
+ fontFamily: /* @__PURE__ */ jsx6(Fragment, { children: /* @__PURE__ */ jsx6("path", { d: "M4 7V4h16v3M9 20h6M12 4v16" }) }),
1896
2041
  hideImages: /* @__PURE__ */ jsxs5(Fragment, { children: [
1897
2042
  /* @__PURE__ */ jsx6("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
1898
2043
  /* @__PURE__ */ jsx6("circle", { cx: "8", cy: "9", r: "1" }),
@@ -2657,58 +2802,78 @@ function TextAlignController() {
2657
2802
  ]
2658
2803
  },
2659
2804
  option
2660
- )) })
2805
+ )) }),
2806
+ value === "justify" && /* @__PURE__ */ jsx18(
2807
+ "div",
2808
+ {
2809
+ className: "arap-notice arap-notice-warning",
2810
+ role: "note",
2811
+ "aria-live": "polite",
2812
+ children: "Justified text creates uneven word spacing (\u201Crivers of white\u201D) that can impair readability."
2813
+ }
2814
+ )
2661
2815
  ] });
2662
2816
  }
2663
2817
 
2664
- // src/features/HideImagesController.tsx
2818
+ // src/features/FontFamilyController.tsx
2665
2819
  import { jsx as jsx19, jsxs as jsxs18 } from "react/jsx-runtime";
2666
- var FEATURE_KEY13 = "hideImages";
2667
- var DEFAULT_VALUE13 = false;
2668
- function HideImagesController() {
2820
+ var FEATURE_KEY13 = "fontFamily";
2821
+ var DEFAULT_VALUE13 = "default";
2822
+ var OPTIONS2 = [
2823
+ { label: "Default", value: "default" },
2824
+ { label: "Legible", value: "legible" },
2825
+ { label: "Dyslexia", value: "dyslexia-option" }
2826
+ ];
2827
+ function FontFamilyController() {
2669
2828
  const { value, setValue } = useAccessibility(
2670
2829
  FEATURE_KEY13,
2671
2830
  DEFAULT_VALUE13
2672
2831
  );
2673
- return /* @__PURE__ */ jsxs18("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
2832
+ return /* @__PURE__ */ jsxs18("div", { className: "arap-feature", role: "group", "aria-label": "Font Family", children: [
2674
2833
  /* @__PURE__ */ jsxs18("span", { className: "arap-label", children: [
2675
2834
  /* @__PURE__ */ jsx19(FeatureIcon, { name: FEATURE_KEY13 }),
2676
- /* @__PURE__ */ jsx19("span", { children: "Hide Images" })
2835
+ /* @__PURE__ */ jsx19("span", { children: "Font Family" })
2677
2836
  ] }),
2678
- /* @__PURE__ */ jsx19(
2679
- "button",
2680
- {
2681
- className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
2682
- onClick: () => setValue(!value),
2683
- "aria-label": "Hide Images",
2684
- "aria-pressed": value,
2685
- type: "button",
2686
- children: /* @__PURE__ */ jsx19("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2687
- }
2688
- )
2837
+ /* @__PURE__ */ jsx19("div", { className: "arap-segmented", children: OPTIONS2.map((option) => {
2838
+ const isActive = value === option.value || option.value === "default" && (value === "original" || !value || value === "default");
2839
+ return /* @__PURE__ */ jsxs18(
2840
+ "button",
2841
+ {
2842
+ className: `arap-segment ${isActive ? "arap-segment-active" : ""}`,
2843
+ onClick: () => setValue(option.value),
2844
+ "aria-pressed": isActive,
2845
+ type: "button",
2846
+ children: [
2847
+ isActive && /* @__PURE__ */ jsx19("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
2848
+ option.label
2849
+ ]
2850
+ },
2851
+ option.value
2852
+ );
2853
+ }) })
2689
2854
  ] });
2690
2855
  }
2691
2856
 
2692
- // src/features/HideVideosController.tsx
2857
+ // src/features/HideImagesController.tsx
2693
2858
  import { jsx as jsx20, jsxs as jsxs19 } from "react/jsx-runtime";
2694
- var FEATURE_KEY14 = "hideVideos";
2859
+ var FEATURE_KEY14 = "hideImages";
2695
2860
  var DEFAULT_VALUE14 = false;
2696
- function HideVideosController() {
2861
+ function HideImagesController() {
2697
2862
  const { value, setValue } = useAccessibility(
2698
2863
  FEATURE_KEY14,
2699
2864
  DEFAULT_VALUE14
2700
2865
  );
2701
- return /* @__PURE__ */ jsxs19("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
2866
+ return /* @__PURE__ */ jsxs19("div", { className: "arap-feature", role: "group", "aria-label": "Hide Images", children: [
2702
2867
  /* @__PURE__ */ jsxs19("span", { className: "arap-label", children: [
2703
2868
  /* @__PURE__ */ jsx20(FeatureIcon, { name: FEATURE_KEY14 }),
2704
- /* @__PURE__ */ jsx20("span", { children: "Hide Videos" })
2869
+ /* @__PURE__ */ jsx20("span", { children: "Hide Images" })
2705
2870
  ] }),
2706
2871
  /* @__PURE__ */ jsx20(
2707
2872
  "button",
2708
2873
  {
2709
2874
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
2710
2875
  onClick: () => setValue(!value),
2711
- "aria-label": "Hide Videos",
2876
+ "aria-label": "Hide Images",
2712
2877
  "aria-pressed": value,
2713
2878
  type: "button",
2714
2879
  children: /* @__PURE__ */ jsx20("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
@@ -2717,26 +2882,26 @@ function HideVideosController() {
2717
2882
  ] });
2718
2883
  }
2719
2884
 
2720
- // src/features/BigCursorController.tsx
2885
+ // src/features/HideVideosController.tsx
2721
2886
  import { jsx as jsx21, jsxs as jsxs20 } from "react/jsx-runtime";
2722
- var FEATURE_KEY15 = "bigCursor";
2887
+ var FEATURE_KEY15 = "hideVideos";
2723
2888
  var DEFAULT_VALUE15 = false;
2724
- function BigCursorController() {
2889
+ function HideVideosController() {
2725
2890
  const { value, setValue } = useAccessibility(
2726
2891
  FEATURE_KEY15,
2727
2892
  DEFAULT_VALUE15
2728
2893
  );
2729
- return /* @__PURE__ */ jsxs20("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
2894
+ return /* @__PURE__ */ jsxs20("div", { className: "arap-feature", role: "group", "aria-label": "Hide Videos", children: [
2730
2895
  /* @__PURE__ */ jsxs20("span", { className: "arap-label", children: [
2731
2896
  /* @__PURE__ */ jsx21(FeatureIcon, { name: FEATURE_KEY15 }),
2732
- /* @__PURE__ */ jsx21("span", { children: "Big Cursor" })
2897
+ /* @__PURE__ */ jsx21("span", { children: "Hide Videos" })
2733
2898
  ] }),
2734
2899
  /* @__PURE__ */ jsx21(
2735
2900
  "button",
2736
2901
  {
2737
2902
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
2738
2903
  onClick: () => setValue(!value),
2739
- "aria-label": "Big Cursor",
2904
+ "aria-label": "Hide Videos",
2740
2905
  "aria-pressed": value,
2741
2906
  type: "button",
2742
2907
  children: /* @__PURE__ */ jsx21("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
@@ -2745,26 +2910,26 @@ function BigCursorController() {
2745
2910
  ] });
2746
2911
  }
2747
2912
 
2748
- // src/features/ReadingMaskController.tsx
2913
+ // src/features/BigCursorController.tsx
2749
2914
  import { jsx as jsx22, jsxs as jsxs21 } from "react/jsx-runtime";
2750
- var FEATURE_KEY16 = "readingMask";
2915
+ var FEATURE_KEY16 = "bigCursor";
2751
2916
  var DEFAULT_VALUE16 = false;
2752
- function ReadingMaskController() {
2917
+ function BigCursorController() {
2753
2918
  const { value, setValue } = useAccessibility(
2754
2919
  FEATURE_KEY16,
2755
2920
  DEFAULT_VALUE16
2756
2921
  );
2757
- return /* @__PURE__ */ jsxs21("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
2922
+ return /* @__PURE__ */ jsxs21("div", { className: "arap-feature", role: "group", "aria-label": "Big Cursor", children: [
2758
2923
  /* @__PURE__ */ jsxs21("span", { className: "arap-label", children: [
2759
2924
  /* @__PURE__ */ jsx22(FeatureIcon, { name: FEATURE_KEY16 }),
2760
- /* @__PURE__ */ jsx22("span", { children: "Reading Mask" })
2925
+ /* @__PURE__ */ jsx22("span", { children: "Big Cursor" })
2761
2926
  ] }),
2762
2927
  /* @__PURE__ */ jsx22(
2763
2928
  "button",
2764
2929
  {
2765
2930
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
2766
2931
  onClick: () => setValue(!value),
2767
- "aria-label": "Reading Mask",
2932
+ "aria-label": "Big Cursor",
2768
2933
  "aria-pressed": value,
2769
2934
  type: "button",
2770
2935
  children: /* @__PURE__ */ jsx22("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
@@ -2773,26 +2938,26 @@ function ReadingMaskController() {
2773
2938
  ] });
2774
2939
  }
2775
2940
 
2776
- // src/features/ReadingGuideController.tsx
2941
+ // src/features/ReadingMaskController.tsx
2777
2942
  import { jsx as jsx23, jsxs as jsxs22 } from "react/jsx-runtime";
2778
- var FEATURE_KEY17 = "readingGuide";
2943
+ var FEATURE_KEY17 = "readingMask";
2779
2944
  var DEFAULT_VALUE17 = false;
2780
- function ReadingGuideController() {
2945
+ function ReadingMaskController() {
2781
2946
  const { value, setValue } = useAccessibility(
2782
2947
  FEATURE_KEY17,
2783
2948
  DEFAULT_VALUE17
2784
2949
  );
2785
- return /* @__PURE__ */ jsxs22("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
2950
+ return /* @__PURE__ */ jsxs22("div", { className: "arap-feature", role: "group", "aria-label": "Reading Mask", children: [
2786
2951
  /* @__PURE__ */ jsxs22("span", { className: "arap-label", children: [
2787
2952
  /* @__PURE__ */ jsx23(FeatureIcon, { name: FEATURE_KEY17 }),
2788
- /* @__PURE__ */ jsx23("span", { children: "Reading Guide" })
2953
+ /* @__PURE__ */ jsx23("span", { children: "Reading Mask" })
2789
2954
  ] }),
2790
2955
  /* @__PURE__ */ jsx23(
2791
2956
  "button",
2792
2957
  {
2793
2958
  className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
2794
2959
  onClick: () => setValue(!value),
2795
- "aria-label": "Reading Guide",
2960
+ "aria-label": "Reading Mask",
2796
2961
  "aria-pressed": value,
2797
2962
  type: "button",
2798
2963
  children: /* @__PURE__ */ jsx23("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
@@ -2801,10 +2966,38 @@ function ReadingGuideController() {
2801
2966
  ] });
2802
2967
  }
2803
2968
 
2969
+ // src/features/ReadingGuideController.tsx
2970
+ import { jsx as jsx24, jsxs as jsxs23 } from "react/jsx-runtime";
2971
+ var FEATURE_KEY18 = "readingGuide";
2972
+ var DEFAULT_VALUE18 = false;
2973
+ function ReadingGuideController() {
2974
+ const { value, setValue } = useAccessibility(
2975
+ FEATURE_KEY18,
2976
+ DEFAULT_VALUE18
2977
+ );
2978
+ return /* @__PURE__ */ jsxs23("div", { className: "arap-feature", role: "group", "aria-label": "Reading Guide", children: [
2979
+ /* @__PURE__ */ jsxs23("span", { className: "arap-label", children: [
2980
+ /* @__PURE__ */ jsx24(FeatureIcon, { name: FEATURE_KEY18 }),
2981
+ /* @__PURE__ */ jsx24("span", { children: "Reading Guide" })
2982
+ ] }),
2983
+ /* @__PURE__ */ jsx24(
2984
+ "button",
2985
+ {
2986
+ className: `arap-toggle ${value ? "arap-toggle-active" : ""}`,
2987
+ onClick: () => setValue(!value),
2988
+ "aria-label": "Reading Guide",
2989
+ "aria-pressed": value,
2990
+ type: "button",
2991
+ children: /* @__PURE__ */ jsx24("span", { className: "arap-toggle-knob", "aria-hidden": "true" })
2992
+ }
2993
+ )
2994
+ ] });
2995
+ }
2996
+
2804
2997
  // src/features/ResetController.tsx
2805
2998
  import { createPortal as createPortal2 } from "react-dom";
2806
2999
  import { useContext as useContext5 } from "react";
2807
- import { jsx as jsx24, jsxs as jsxs23 } from "react/jsx-runtime";
3000
+ import { jsx as jsx25, jsxs as jsxs24 } from "react/jsx-runtime";
2808
3001
  function ResetController() {
2809
3002
  const ctx = useContext5(AccessibilityContext);
2810
3003
  if (!ctx) {
@@ -2815,15 +3008,15 @@ function ResetController() {
2815
3008
  const actionHost = useContext5(PanelActionsContext);
2816
3009
  const { resetAll } = ctx;
2817
3010
  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" }),
3011
+ const button = /* @__PURE__ */ jsx25("div", { className: "arap-feature arap-feature-reset", children: /* @__PURE__ */ jsxs24("button", { className: "arap-reset-btn", onClick: resetAll, type: "button", children: [
3012
+ /* @__PURE__ */ jsx25(FeatureIcon, { name: "reset" }),
2820
3013
  strings.resetAll
2821
3014
  ] }) });
2822
3015
  return actionHost ? createPortal2(button, actionHost) : button;
2823
3016
  }
2824
3017
 
2825
3018
  // src/core/controls/ToggleControl.tsx
2826
- import { jsx as jsx25 } from "react/jsx-runtime";
3019
+ import { jsx as jsx26 } from "react/jsx-runtime";
2827
3020
  function ToggleControl({
2828
3021
  id,
2829
3022
  label,
@@ -2845,12 +3038,12 @@ function ToggleControl({
2845
3038
  onChange(!checked);
2846
3039
  }
2847
3040
  };
2848
- return /* @__PURE__ */ jsx25(
3041
+ return /* @__PURE__ */ jsx26(
2849
3042
  "div",
2850
3043
  {
2851
3044
  className: `arap-toggle-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
2852
3045
  style,
2853
- children: /* @__PURE__ */ jsx25(
3046
+ children: /* @__PURE__ */ jsx26(
2854
3047
  "button",
2855
3048
  {
2856
3049
  id,
@@ -2864,7 +3057,7 @@ function ToggleControl({
2864
3057
  disabled: !isInteractive,
2865
3058
  onClick: handleClick,
2866
3059
  title: unavailableReason || description || toggleLabel,
2867
- children: /* @__PURE__ */ jsx25(
3060
+ children: /* @__PURE__ */ jsx26(
2868
3061
  "span",
2869
3062
  {
2870
3063
  className: "arap-toggle-knob",
@@ -2881,7 +3074,7 @@ function ToggleControl({
2881
3074
 
2882
3075
  // src/core/controls/ChoiceControl.tsx
2883
3076
  import { useCallback as useCallback4, useMemo as useMemo2, useRef as useRef5 } from "react";
2884
- import { jsx as jsx26, jsxs as jsxs24 } from "react/jsx-runtime";
3077
+ import { jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
2885
3078
  function ChoiceControl({
2886
3079
  id,
2887
3080
  label,
@@ -2937,7 +3130,7 @@ function ChoiceControl({
2937
3130
  const renderOptionButton = (opt) => {
2938
3131
  const isSelected = value === opt.value;
2939
3132
  const isOptionDisabled = disabled || Boolean(opt.disabled);
2940
- return /* @__PURE__ */ jsxs24(
3133
+ return /* @__PURE__ */ jsxs25(
2941
3134
  "button",
2942
3135
  {
2943
3136
  type: "button",
@@ -2951,15 +3144,15 @@ function ChoiceControl({
2951
3144
  onClick: () => !isOptionDisabled && onChange(opt.value),
2952
3145
  title: opt.description,
2953
3146
  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 })
3147
+ isSelected && /* @__PURE__ */ jsx27("span", { className: "arap-check", "aria-hidden": "true", children: "\u2713" }),
3148
+ /* @__PURE__ */ jsx27("span", { children: opt.label }),
3149
+ opt.badge && /* @__PURE__ */ jsx27("span", { className: "arap-choice-badge", "aria-hidden": "true", children: opt.badge })
2957
3150
  ]
2958
3151
  },
2959
3152
  String(opt.value)
2960
3153
  );
2961
3154
  };
2962
- return /* @__PURE__ */ jsx26(
3155
+ return /* @__PURE__ */ jsx27(
2963
3156
  "div",
2964
3157
  {
2965
3158
  ref: containerRef,
@@ -2970,15 +3163,15 @@ function ChoiceControl({
2970
3163
  className: `arap-choice-control arap-segmented ${largeControls ? "arap-large-controls" : ""} ${className}`,
2971
3164
  style,
2972
3165
  onKeyDown: handleKeyDown,
2973
- children: groups ? groups.map((group) => /* @__PURE__ */ jsxs24(
3166
+ children: groups ? groups.map((group) => /* @__PURE__ */ jsxs25(
2974
3167
  "div",
2975
3168
  {
2976
3169
  className: "arap-choice-group",
2977
3170
  role: "group",
2978
3171
  "aria-label": group.label,
2979
3172
  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) })
3173
+ /* @__PURE__ */ jsx27("span", { className: "arap-choice-group-title", children: group.label }),
3174
+ /* @__PURE__ */ jsx27("div", { className: "arap-segmented", children: group.options.map(renderOptionButton) })
2982
3175
  ]
2983
3176
  },
2984
3177
  group.label
@@ -2988,7 +3181,7 @@ function ChoiceControl({
2988
3181
  }
2989
3182
 
2990
3183
  // src/core/controls/StepperControl.tsx
2991
- import { jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
3184
+ import { jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
2992
3185
  function StepperControl({
2993
3186
  id,
2994
3187
  label,
@@ -3018,15 +3211,15 @@ function StepperControl({
3018
3211
  onChange(Math.min(max, Number((value + step).toFixed(2))));
3019
3212
  }
3020
3213
  };
3021
- return /* @__PURE__ */ jsxs25(
3214
+ return /* @__PURE__ */ jsxs26(
3022
3215
  "div",
3023
3216
  {
3024
3217
  id,
3025
3218
  className: `arap-stepper-control-wrapper ${largeControls ? "arap-large-controls" : ""} ${className}`,
3026
3219
  style,
3027
3220
  children: [
3028
- /* @__PURE__ */ jsxs25("div", { className: "arap-controls", children: [
3029
- /* @__PURE__ */ jsx27(
3221
+ /* @__PURE__ */ jsxs26("div", { className: "arap-controls", children: [
3222
+ /* @__PURE__ */ jsx28(
3030
3223
  "button",
3031
3224
  {
3032
3225
  type: "button",
@@ -3037,8 +3230,8 @@ function StepperControl({
3037
3230
  children: "\u2212"
3038
3231
  }
3039
3232
  ),
3040
- /* @__PURE__ */ jsx27("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
3041
- /* @__PURE__ */ jsx27(
3233
+ /* @__PURE__ */ jsx28("output", { className: "arap-value", "aria-live": "polite", children: displayValue }),
3234
+ /* @__PURE__ */ jsx28(
3042
3235
  "button",
3043
3236
  {
3044
3237
  type: "button",
@@ -3050,7 +3243,7 @@ function StepperControl({
3050
3243
  }
3051
3244
  )
3052
3245
  ] }),
3053
- showSlider && /* @__PURE__ */ jsx27("div", { className: "arap-slider-container", children: /* @__PURE__ */ jsx27(
3246
+ showSlider && /* @__PURE__ */ jsx28("div", { className: "arap-slider-container", children: /* @__PURE__ */ jsx28(
3054
3247
  "input",
3055
3248
  {
3056
3249
  type: "range",
@@ -3074,7 +3267,7 @@ function StepperControl({
3074
3267
  }
3075
3268
 
3076
3269
  // src/core/controls/FeatureCard.tsx
3077
- import { jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
3270
+ import { jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
3078
3271
  function FeatureCard({
3079
3272
  id,
3080
3273
  featureKey,
@@ -3093,7 +3286,7 @@ function FeatureCard({
3093
3286
  largeControls = false
3094
3287
  }) {
3095
3288
  const cardTitle = typeof title === "string" ? title : void 0;
3096
- return /* @__PURE__ */ jsxs26(
3289
+ return /* @__PURE__ */ jsxs27(
3097
3290
  "div",
3098
3291
  {
3099
3292
  id,
@@ -3102,27 +3295,27 @@ function FeatureCard({
3102
3295
  className: `arap-feature arap-feature-card ${status !== "idle" ? `arap-feature-${status}` : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
3103
3296
  style,
3104
3297
  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 })
3298
+ /* @__PURE__ */ jsxs27("div", { className: "arap-card-header", children: [
3299
+ /* @__PURE__ */ jsxs27("span", { className: "arap-label", children: [
3300
+ icon ?? (featureKey ? /* @__PURE__ */ jsx29(FeatureIcon, { name: featureKey }) : null),
3301
+ /* @__PURE__ */ jsx29("span", { className: "arap-card-title", children: title })
3109
3302
  ] }),
3110
- statusBadge && /* @__PURE__ */ jsx28("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
3303
+ statusBadge && /* @__PURE__ */ jsx29("span", { className: "arap-status-badge", "aria-hidden": "true", children: statusBadge })
3111
3304
  ] }),
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 })
3305
+ description && /* @__PURE__ */ jsx29("p", { className: "arap-card-desc", children: description }),
3306
+ status === "error" && errorMessage && /* @__PURE__ */ jsxs27("div", { className: "arap-card-alert arap-card-error", role: "alert", children: [
3307
+ /* @__PURE__ */ jsx29("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3308
+ /* @__PURE__ */ jsx29("span", { children: errorMessage })
3116
3309
  ] }),
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 })
3310
+ status === "unavailable" && unavailableMessage && /* @__PURE__ */ jsxs27("div", { className: "arap-card-alert arap-card-unavailable", role: "status", children: [
3311
+ /* @__PURE__ */ jsx29("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u2139\uFE0F" }),
3312
+ /* @__PURE__ */ jsx29("span", { children: unavailableMessage })
3120
3313
  ] }),
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(
3314
+ status === "permission-required" && permissionMessage && /* @__PURE__ */ jsxs27("div", { className: "arap-card-alert arap-card-permission", role: "status", children: [
3315
+ /* @__PURE__ */ jsx29("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u{1F512}" }),
3316
+ /* @__PURE__ */ jsxs27("div", { className: "arap-permission-content", children: [
3317
+ /* @__PURE__ */ jsx29("span", { children: permissionMessage }),
3318
+ onRequestPermission && /* @__PURE__ */ jsx29(
3126
3319
  "button",
3127
3320
  {
3128
3321
  type: "button",
@@ -3133,14 +3326,14 @@ function FeatureCard({
3133
3326
  )
3134
3327
  ] })
3135
3328
  ] }),
3136
- /* @__PURE__ */ jsx28("div", { className: "arap-card-content", children })
3329
+ /* @__PURE__ */ jsx29("div", { className: "arap-card-content", children })
3137
3330
  ]
3138
3331
  }
3139
3332
  );
3140
3333
  }
3141
3334
 
3142
3335
  // src/core/controls/FeatureStatusState.tsx
3143
- import { jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
3336
+ import { jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
3144
3337
  function SearchCount({
3145
3338
  totalCount,
3146
3339
  matchedCount,
@@ -3149,7 +3342,7 @@ function SearchCount({
3149
3342
  style
3150
3343
  }) {
3151
3344
  const text = query ? `Showing ${matchedCount} of ${totalCount} tools matching "${query}"` : `Showing all ${totalCount} tools`;
3152
- return /* @__PURE__ */ jsx29(
3345
+ return /* @__PURE__ */ jsx30(
3153
3346
  "div",
3154
3347
  {
3155
3348
  role: "status",
@@ -3169,17 +3362,17 @@ function EmptyState({
3169
3362
  className = "",
3170
3363
  style
3171
3364
  }) {
3172
- return /* @__PURE__ */ jsxs27(
3365
+ return /* @__PURE__ */ jsxs28(
3173
3366
  "div",
3174
3367
  {
3175
3368
  role: "status",
3176
3369
  className: `arap-empty-state ${className}`,
3177
3370
  style,
3178
3371
  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 })
3372
+ /* @__PURE__ */ jsx30("div", { className: "arap-empty-icon", "aria-hidden": "true", children: icon ?? "\u{1F50D}" }),
3373
+ /* @__PURE__ */ jsx30("h3", { className: "arap-empty-title", children: title }),
3374
+ /* @__PURE__ */ jsx30("p", { className: "arap-empty-desc", children: description }),
3375
+ onAction && /* @__PURE__ */ jsx30("button", { type: "button", className: "arap-empty-btn", onClick: onAction, children: actionLabel })
3183
3376
  ]
3184
3377
  }
3185
3378
  );
@@ -3192,18 +3385,18 @@ function ErrorState({
3192
3385
  className = "",
3193
3386
  style
3194
3387
  }) {
3195
- return /* @__PURE__ */ jsxs27(
3388
+ return /* @__PURE__ */ jsxs28(
3196
3389
  "div",
3197
3390
  {
3198
3391
  role: "alert",
3199
3392
  className: `arap-error-state arap-card-alert arap-card-error ${className}`,
3200
3393
  style,
3201
3394
  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 })
3395
+ /* @__PURE__ */ jsx30("span", { className: "arap-alert-icon", "aria-hidden": "true", children: "\u26A0\uFE0F" }),
3396
+ /* @__PURE__ */ jsxs28("div", { className: "arap-error-content", children: [
3397
+ title && /* @__PURE__ */ jsx30("h4", { className: "arap-error-title", children: title }),
3398
+ /* @__PURE__ */ jsx30("p", { className: "arap-error-message", children: message }),
3399
+ onRetry && /* @__PURE__ */ jsx30("button", { type: "button", className: "arap-retry-btn", onClick: onRetry, children: retryLabel })
3207
3400
  ] })
3208
3401
  ]
3209
3402
  }
@@ -3211,7 +3404,7 @@ function ErrorState({
3211
3404
  }
3212
3405
 
3213
3406
  // src/core/controls/ProfilePreviewCard.tsx
3214
- import { jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
3407
+ import { jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
3215
3408
  function ProfilePreviewCard({
3216
3409
  profile,
3217
3410
  isActive,
@@ -3261,7 +3454,7 @@ function ProfilePreviewCard({
3261
3454
  if (val === null || val === void 0) return "Original";
3262
3455
  return String(val);
3263
3456
  };
3264
- return /* @__PURE__ */ jsxs28(
3457
+ return /* @__PURE__ */ jsxs29(
3265
3458
  "div",
3266
3459
  {
3267
3460
  role: "group",
@@ -3269,10 +3462,10 @@ function ProfilePreviewCard({
3269
3462
  className: `arap-profile-card ${isActive ? "arap-profile-card-active" : ""} ${largeControls ? "arap-large-controls" : ""} ${className}`,
3270
3463
  style,
3271
3464
  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(
3465
+ /* @__PURE__ */ jsxs29("div", { className: "arap-profile-header", children: [
3466
+ /* @__PURE__ */ jsxs29("div", { className: "arap-profile-title-row", children: [
3467
+ /* @__PURE__ */ jsx31("h4", { className: "arap-profile-title", children: profile.label }),
3468
+ isActive && /* @__PURE__ */ jsx31(
3276
3469
  "span",
3277
3470
  {
3278
3471
  className: "arap-profile-active-badge",
@@ -3281,14 +3474,14 @@ function ProfilePreviewCard({
3281
3474
  }
3282
3475
  )
3283
3476
  ] }),
3284
- /* @__PURE__ */ jsx30("p", { className: "arap-profile-desc", children: profile.description })
3477
+ /* @__PURE__ */ jsx31("p", { className: "arap-profile-desc", children: profile.description })
3285
3478
  ] }),
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) => {
3479
+ /* @__PURE__ */ jsxs29("div", { className: "arap-profile-affected", children: [
3480
+ /* @__PURE__ */ jsx31("span", { className: "arap-profile-affected-label", children: "Affected settings:" }),
3481
+ /* @__PURE__ */ jsx31("div", { className: "arap-profile-chips", children: affectedKeys.map((key) => {
3289
3482
  const val = profile.settings[key];
3290
- return /* @__PURE__ */ jsxs28("span", { className: "arap-profile-chip", children: [
3291
- /* @__PURE__ */ jsxs28("strong", { children: [
3483
+ return /* @__PURE__ */ jsxs29("span", { className: "arap-profile-chip", children: [
3484
+ /* @__PURE__ */ jsxs29("strong", { children: [
3292
3485
  formatKeyName(key),
3293
3486
  ":"
3294
3487
  ] }),
@@ -3297,7 +3490,7 @@ function ProfilePreviewCard({
3297
3490
  ] }, key);
3298
3491
  }) })
3299
3492
  ] }),
3300
- /* @__PURE__ */ jsx30("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ jsx30(
3493
+ /* @__PURE__ */ jsx31("div", { className: "arap-profile-actions", children: isActive ? /* @__PURE__ */ jsx31(
3301
3494
  "button",
3302
3495
  {
3303
3496
  type: "button",
@@ -3306,7 +3499,7 @@ function ProfilePreviewCard({
3306
3499
  "aria-label": `Revert ${profile.label} profile`,
3307
3500
  children: "Revert to custom settings"
3308
3501
  }
3309
- ) : /* @__PURE__ */ jsx30(
3502
+ ) : /* @__PURE__ */ jsx31(
3310
3503
  "button",
3311
3504
  {
3312
3505
  type: "button",
@@ -3329,14 +3522,19 @@ export {
3329
3522
  ChoiceControl,
3330
3523
  ContrastController,
3331
3524
  DEFAULT_PREFERENCES,
3525
+ DYSLEXIA_FONT_STACK,
3332
3526
  EmptyState,
3333
3527
  ErrorState,
3528
+ FONT_FAMILY_PRESETS,
3529
+ FONT_FAMILY_PROTECTED_SELECTOR,
3334
3530
  FeatureCard,
3531
+ FontFamilyController,
3335
3532
  FontSizeController,
3336
3533
  GrayscaleController,
3337
3534
  HideImagesController,
3338
3535
  HideVideosController,
3339
3536
  InvertColorsController,
3537
+ LEGIBLE_FONT_STACK,
3340
3538
  LINE_HEIGHT_RATIOS,
3341
3539
  LINE_HEIGHT_STEPS,
3342
3540
  LetterSpacingController,
@@ -3351,6 +3549,7 @@ export {
3351
3549
  SaturationController,
3352
3550
  SearchCount,
3353
3551
  StepperControl,
3552
+ TEXT_ALIGN_BLOCK_SELECTOR,
3354
3553
  TEXT_SCALE_PROTECTED_SELECTOR,
3355
3554
  TEXT_SCALE_STEPS,
3356
3555
  TEXT_SPACING_EXCLUDED_SELECTOR,
@@ -3361,6 +3560,8 @@ export {
3361
3560
  createInitialPreferencesState,
3362
3561
  enLocale,
3363
3562
  getScriptSpacingConstraints,
3563
+ isProtectedFromFontFamily,
3564
+ isProtectedFromTextAlign,
3364
3565
  isProtectedFromTextScale,
3365
3566
  isProtectedFromTextSpacing,
3366
3567
  isRtlLocale,