// Lightweight inline SVG icon set — geometric, monochrome, currentColor.
// Avoid generic AI imagery; favor industrial / data shapes.

const Icon = ({ children, size = 22, className = "", strokeWidth = 1.7 }) => (
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width={size}
    height={size}
    viewBox="0 0 24 24"
    fill="none"
    stroke="currentColor"
    strokeWidth={strokeWidth}
    strokeLinecap="round"
    strokeLinejoin="round"
    className={className}
    aria-hidden="true"
  >
    {children}
  </svg>
);

const I = {
  ArrowRight: (p) => <Icon {...p}><line x1="5" y1="12" x2="19" y2="12"/><polyline points="13 5 19 12 13 19"/></Icon>,
  ArrowDown: (p) => <Icon {...p}><line x1="12" y1="5" x2="12" y2="19"/><polyline points="5 13 12 19 19 13"/></Icon>,
  Check: (p) => <Icon {...p}><polyline points="4 12 10 18 20 6"/></Icon>,
  Spark: (p) => <Icon {...p}><path d="M12 3v4"/><path d="M12 17v4"/><path d="M3 12h4"/><path d="M17 12h4"/><path d="M5.6 5.6l2.8 2.8"/><path d="M15.6 15.6l2.8 2.8"/><path d="M5.6 18.4l2.8-2.8"/><path d="M15.6 8.4l2.8-2.8"/></Icon>,
  Pin: (p) => <Icon {...p}><path d="M12 22s7-7.58 7-13a7 7 0 1 0-14 0c0 5.42 7 13 7 13z"/><circle cx="12" cy="9" r="2.5"/></Icon>,
  Building: (p) => <Icon {...p}><rect x="3" y="3" width="8" height="18" rx="1.5"/><rect x="13" y="8" width="8" height="13" rx="1.5"/><path d="M6 7h2M6 11h2M6 15h2M16 12h2M16 16h2"/></Icon>,
  Plane: (p) => <Icon {...p}><path d="M2 16l8-2 4-9 2 0-1 8 6 1-1 2-7-1-3 6-2 0 1-5z"/></Icon>,
  Shield: (p) => <Icon {...p}><path d="M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z"/><path d="M9 12l2 2 4-4"/></Icon>,
  Cart: (p) => <Icon {...p}><circle cx="9" cy="20" r="1.6"/><circle cx="17" cy="20" r="1.6"/><path d="M3 4h2l2.5 11h11l2-7H6.5"/></Icon>,
  Leaf: (p) => <Icon {...p}><path d="M20 4c-9 0-15 5-15 12 0 2 .6 3.5 1.5 4.5C9 18 13 14 20 13z"/><path d="M5 21c2-5 5-8 9-9"/></Icon>,
  Heart: (p) => <Icon {...p}><path d="M12 21s-7-4.5-9.5-9A5.5 5.5 0 0 1 12 6a5.5 5.5 0 0 1 9.5 6C19 16.5 12 21 12 21z"/><polyline points="7 12 10 12 11.5 9 13 14 14.5 12 17 12"/></Icon>,
  Stethoscope: (p) => <Icon {...p}><path d="M5 3v6a4 4 0 0 0 8 0V3"/><path d="M9 13v3a5 5 0 0 0 10 0v-2"/><circle cx="19" cy="11" r="2"/></Icon>,
  Home: (p) => <Icon {...p}><path d="M3 11l9-7 9 7"/><path d="M5 10v10h14V10"/><path d="M10 20v-6h4v6"/></Icon>,
  Scale: (p) => <Icon {...p}><path d="M12 3v18"/><path d="M5 7h14"/><path d="M5 7l-2 6a4 4 0 0 0 8 0z"/><path d="M19 7l2 6a4 4 0 0 1-8 0z"/><path d="M8 21h8"/></Icon>,
  Wrench: (p) => <Icon {...p}><path d="M14.7 6.3a4 4 0 0 0 5 5L21 13l-8 8-9-9 1.3-1.3a4 4 0 0 0 5-5l-1.3-1.3 3-3z"/></Icon>,
  Search: (p) => <Icon {...p}><circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.5" y2="16.5"/></Icon>,
  Map: (p) => <Icon {...p}><polygon points="3 6 9 4 15 6 21 4 21 18 15 20 9 18 3 20 3 6"/><line x1="9" y1="4" x2="9" y2="18"/><line x1="15" y1="6" x2="15" y2="20"/></Icon>,
  Bot: (p) => <Icon {...p}><rect x="4" y="7" width="16" height="12" rx="3"/><circle cx="9" cy="13" r="1"/><circle cx="15" cy="13" r="1"/><path d="M12 7V4"/><circle cx="12" cy="3" r="1"/></Icon>,
  Gauge: (p) => <Icon {...p}><path d="M4 18a8 8 0 1 1 16 0"/><line x1="12" y1="18" x2="16" y2="10"/><circle cx="12" cy="18" r="1.2"/></Icon>,
  Mail: (p) => <Icon {...p}><rect x="3" y="5" width="18" height="14" rx="2"/><polyline points="3 7 12 13 21 7"/></Icon>,
  Phone: (p) => <Icon {...p}><path d="M5 4h3l2 5-2 1a11 11 0 0 0 6 6l1-2 5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z"/></Icon>,
  Menu: (p) => <Icon {...p}><line x1="4" y1="7" x2="20" y2="7"/><line x1="4" y1="12" x2="20" y2="12"/><line x1="4" y1="17" x2="20" y2="17"/></Icon>,
  Close: (p) => <Icon {...p}><line x1="6" y1="6" x2="18" y2="18"/><line x1="18" y1="6" x2="6" y2="18"/></Icon>,
  Truck: (p) => <Icon {...p}><rect x="2" y="6" width="12" height="10" rx="1"/><path d="M14 10h4l3 3v3h-7"/><circle cx="6" cy="18" r="2"/><circle cx="17" cy="18" r="2"/></Icon>,
  Block: (p) => <Icon {...p}><rect x="3" y="3" width="7" height="7" rx="1.2"/><rect x="14" y="3" width="7" height="7" rx="1.2"/><rect x="3" y="14" width="7" height="7" rx="1.2"/><rect x="14" y="14" width="7" height="7" rx="1.2"/></Icon>,
  Doc: (p) => <Icon {...p}><path d="M7 3h8l4 4v14a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/><polyline points="14 3 14 8 19 8"/><line x1="9" y1="13" x2="16" y2="13"/><line x1="9" y1="17" x2="14" y2="17"/></Icon>,
  Workflow: (p) => <Icon {...p}><rect x="3" y="3" width="6" height="6" rx="1"/><rect x="15" y="3" width="6" height="6" rx="1"/><rect x="9" y="15" width="6" height="6" rx="1"/><path d="M6 9v3a2 2 0 0 0 2 2h4M18 9v3a2 2 0 0 1-2 2h-4"/></Icon>,
};

window.I = I;
window.Icon = Icon;
