The original GENERAL section mixed server credentials, timing tuning, and visual preferences into a single flat list — forcing users to scroll past sensitive token fields to adjust a brightness slider. The redesign splits GENERAL into three named sub-groups (Connection, Behavior, Interface) using card containers, matching the Android Preference Groups pattern, so cognitive load is distributed by task intent rather than alphabetical accident.
The Security section gains a yellow warning tint on the Debug Mode row (currently ON, bypasses biometric gate), and the Biometric Grace Window gets a chip-selector instead of a buried list row. Voice Dictation is preserved as-is but gains the same card treatment for visual consistency with the new GENERAL layout.
PreferenceCategory within PreferenceScreen XML to create the three sub-groups. Each category gets its own title attribute. No custom views required — the framework renders the card/divider pattern natively on API 21+.05-settings-token.html. State machine: empty → entered → testing → connected | error. Connected state shows green border + badge and changes Test button to checkmark label.debugMode == true, apply a custom PreferenceViewHolder that injects --yellow-tint background and left border. The yellow toggle state is a separate drawable resource (toggle_warn.xml) keyed off the setting value, not the toggle's checked state alone.ListPreference dialog with an inline HorizontalScrollView + chip group — four options (5 / 10 / 30 / Never) render inline without a modal. Chip selection persists to SharedPreferences as an integer millisecond value.TextView badge to the right, bound via OnSeekBarChangeListener.onProgressChanged. Monospace font (Cascadia Code / JetBrains Mono), orange tint background, fixed min-width to prevent layout shift across value changes.PreferenceCategory blocks: Input (activation, punctuation, locale, timeout) and Behavior (toggles + feedback). The Train Google voice link row sits in its own single-item category to visually separate it from the toggle group.