// FieldAnalysis design tokens — matches FieldOps PWA (Klearpath Solutions)
// Three schemes: light (default), dark (low-light), sun (max-contrast outdoor)

const FA_SCHEMES = {
  light: {
    name: 'Light',
    bg: '#F5F3EE',
    surface: '#FFFFFF',
    surfaceAlt: '#EDEAE2',
    border: '#D5D0C2',
    borderStrong: '#8A8579',
    text: '#1A2233',
    textMuted: '#4A5468',
    textSubtle: '#6B7280',
    primary: '#44546A',
    primaryInk: '#FFFFFF',
    accent: '#C48A00',
    accentInk: '#1A2233',
    accentBright: '#FFC000',
    info: '#0B5B94',
    infoBg: '#BDD7EE',
    success: '#1F6B3A',
    warning: '#A65C00',
    danger: '#A31818',
    shadow: '0 1px 2px rgba(26,34,51,0.06), 0 4px 12px rgba(26,34,51,0.04)',
  },
  dark: {
    name: 'Dark',
    bg: '#0B1220',
    surface: '#141C2E',
    surfaceAlt: '#1E2740',
    border: '#2A3550',
    borderStrong: '#44546A',
    text: '#F5F3EE',
    textMuted: '#B8BFCC',
    textSubtle: '#8691A6',
    primary: '#BDD7EE',
    primaryInk: '#0B1220',
    accent: '#FFC000',
    accentInk: '#0B1220',
    accentBright: '#FFD34A',
    info: '#BDD7EE',
    infoBg: '#1B2B45',
    success: '#4ADE80',
    warning: '#FBBF24',
    danger: '#F87171',
    shadow: '0 2px 6px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.25)',
  },
  sun: {
    name: 'Sunlight',
    bg: '#FFF9E8',
    surface: '#FFFFFF',
    surfaceAlt: '#F3ECCE',
    border: '#000000',
    borderStrong: '#000000',
    text: '#000000',
    textMuted: '#1A1A1A',
    textSubtle: '#333333',
    primary: '#000000',
    primaryInk: '#FFF9E8',
    accent: '#FFC000',
    accentInk: '#000000',
    accentBright: '#FFC000',
    info: '#003F88',
    infoBg: '#BDD7EE',
    success: '#0A6B1E',
    warning: '#B54300',
    danger: '#B30000',
    shadow: 'none',
  },
};

const FA_FONT = `'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif`;
const FA_FONT_MONO = `'IBM Plex Mono', ui-monospace, Menlo, monospace`;

Object.assign(window, { FA_SCHEMES, FA_FONT, FA_FONT_MONO });
