export const KEYBOARD_VAR = "--keyboard-height";
export const VIEWPORT_VAR = "--app-viewport-height";
export const INPUT_LIFT_VAR = "--chat-input-lift";

export const FOCUS_GAP_PX = 14;
export const FALLBACK_KEYBOARD_RATIO = 0.42;
export const FALLBACK_KEYBOARD_MIN = 260;
export const FALLBACK_KEYBOARD_MAX = 380;
export const FALLBACK_CLOSE_GRACE_MS = 900;
export const FALLBACK_WATCHDOG_INTERVAL_MS = 500;
export const FALLBACK_WATCHDOG_LOG_INTERVAL_MS = 1_500;
export const RECHECK_DELAYS_MS = [0, 50, 120, 240, 420, 700];
export const KEYBOARD_RELEASE_EVENT_TYPES = new Set([
  "resize",
  "scroll",
  "geometrychange",
  "focusout",
  "blur",
  "visibilitychange",
]);
export const RECHECK_EVENT = "cozsweet:keyboard-recheck";
