/* Minimal inline SVG icon set — matches lucide style */
const Ic = ({ d, size = 20, className = '', stroke = 2 }) => (
  <svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24"
       fill="none" stroke="currentColor" strokeWidth={stroke} strokeLinecap="round" strokeLinejoin="round"
       className={className}>{d}</svg>
);

// each icon: arrow function returning <Ic d={...}/>
const I = {
  arrow: (p) => <Ic {...p} d={<><path d="M5 12h14"/><path d="M13 6l6 6-6 6"/></>}/>,
  play: (p) => <Ic {...p} d={<><polygon points="6 4 20 12 6 20 6 4" fill="currentColor"/></>}/>,
  check: (p) => <Ic {...p} d={<><polyline points="20 6 9 17 4 12"/></>}/>,
  plus: (p) => <Ic {...p} d={<><path d="M12 5v14M5 12h14"/></>}/>,
  minus: (p) => <Ic {...p} d={<><path d="M5 12h14"/></>}/>,
  x: (p) => <Ic {...p} d={<><path d="M18 6L6 18M6 6l12 12"/></>}/>,
  menu: (p) => <Ic {...p} d={<><path d="M3 6h18M3 12h18M3 18h18"/></>}/>,
  chevronDown: (p) => <Ic {...p} d={<><polyline points="6 9 12 15 18 9"/></>}/>,
  chevronRight: (p) => <Ic {...p} d={<><polyline points="9 6 15 12 9 18"/></>}/>,
  building: (p) => <Ic {...p} d={<><rect x="4" y="2" width="16" height="20" rx="2"/><path d="M9 22v-4h6v4M8 6h.01M16 6h.01M8 10h.01M16 10h.01M8 14h.01M16 14h.01"/></>}/>,
  calendar: (p) => <Ic {...p} d={<><rect x="3" y="4" width="18" height="18" rx="2"/><path d="M16 2v4M8 2v4M3 10h18"/></>}/>,
  users: (p) => <Ic {...p} d={<><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75"/></>}/>,
  message: (p) => <Ic {...p} d={<><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></>}/>,
  clipboard: (p) => <Ic {...p} d={<><rect x="8" y="2" width="8" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></>}/>,
  star: (p) => <Ic {...p} d={<><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></>}/>,
  cart: (p) => <Ic {...p} d={<><circle cx="9" cy="21" r="1"/><circle cx="20" cy="21" r="1"/><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"/></>}/>,
  utensils: (p) => <Ic {...p} d={<><path d="M3 2v7c0 1.1.9 2 2 2h4V2M7 2v20"/><path d="M21 15V2a5 5 0 0 0-4 4.9V15c0 .5.2 1 .6 1.4l.9.9c.4.4.4 1 0 1.4l-1.4 1.4c-.4.4-.4 1 0 1.4l.9.9c.4.4 1 .4 1.4 0L21 19"/></>}/>,
  list: (p) => <Ic {...p} d={<><path d="M9 6h11M9 12h11M9 18h11M5 6h.01M5 12h.01M5 18h.01"/></>}/>,
  bot: (p) => <Ic {...p} d={<><path d="M12 2v4"/><rect x="3" y="6" width="18" height="14" rx="2"/><path d="M8 14h.01M16 14h.01M9 18h6"/></>}/>,
  msg2: (p) => <Ic {...p} d={<><path d="M7.9 20A9 9 0 1 0 4 16.1L2 22z"/></>}/>,
  contact: (p) => <Ic {...p} d={<><path d="M4 2v20l2-2 2 2 2-2 2 2 2-2 2 2 2-2 2 2V2l-2 2-2-2-2 2-2-2-2 2-2-2-2 2Z"/><circle cx="12" cy="11" r="3"/></>}/>,
  shield: (p) => <Ic {...p} d={<><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><polyline points="9 12 11 14 15 10"/></>}/>,
  qr: (p) => <Ic {...p} d={<><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><path d="M14 14h3v3h-3zM17 17h4v4h-4zM14 21v-4"/></>}/>,
  factory: (p) => <Ic {...p} d={<><path d="M2 20h20M4 20V8l6 4V8l6 4V6h4v14"/></>}/>,
  beaker: (p) => <Ic {...p} d={<><path d="M10 2v7.31M14 9.3V1.99M8.5 2h7M14 9.3a6.5 6.5 0 1 1-4 0M5.5 15.5h13"/></>}/>,
  package: (p) => <Ic {...p} d={<><path d="M16.5 9.4 7.5 4.2M21 16V8a2 2 0 0 0-1-1.7l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.7l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/><path d="m3.3 7 8.7 5 8.7-5M12 22V12"/></>}/>,
  tag: (p) => <Ic {...p} d={<><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"/><circle cx="7" cy="7" r="1" fill="currentColor"/></>}/>,
  timer: (p) => <Ic {...p} d={<><path d="M10 2h4M12 14l3-3M12 22a8 8 0 1 0 0-16 8 8 0 0 0 0 16z"/></>}/>,
  printer: (p) => <Ic {...p} d={<><polyline points="6 9 6 2 18 2 18 9"/><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"/><rect x="6" y="14" width="12" height="8"/></>}/>,
  scale: (p) => <Ic {...p} d={<><path d="M16 16.25 12 9l-4 7.25M12 3v6M5 21h14M3 9h18"/></>}/>,
  trending: (p) => <Ic {...p} d={<><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"/><polyline points="17 6 23 6 23 12"/></>}/>,
  trendingDown: (p) => <Ic {...p} d={<><polyline points="23 18 13.5 8.5 8.5 13.5 1 6"/><polyline points="17 18 23 18 23 12"/></>}/>,
  fileText: (p) => <Ic {...p} d={<><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></>}/>,
  link: (p) => <Ic {...p} d={<><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></>}/>,
  sheet: (p) => <Ic {...p} d={<><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 21V9"/></>}/>,
  download: (p) => <Ic {...p} d={<><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></>}/>,
  external: (p) => <Ic {...p} d={<><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></>}/>,
  bell: (p) => <Ic {...p} d={<><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></>}/>,
  calendar2: (p) => <Ic {...p} d={<><rect x="3" y="4" width="18" height="18" rx="2"/><path d="M16 2v4M8 2v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01"/></>}/>,
  instagram: (p) => <Ic {...p} d={<><rect x="2" y="2" width="20" height="20" rx="5"/><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37zM17.5 6.5h.01"/></>}/>,
  linkedin: (p) => <Ic {...p} d={<><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6zM2 9h4v12H2z"/><circle cx="4" cy="4" r="2"/></>}/>,
  whatsapp: (p) => <Ic {...p} d={<><path d="M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.92.56 3.8 1.61 5.41L2 22l4.79-1.26a9.82 9.82 0 0 0 5.25 1.51h.01c5.46 0 9.91-4.45 9.91-9.91S17.5 2 12.04 2m5.38 14.08c-.24.66-1.4 1.27-1.9 1.32-.49.04-.94.22-3.14-.65a10.9 10.9 0 0 1-5.01-4.42c-.37-.61-1-1.64-1-3.13 0-1.49.78-2.22 1.06-2.52.28-.31.6-.38.8-.38.2 0 .4 0 .58.01.18.01.43-.07.68.52.24.59.84 2.02.92 2.17.08.15.13.32.03.52-.1.2-.15.32-.3.5-.15.18-.32.39-.45.53-.15.14-.3.3-.13.58.18.28.79 1.31 1.7 2.12 1.17 1.04 2.15 1.37 2.43 1.52.28.15.44.12.6-.07.16-.2.69-.8.87-1.08.18-.28.36-.23.61-.14.25.1 1.59.75 1.86.89.28.14.46.21.53.32.07.11.07.65-.17 1.31"/></>}/>,
  sparkle: (p) => <Ic {...p} d={<><path d="M12 3l1.9 4.7 4.7 1.9-4.7 1.9L12 16.2l-1.9-4.7-4.7-1.9 4.7-1.9L12 3zM19 14l.95 2.35L22 17.3l-2.05.95L19 20.6l-.95-2.35L16 17.3l2.05-.95L19 14zM5 15l.7 1.7L7.4 17.4l-1.7.7L5 19.8l-.7-1.7L2.6 17.4l1.7-.7L5 15z" fill="currentColor" stroke="none"/></>}/>,
  calculator: (p) => <Ic {...p} d={<><rect x="4" y="2" width="16" height="20" rx="2"/><line x1="8" y1="6" x2="16" y2="6"/><line x1="16" y1="14" x2="16" y2="18"/><path d="M16 10h.01M12 10h.01M8 10h.01M12 14h.01M8 14h.01M12 18h.01M8 18h.01"/></>}/>,
  zap: (p) => <Ic {...p} d={<><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></>}/>,
  circle: (p) => <Ic {...p} d={<><circle cx="12" cy="12" r="9"/></>}/>,
  dot: (p) => <Ic {...p} d={<><circle cx="12" cy="12" r="3" fill="currentColor" stroke="none"/></>}/>,
  search: (p) => <Ic {...p} d={<><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></>}/>,
  filter: (p) => <Ic {...p} d={<><polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/></>}/>,
  edit: (p) => <Ic {...p} d={<><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4z"/></>}/>,
  trash: (p) => <Ic {...p} d={<><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></>}/>,
  eye: (p) => <Ic {...p} d={<><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></>}/>,
  rocket: (p) => <Ic {...p} d={<><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09zM12 15l-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2zM9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/></>}/>,
  userPlus: (p) => <Ic {...p} d={<><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="8.5" cy="7" r="4"/><line x1="20" y1="8" x2="20" y2="14"/><line x1="23" y1="11" x2="17" y2="11"/></>}/>,
  settings: (p) => <Ic {...p} d={<><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></>}/>,
  mouse: (p) => <Ic {...p} d={<><rect x="6" y="3" width="12" height="18" rx="6"/><line x1="12" y1="7" x2="12" y2="11"/></>}/>,
  grid: (p) => <Ic {...p} d={<><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></>}/>,
};

Object.assign(window, { I, Ic });
