export function SliceProgressBar({ value, color = "#f0a030" }: { value: number; color?: string }) {
  return (
    <div style={{ height: 8, background: "rgba(255,255,255,0.08)", borderRadius: 999, overflow: "hidden" }}>
      <div style={{ width: `${Math.round(Math.max(0, Math.min(1, value)) * 100)}%`, height: "100%", background: color, transition: "width 120ms linear" }} />
    </div>
  );
}
